linea21-core
[ class tree: linea21-core ] [ index: linea21-core ] [ all elements ]

Source for file confirm.php

Documentation is available at confirm.php

  1. <?php
  2. /**
  3.  * @package linea21.core
  4.  * @subpackage admin
  5.  * @author linea21 <info@linea21.com>
  6.  * @version $id SVN
  7.  * @access public
  8.  * @license http://opensource.org/licenses/gpl-3.0.html
  9.  */
  10.  
  11. include_once("../config/define.php")
  12. include_once("../config/server.php");
  13. echo '<?xml version="1.0" encoding="'.CHARSET.'" xml:lang="'LANGUAGE .'">'.END_LINE;
  14.  
  15. if(!isset($_GET['rub']&& !isset($_POST['rub'])) {
  16.     $rub="level";
  17. else {
  18.     if(isset($_POST['rub']))    $rub=$_POST['rub'];
  19.     if(isset($_GET['rub']))    $rub=$_GET['rub'];
  20. }
  21. if(!isset($_GET['todo']&& !isset($_POST['todo'])) {
  22.     $todo="list";
  23. else {
  24.     if(isset($_POST['todo']))    $todo=$_POST['todo'];
  25.     if(isset($_GET['todo']))    $todo=$_GET['todo'];
  26. }
  27.  
  28. if(isset($_POST['id']))    $id=$_POST['id'];
  29. if(isset($_GET['id']))    $id=$_GET['id'];
  30.  
  31. /**
  32. * language include
  33. **/
  34.  
  35. include_once('../languages/'.LANGUAGE.'/lang_common.' CHARSET '.php');
  36. include_once('../languages/'.LANGUAGE.'/lang_' .$rub'.' CHARSET '.php');
  37. $GLOBALS['lang']=$lang;
  38.  
  39. $backlink="index.php?rub=".$rub;
  40.  
  41. if($rub=='project'{
  42.     if($todo=='add'$message=$GLOBALS['lang']['project']['confirm_add'];
  43.     if($todo=='mod'$message=$GLOBALS['lang']['project']['confirm_mod'];
  44.     if($todo=='sup'$message=$GLOBALS['lang']['project']['confirm_sup'];
  45. }
  46.  
  47. if($rub=='level'{
  48.     if($todo=='add'$message=$GLOBALS['lang']['level']['confirm_add'];
  49.     if($todo=='mod'$message=$GLOBALS['lang']['level']['confirm_mod'];
  50.     if($todo=='sup'$message=$GLOBALS['lang']['level']['confirm_sup'];
  51. }
  52.  
  53. if($rub=='scale'{
  54.     if($todo=='add'$message=$GLOBALS['lang']['scale']['confirm_add'];
  55.     if($todo=='mod')  $message=$GLOBALS['lang']['scale']['confirm_mod'];
  56.     if($todo=='sup'$message=$GLOBALS['lang']['scale']['confirm_sup'];
  57. }
  58.  
  59. if($rub=='theme'{
  60.     if($todo=='add'$message=$GLOBALS['lang']['theme']['confirm_add'];
  61.     if($todo=='mod')  $message=$GLOBALS['lang']['theme']['confirm_mod'];
  62.     if($todo=='sup'$message=$GLOBALS['lang']['theme']['confirm_sup'];
  63. }
  64.  
  65. if($rub=='user'{
  66.     if($todo=='add'$message=$GLOBALS['lang']['user']['confirm_add'];
  67.     if($todo=='mod')  $message=$GLOBALS['lang']['user']['confirm_mod'];
  68.     if($todo=='mod_p')  $message=$GLOBALS['lang']['user']['confirm_modpass'];
  69.     if($todo=='mod_t')  {
  70.         $message=$GLOBALS['lang']['user']['confirm_changetype'];
  71.         $backlink="index.php?rub=user&todo=det&id=".$id;
  72.         }
  73.     if($todo=='sup'$message=$GLOBALS['lang']['user']['confirm_sup'];
  74. }
  75.  
  76. if($rub=='news'{
  77.     if($todo=='add'$message=$GLOBALS['lang']['news']['confirm_add'];
  78.     if($todo=='mod')  $message=$GLOBALS['lang']['news']['confirm_mod'];
  79.     if($todo=='sup'$message=$GLOBALS['lang']['news']['confirm_sup'];
  80. }
  81.  
  82. if($rub=='newsletter'{
  83.     if($todo=='add'$message=$GLOBALS['lang']['newsletter']['confirm_add'];
  84.     if($todo=='mod')  $message=$GLOBALS['lang']['newsletter']['confirm_mod'];
  85.     if($todo=='sup'$message=$GLOBALS['lang']['newsletter']['confirm_sup'];
  86. }
  87.  
  88. if($rub=='yellowpages'{
  89.     if($todo=='add'$message=$GLOBALS['lang']['yp']['confirm_add'];
  90.     if($todo=='mod')  {
  91.     $message=$GLOBALS['lang']['yp']['confirm_mod'];
  92.     $backlink="index.php?rub=yellowpages&todo=det&id=".$_GET['id'];
  93.     }
  94.     if($todo=='sup'$message=$GLOBALS['lang']['yp']['confirm_sup'];
  95. }
  96.  
  97. if($rub=='dashboard'{
  98.     if($todo=='add'$message=$GLOBALS['lang']['dashboard']['confirm_add'];
  99.     if($todo=='mod')  $message=$GLOBALS['lang']['dashboard']['confirm_mod'];
  100.     if($todo=='sup'$message=$GLOBALS['lang']['dashboard']['confirm_sup'];
  101.     $backlink="index.php?rub=dashboard&todo=det&id=".$_GET['id']."&scale_id=".$_GET['scale_id'];
  102. }
  103. if($rub=='sdi'{
  104.     if($todo=='add'$message=$GLOBALS['lang']['sdi']['confirm_add'];
  105.     if($todo=='mod')  {
  106.     $message=$GLOBALS['lang']['sdi']['confirm_mod'];
  107.     $backlink="index.php?rub=sdi&todo=det&id=".$_GET['id'];
  108.     }
  109.     if($todo=='mod_e')
  110.     {  $message=$GLOBALS['lang']['sdi']['e_confirm_mod'];
  111.     $backlink="index.php?rub=sdi&todo=det&id=".$_GET['id'];
  112.     }
  113.     if($todo=='mod_r'){
  114.     $message=$GLOBALS['lang']['sdi']['r_confirm_mod'];
  115.     $backlink="index.php?rub=sdi&todo=det&id=".$_GET['id'];
  116.     }
  117.     if($todo=='mod_p'){
  118.     $message=$GLOBALS['lang']['sdi']['p_confirm_mod'];
  119.     $backlink="index.php?rub=sdi&todo=det&id=".$_GET['id'];
  120.     }
  121.     if($todo=='sup'$message=$GLOBALS['lang']['sdi']['confirm_sup'];
  122. }
  123. if($rub=='publication'{
  124.     if($todo=='add'$message=$GLOBALS['lang']['publication']['confirm_add'];
  125.     if($todo=='mod')  $message=$GLOBALS['lang']['publication']['confirm_mod'];
  126.     if($todo=='sup'$message=$GLOBALS['lang']['publication']['confirm_sup'];
  127. }
  128.  
  129. if($rub=='workshop'{
  130.     if($todo=='add')         $message=$GLOBALS['lang']['workshop']['confirm_add'];
  131.     if($todo=='sup')        $message=$GLOBALS['lang']['workshop']['confirm_sup'];
  132.     
  133.     if($todo=='sup_u'{
  134.     $message=$GLOBALS['lang']['workshop']['confirm_sup_u'];
  135.     $backlink="index.php?rub=workshop&todo=det&id=".$_GET['id'];
  136.     }
  137.     if($todo=='mod')      {
  138.         $message=$GLOBALS['lang']['workshop']['confirm_mod'];
  139.         $backlink="index.php?rub=workshop&todo=det&id=".$_GET['id'];
  140.     }
  141.     if($todo=='mod_cal'){
  142.         $message=$GLOBALS['lang']['workshop']['confirm_mod_cal'];
  143.         $backlink="index.php?rub=workshop&todo=list_cal&id=".$_GET['id'];
  144.     }
  145.     if($todo=='mod_com' || $todo=='lock_com'){
  146.         $message=$GLOBALS['lang']['workshop']['confirm_mod_com'];
  147.         $backlink="index.php?rub=workshop&todo=list_com&id=".$_GET['id'];
  148.     }
  149.     if($todo=='add_cal'){
  150.         $message=$GLOBALS['lang']['workshop']['confirm_add_cal'];
  151.         $backlink="index.php?rub=workshop&todo=list_cal&id=".$_GET['id'];
  152.     }
  153.     if($todo=='add_u'){
  154.         $message=$GLOBALS['lang']['workshop']['confirm_add_u'];
  155.         $backlink="index.php?rub=workshop&todo=det&id=".$_GET['id'];
  156.     }
  157.     if($todo=='add_com'){
  158.         $message=$GLOBALS['lang']['workshop']['confirm_add_com'];
  159.         $backlink="index.php?rub=workshop&todo=list_com&id=".$_GET['id'];
  160.     }
  161.     if($todo=='sup_cal'){
  162.         $message=$GLOBALS['lang']['workshop']['confirm_sup_cal'];
  163.         $backlink="index.php?rub=workshop&todo=list_cal&id=".$_GET['id'];
  164.     }
  165.     if($todo=='sup_com'){
  166.         $message=$GLOBALS['lang']['workshop']['confirm_sup_com'];
  167.         $backlink="index.php?rub=workshop&todo=list_com&id=".$_GET['id'];
  168.     }
  169. }
  170.  
  171. if($rub=='resources'{
  172.     if($todo=='add_l' || $todo=='add_m' || $todo=='add_b'$message=$GLOBALS['lang']['resources']['confirm_add'];
  173.     if($todo=='mod_l' || $todo=='mod_m' || $todo=='mod_b'$message=$GLOBALS['lang']['resources']['confirm_mod'];
  174.     if($todo=='sup'$message=$GLOBALS['lang']['resources']['confirm_sup'];
  175.     if($_GET['type']=='P'$backlink="index.php?rub=publication&todo=det&id=".$_GET['id'];
  176.     if($_GET['type']=='W'$backlink="index.php?rub=workshoprep&todo=det&id=".$_GET['id'];
  177.     
  178. }
  179.  
  180. if($rub=='contents'{
  181.     if($todo=='add'$message=$GLOBALS['lang']['contents']['confirm_add'];
  182.     if($todo=='mod'$message=$GLOBALS['lang']['contents']['confirm_mod'];
  183.     if($todo=='sup'$message=$GLOBALS['lang']['contents']['confirm_sup'];
  184.     if($_GET['type']=='P'$backlink="index.php?rub=publication&todo=det&id=".$_GET['id'];
  185.     if($_GET['type']=='W'$backlink="index.php?rub=workshoprep&todo=det&id=".$_GET['id'];
  186. }
  187.  
  188. if($rub=='workshoprep'{
  189.     if($todo=='add'$message=$GLOBALS['lang']['workshoprep']['confirm_add'];
  190.     if($todo=='mod'$message=$GLOBALS['lang']['workshoprep']['confirm_mod'];
  191.     if($todo=='sup'{
  192.         $message=$GLOBALS['lang']['workshoprep']['confirm_sup'];
  193.         $backlink="index.php?rub=workshop&todo=det&id=".$_GET['id'];
  194.     else {
  195.         $backlink="index.php?rub=".$rub."&todo=det&id=".$_GET['id'];
  196.     }
  197.     
  198. }
  199. if($rub=='system'{
  200.     if($todo=='mod')  $message=$GLOBALS['lang']['system']['confirm_mod'];
  201. }
  202.  
  203. ?>
  204. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  205.  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  206. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo LANGUAGE?>">
  207. <head>
  208. <meta HTTP-EQUIV="Refresh" CONTENT="<?php echo CONFIRM_REFRESH?>;URL=<?php echo $backlink?>">
  209. <meta http-equiv="content-language" content="<?php echo LANGUAGE?>" />
  210. <meta http-equiv="content-type" content="text/html; charset=<?php echo CHARSET?>" />
  211. <title><?php echo $GLOBALS['lang']['header']['title']?></title>
  212. <link type="text/css" rel="StyleSheet" href="../gfx/<?php echo THEME_ADMIN?>/css/actionconfirm.css" />
  213. </head>
  214. <body>
  215. <h1>
  216.     <?php echo $message?>
  217. </h1>
  218. </body>
  219. </html>
  220. <?php
  221. ?>

Documentation generated on Sat, 08 Nov 2008 14:51:42 +0100 by phpDocumentor 1.4.1