99a7726b9204e184b6831c3c62e14675dc007ad9
3 require 'xnet.inc.php';
4 new_groupadmin_page('xnet/groupe/edit.tpl');
6 if (Post
::has('submit')) {
8 $globals->xdb
->execute(
10 SET nom={?}, diminutif={?}, cat={?}, dom={?}, descr={?}, site={?}, mail={?}, resp={?}, forum={?}, mail_domain={?}, ax={?}, pub={?}, sub_url={?}, inscriptible={?}
12 Post
::get('nom'), Post
::get('diminutif'), Post
::get('cat'), Post
::getInt('dom'),
13 Post
::get('descr'), Post
::get('site'), Post
::get('mail'), Post
::get('resp'),
14 Post
::get('forum'), Post
::get('mail_domain'), Post
::has('ax'), Post
::has('pub')?
'private':'public', Post
::get('sub_url'), Post
::get('inscriptible'),
15 $globals->asso('id'));
16 if (Post
::get('mail_domain')) {
17 $globals->xdb
->execute('INSERT INTO virtual_domains (domain) VALUES({?})', Post
::get('mail_domain'));
20 $globals->xdb
->execute(
22 SET descr={?}, site={?}, mail={?}, resp={?}, forum={?}, ax={?}, pub= {?}, sub_url={?}
24 Post
::get('descr'), Post
::get('site'), Post
::get('mail'), Post
::get('resp'),
25 Post
::get('forum'), Post
::has('ax'), Post
::has('pub')?
'private':'public', Post
::get('sub_url'), $globals->asso('id'));
28 if ($_FILES['logo']['name']) {
29 $logo = file_get_contents($_FILES['logo']['tmp_name']);
30 $mime = $_FILES['logo']['type'];
31 $globals->xdb
->execute('UPDATE groupex.asso SET logo={?}, logo_mime={?} WHERE id={?}', $logo, $mime, $globals->asso('id'));
34 header('Location: ../'.Post
::get('diminutif', $globals->asso('diminutif')).'/edit.php');
38 $dom = $globals->xdb
->iterator('SELECT * FROM groupex.dom ORDER BY nom');
39 $page->assign('dom', $dom);
40 $page->assign('super', true
);