Changeset 30676 for extensions
- Timestamp:
- Dec 3, 2014, 1:34:29 PM (10 years ago)
- Location:
- extensions/manage_info_photos
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/manage_info_photos/admin.php
r30655 r30676 286 286 287 287 $q = ' 288 INSERT INTO ' . $prefixeTable . ' Add_Info_photos(designation,orderinfo,active,edit)VALUES ("' . $_POST['inserdesignation'] . '","' . $or . '","' . $_POST['inseractive'] . '",1);';288 INSERT INTO ' . $prefixeTable . 'add_Info_photos(designation,orderinfo,active,edit)VALUES ("' . $_POST['inserdesignation'] . '","' . $or . '","' . $_POST['inseractive'] . '",1);'; 289 289 pwg_query($q); 290 290 $_SESSION['page_infos'] = array(l10n('Personal info photo add')); 291 291 } else { 292 292 $q = ' 293 UPDATE ' . $prefixeTable . ' Add_Info_photos'293 UPDATE ' . $prefixeTable . 'add_Info_photos' 294 294 . ' set designation ="' . $_POST['inserdesignation'] . '" ' 295 295 . ' ,active=' . $_POST['inseractive'] … … 347 347 global $conf; 348 348 349 $selected = $conf[' Add_Info_photos'];349 $selected = $conf['add_Info_photos']; 350 350 $options['Author'] = l10n('Author'); 351 351 $options['datecreate'] = l10n('Created on'); … … 366 366 367 367 368 if (isset($_POST[' Add_Info_photos'])) {369 conf_update_param(' Add_Info_photos', $_POST['Add_Info_photos'], true);368 if (isset($_POST['add_Info_photos'])) { 369 conf_update_param('add_Info_photos', $_POST['add_Info_photos'], true); 370 370 $template->delete_compiled_templates(); 371 371 array_push($page['infos'], l10n('Your configuration settings are saved')); 372 372 373 $selected = $_POST[' Add_Info_photos'];373 $selected = $_POST['add_Info_photos']; 374 374 $template->assign( 375 375 'gestionA', array( -
extensions/manage_info_photos/admin/admin.tpl
r30655 r30676 111 111 <fieldset> 112 112 <legend>{'Add information before'|@translate}</legend> 113 {html_options name=" Add_Info_photos" options=$gestionA.OPTIONS selected=$gestionA.SELECTED}113 {html_options name="add_Info_photos" options=$gestionA.OPTIONS selected=$gestionA.SELECTED} 114 114 <br> 115 115 <br> -
extensions/manage_info_photos/maintain.class.php
r30631 r30676 31 31 $result = pwg_query($query); 32 32 33 $q = 'INSERT INTO ' . $prefixeTable . ' Add_Info_photos(id_info_pho,designation,orderinfo,active,edit)VALUES (1,"author",1,0,0);';33 $q = 'INSERT INTO ' . $prefixeTable . 'add_Info_photos(id_info_pho,designation,orderinfo,active,edit)VALUES (1,"author",1,0,0);'; 34 34 pwg_query($q); 35 $q = 'INSERT INTO ' . $prefixeTable . ' Add_Info_photos(id_info_pho,designation,orderinfo,active,edit)VALUES (2,"Created on",2,0,0);';35 $q = 'INSERT INTO ' . $prefixeTable . 'add_Info_photos(id_info_pho,designation,orderinfo,active,edit)VALUES (2,"Created on",2,0,0);'; 36 36 pwg_query($q); 37 $q = 'INSERT INTO ' . $prefixeTable . ' Add_Info_photos(id_info_pho,designation,orderinfo,active,edit)VALUES (3,"Posted on",3,0,0);';37 $q = 'INSERT INTO ' . $prefixeTable . 'add_Info_photos(id_info_pho,designation,orderinfo,active,edit)VALUES (3,"Posted on",3,0,0);'; 38 38 pwg_query($q); 39 $q = 'INSERT INTO ' . $prefixeTable . ' Add_Info_photos(id_info_pho,designation,orderinfo,active,edit)VALUES (4,"Dimensions",4,0,0);';39 $q = 'INSERT INTO ' . $prefixeTable . 'add_Info_photos(id_info_pho,designation,orderinfo,active,edit)VALUES (4,"Dimensions",4,0,0);'; 40 40 pwg_query($q); 41 $q = 'INSERT INTO ' . $prefixeTable . ' Add_Info_photos(id_info_pho,designation,orderinfo,active,edit)VALUES (5,"File",5,0,0);';41 $q = 'INSERT INTO ' . $prefixeTable . 'add_Info_photos(id_info_pho,designation,orderinfo,active,edit)VALUES (5,"File",5,0,0);'; 42 42 pwg_query($q); 43 $q = 'INSERT INTO ' . $prefixeTable . ' Add_Info_photos(id_info_pho,designation,orderinfo,active,edit)VALUES (6,"Filesize",6,0,0);';43 $q = 'INSERT INTO ' . $prefixeTable . 'add_Info_photos(id_info_pho,designation,orderinfo,active,edit)VALUES (6,"Filesize",6,0,0);'; 44 44 pwg_query($q); 45 $q = 'INSERT INTO ' . $prefixeTable . ' Add_Info_photos(id_info_pho,designation,orderinfo,active,edit)VALUES (7,"Tags",7,0,0);';45 $q = 'INSERT INTO ' . $prefixeTable . 'add_Info_photos(id_info_pho,designation,orderinfo,active,edit)VALUES (7,"Tags",7,0,0);'; 46 46 pwg_query($q); 47 $q = 'INSERT INTO ' . $prefixeTable . ' Add_Info_photos(id_info_pho,designation,orderinfo,active,edit)VALUES (8,"Albums",8,0,0);';47 $q = 'INSERT INTO ' . $prefixeTable . 'add_Info_photos(id_info_pho,designation,orderinfo,active,edit)VALUES (8,"Albums",8,0,0);'; 48 48 pwg_query($q); 49 $q = 'INSERT INTO ' . $prefixeTable . ' Add_Info_photos(id_info_pho,designation,orderinfo,active,edit)VALUES (9,"Visits",9,0,0);';49 $q = 'INSERT INTO ' . $prefixeTable . 'add_Info_photos(id_info_pho,designation,orderinfo,active,edit)VALUES (9,"Visits",9,0,0);'; 50 50 pwg_query($q); 51 $q = 'INSERT INTO ' . $prefixeTable . ' Add_Info_photos(id_info_pho,designation,orderinfo,active,edit)VALUES (10,"Average",10,0,0);';51 $q = 'INSERT INTO ' . $prefixeTable . 'add_Info_photos(id_info_pho,designation,orderinfo,active,edit)VALUES (10,"Average",10,0,0);'; 52 52 pwg_query($q); 53 $q = 'INSERT INTO ' . $prefixeTable . ' Add_Info_photos(id_info_pho,designation,orderinfo,active,edit)VALUES (11,"Who can see this photo?",11,0,0);';53 $q = 'INSERT INTO ' . $prefixeTable . 'add_Info_photos(id_info_pho,designation,orderinfo,active,edit)VALUES (11,"Who can see this photo?",11,0,0);'; 54 54 pwg_query($q); 55 55 … … 62 62 function update($old_version, $new_version, &$errors=array()){ 63 63 global $conf; 64 if (!isset($conf[' Add_Info_photos'])) {65 conf_update_param(' Add_Info_photos','Categories',true);64 if (!isset($conf['add_Info_photos'])) { 65 conf_update_param('add_Info_photos','Categories',true); 66 66 } 67 67 } … … 71 71 72 72 function uninstall(){ 73 conf_delete_param(' Add_Info_photos');73 conf_delete_param('add_Info_photos'); 74 74 $q = 'DROP TABLE ' . $prefixeTable . 'add_Info_photos;'; 75 75 pwg_query($q);
Note: See TracChangeset
for help on using the changeset viewer.