Ignore:
Timestamp:
Apr 18, 2011, 4:57:44 PM (14 years ago)
Author:
Gotcha
Message:

Corrections pour les paramètres de lBDD

Location:
extensions/sobre/trunk/admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/sobre/trunk/admin/admin.inc.php

    r10317 r10480  
    11<?php
    22
    3 load_language('theme.lang', PHPWG_THEMES_PATH.'urbex/');
     3load_language('theme.lang', PHPWG_THEMES_PATH.'sobre/');
    44
    55$options = array(
     
    1414  foreach ($options as $option)
    1515  {
    16     $_POST['urbx'][$option] = empty($_POST['urbx'][$option]) ? false : true;
     16    $_POST['sbre'][$option] = empty($_POST['sbre'][$option]) ? false : true;
    1717  }
    1818
    1919  $query = '
    2020UPDATE '.CONFIG_TABLE.'
    21 SET value = "'.addslashes(serialize($_POST['urbx'])).'"
    22 WHERE param = "Urbex"
     21SET value = "'.addslashes(serialize($_POST['sbre'])).'"
     22WHERE param = "Sobre"
    2323;';
    2424  pwg_query($query);
     
    3232    'theme_admin_content' => dirname(__FILE__) . '/admin.tpl'));
    3333
    34 $template->assign('urbx', unserialize($conf['Urbex']));
     34$template->assign('sbre', unserialize($conf['Sobre']));
    3535
    3636$template->assign_var_from_handle('ADMIN_CONTENT', 'theme_admin_content');
  • extensions/sobre/trunk/admin/admin.tpl

    r10317 r10480  
    11<div class="titrePage">
    2   <h2>Urbex</h2>
     2  <h2>Sobre</h2>
    33</div>
    44
     
    1010        <li>
    1111          <span class="property">{'Display page banner on home page'|@translate}</span>
    12           <input type="checkbox" name="urbx[home]" value="true" {if $urbx.home}checked="checked"{/if}>
     12          <input type="checkbox" name="sbre[home]" value="true" {if $sbre.home}checked="checked"{/if}>
    1313        </li>
    1414        <li>
    1515          <span class="property">{'Display page banner on categories pages'|@translate}</span>
    16           <input type="checkbox" name="urbx[categories]" value="true" {if $urbx.categories}checked="checked"{/if}>
     16          <input type="checkbox" name="sbre[categories]" value="true" {if $sbre.categories}checked="checked"{/if}>
    1717        </li>
    1818        <li>
    1919          <span class="property">{'Display page banner on picture page'|@translate}</span>
    20           <input type="checkbox" name="urbx[picture]" value="true" {if $urbx.picture}checked="checked"{/if}>
     20          <input type="checkbox" name="sbre[picture]" value="true" {if $sbre.picture}checked="checked"{/if}>
    2121        </li>
    2222        <li>
    2323          <span class="property">{'Display page banner on other pages'|@translate}</span>
    24           <input type="checkbox" name="urbx[other]" value="true" {if $urbx.other}checked="checked"{/if}>
     24          <input type="checkbox" name="sbre[other]" value="true" {if $sbre.other}checked="checked"{/if}>
    2525        </li>
    2626      </ul>
Note: See TracChangeset for help on using the changeset viewer.