Source for file sup.php
Documentation is available at sup.php
* @author linea21 <info@linea21.com>
* @license http://opensource.org/licenses/gpl-3.0.html
//////////// Check Inclusion de pages ////////////
include_once("../lib/lib_common.php");
if(isset ($_POST['id'])) $id= $_POST['id'];
if(isset ($_GET['id'])) $id= $_GET['id'];
if((is_string($id[0]) && $id[0]== 's') || isset ($_POST['root'])) {
$mask_mass_del= "style=\"visibility:hidden;\"";
$mask_del_meth= 'disabled="disabled"';
$mask_mod_meth= 'checked="checked"';
$form_theme_transfert=- 1;
$mask_mass_del= "style=\"visibility:hidden;\"";
$mask_mass_mod= "style=\"visibility:hidden;\"";
$form_theme_transfert=- 1;
if(isset ($_POST['valider'])) {
if(isset ($_POST['root'])) $root = true; else $root = false;
if(isset ($_POST['sup_method'])) {
$sup_method= $_POST['sup_method'];
if($sup_method== 'delete') {
$mask_mass_del= "style=\"visibility:visible;\"";
$mask_del_meth= "checked=\"checked\"";
$form_theme_transfert=- 1;
if($sup_method== 'modify') {
$mask_mod_meth= 'checked="checked"';
$mask_mass_mod= "style=\"visibility:visible;\"";
if($_POST['transfert_theme']==- 1) $integrity= _t('theme','sup_notheme');
else $form_theme_transfert= $_POST['transfert_theme'];
if($_SESSION['securityaction']!= md5($_POST['securitycode'])) {
$integrity= _t('security','message');
$theme_object= new theme;
if($root == true) $theme_object->SetRoot();
$link_confirm= "confirm.php?rub=". $rub. "&todo=". $todo;
$result= $theme_object->DeleteTheme($id, $sql_object, $type, $form_theme_transfert);
$integrity= _t('theme','sup_nomethod');
include_once("../lib/input_helpers.php");
// select-box des SD thèmes
$select_theme= SDThemeSelectBox($data, "transfert_theme", $form_theme_transfert);
$data= $sql_object->DBSelect($req_list);
$select_theme= ThemeSelectBox($data, "transfert_theme", $form_theme_transfert);
$result1= $sql_object->DBSelect($query);
$theme_name= formatText($result1[0]['theme_name'],'2HTML');
<li><a href="index.php" class="chemin_home"> <?php echo _t('way','home') ?></a>
<li><a href=" <?php echo $rub_link; ?>" id="chemin_ <?php echo $rub; ?>"
class="chemin_rub"> <?php echo _t('menu','theme')?></a></li>
include_once(THEME_ADMIN_PATH. "quickicons.php");
<div class="contentcontainer"> <?php
include_once($dir. "/menurub.php");
<form id="suptheme" action=" <?php echo $_SERVER['SCRIPT_NAME']; ?>"
<p><input type="radio" name="sup_method" id="sup_method_del"
value="delete" onclick="ShowSuppInfo('mass_delete');"
<?php echo $mask_del_meth; ?> /> <?php echo _t('theme','sup_massd'); ?>
<p><input type="radio" name="sup_method" id="sup_method_mod"
value="modify" onclick="ShowSuppInfo('mass_modify');"
<?php echo $mask_mod_meth; ?> /> <?php echo _t('theme','sup_massm'); ?>
<p id="transfert" <?php echo $mask_mass_mod; ?>><label
for="transfert_theme"> <?php echo _t('theme','sup_transfert'); ?></label>
<?php echo $select_theme; ?></p>
<p><label for="securitycode"> <?php echo _t('security','info'); ?></label>
<img src="../lib/securitycode.php"
alt=" <?php echo _t('security','info2'); ?>" id="securityimg" /> <input
type="text" class="shorttextfield" id="securitycode" maxlength="5"
name="securitycode" /></p>
echo "<div class=\"info\" id=\"mass_delete\" ". $mask_mass_del. ">\n";
echo "\t". _t('theme','sup_mass_delete'). "\n";
echo "<div class=\"info\" id=\"mass_modify\" ". $mask_mass_mod. ">\n";
echo "\t". _t('theme','sup_mass_modify'). "\n";
?> <?php if($root == true) { ?> <input name="root" type="hidden"
id="root" value="1" /> <?php } ?>
<div><input name="id" type="hidden" value=" <?php echo $id; ?>" /> <input
name="rub" type="hidden" value=" <?php echo $rub; ?>" id="rub" /> <input
name="todo" type="hidden" value=" <?php echo $todo; ?>" id="todo" /> <?php echo cancel_button('javascript:history.go(-1);'); ?>
<input name="valider" type="submit"
value=" <?php echo _t('btn','valid') ?>" class="button" id="valider" />
<?php include_once($dir. "/help.php"); ?></div>
|