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

Documentation generated on Thu, 03 May 2012 15:03:33 +0200 by phpDocumentor 1.4.1