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

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