Changeset 30676 for extensions


Ignore:
Timestamp:
Dec 3, 2014, 1:34:29 PM (10 years ago)
Author:
ddtddt
Message:

[extensions] - manage_info_photos

Location:
extensions/manage_info_photos
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • extensions/manage_info_photos/admin.php

    r30655 r30676  
    286286
    287287                $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);';
    289289                pwg_query($q);
    290290                $_SESSION['page_infos'] = array(l10n('Personal info photo add'));
    291291            } else {
    292292                $q = '
    293                 UPDATE ' . $prefixeTable . 'Add_Info_photos'
     293                UPDATE ' . $prefixeTable . 'add_Info_photos'
    294294                        . ' set designation ="' . $_POST['inserdesignation'] . '" '
    295295                        . ' ,active=' . $_POST['inseractive']
     
    347347        global $conf;
    348348
    349         $selected = $conf['Add_Info_photos'];
     349        $selected = $conf['add_Info_photos'];
    350350        $options['Author'] = l10n('Author');
    351351        $options['datecreate'] = l10n('Created on');
     
    366366
    367367
    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);
    370370            $template->delete_compiled_templates();
    371371            array_push($page['infos'], l10n('Your configuration settings are saved'));
    372372
    373             $selected = $_POST['Add_Info_photos'];
     373            $selected = $_POST['add_Info_photos'];
    374374            $template->assign(
    375375                    'gestionA', array(
  • extensions/manage_info_photos/admin/admin.tpl

    r30655 r30676  
    111111                        <fieldset>
    112112                                <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}
    114114                                <br>   
    115115                                <br>
  • extensions/manage_info_photos/maintain.class.php

    r30631 r30676  
    3131        $result = pwg_query($query);
    3232       
    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);';
    3434    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);';
    3636    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);';
    3838    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);';
    4040    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);';
    4242    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);';
    4444    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);';
    4646    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);';
    4848    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);';
    5050    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);';
    5252    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);';
    5454    pwg_query($q);
    5555   
     
    6262  function update($old_version, $new_version, &$errors=array()){
    6363    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);
    6666    }
    6767  }
     
    7171
    7272  function uninstall(){
    73     conf_delete_param('Add_Info_photos');
     73    conf_delete_param('add_Info_photos');
    7474    $q = 'DROP TABLE ' . $prefixeTable . 'add_Info_photos;';
    7575    pwg_query($q);
Note: See TracChangeset for help on using the changeset viewer.