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.   if($todo=='delavatar'{
  72.       $message=_t('user','confirm_delavatar');
  73.       $backlink="index.php?rub=user&todo=mod&id=".$id;
  74.   }
  75. }
  76.  
  77. if($rub=='news'{
  78.   if($todo=='add'$message=_t('news','confirm_add');
  79.   if($todo=='mod')  $message=_t('news','confirm_mod');
  80.   if($todo=='sup'$message=_t('news','confirm_sup');
  81. }
  82.  
  83. if($rub=='page'{
  84.     if($todo=='add'$message=_t('page','confirm_add');
  85.     if($todo=='mod')  $message=_t('page','confirm_mod');
  86.     if($todo=='sup'$message=_t('page','confirm_sup');
  87. }
  88.  
  89. if($rub=='newsletter'{
  90.   if($todo=='add'$message=_t('newsletter','confirm_add');
  91.   if($todo=='mod')  $message=_t('newsletter','confirm_mod');
  92.   if($todo=='sup'$message=_t('newsletter','confirm_sup');
  93. }
  94.  
  95. if($rub=='yellowpages'{
  96.   if($todo=='add'$message=_t('yp','confirm_add');
  97.   if($todo=='mod')  {
  98.     $message=_t('yp','confirm_mod');
  99.     $backlink="index.php?rub=yellowpages&todo=det&id=".$_GET['id'];
  100.   }
  101.   if($todo=='sup'$message=_t('yp','confirm_sup');
  102. }
  103.  
  104. if($rub=='dashboard'{
  105.   if($todo=='add'$message=_t('dashboard','confirm_add');
  106.   if($todo=='mod')  $message=_t('dashboard','confirm_mod');
  107.   if($todo=='sup'$message=_t('dashboard','confirm_sup');
  108.   $backlink="index.php?rub=dashboard&todo=det&id=".$_GET['id']."&scale_id=".$_GET['scale_id'];
  109. }
  110. if($rub=='sdi'{
  111.   if($todo=='add'$message=_t('sdi','confirm_add');
  112.   if($todo=='mod')  {
  113.     $message=_t('sdi','confirm_mod');
  114.     $backlink="index.php?rub=sdi&todo=det&id=".$_GET['id'];
  115.   }
  116.   if($todo=='mod_e')
  117.   {  $message=_t('sdi','e_confirm_mod');
  118.   $backlink="index.php?rub=sdi&todo=det&id=".$_GET['id'];
  119.   }
  120.   if($todo=='mod_r'){
  121.     $message=_t('sdi','r_confirm_mod');
  122.     $backlink="index.php?rub=sdi&todo=det&id=".$_GET['id'];
  123.   }
  124.   if($todo=='mod_p'){
  125.     $message=_t('sdi','p_confirm_mod');
  126.     $backlink="index.php?rub=sdi&todo=det&id=".$_GET['id'];
  127.   }
  128.   if($todo=='sup'$message=_t('sdi','confirm_sup');
  129. }
  130. if($rub=='publication'{
  131.   if($todo=='add'$message=_t('publication','confirm_add');
  132.   if($todo=='mod')  $message=_t('publication','confirm_mod');
  133.   if($todo=='sup'$message=_t('publication','confirm_sup');
  134. }
  135.  
  136. if($rub=='workshop'{
  137.   if($todo=='add')         $message=_t('workshop','confirm_add');
  138.   if($todo=='sup')        $message=_t('workshop','confirm_sup');
  139.  
  140.   if($todo=='sup_u'{
  141.     $message=_t('workshop','confirm_sup_u');
  142.     $backlink="index.php?rub=workshop&todo=det&id=".$_GET['id'];
  143.   }
  144.   if($todo=='mod')      {
  145.     $message=_t('workshop','confirm_mod');
  146.     $backlink="index.php?rub=workshop&todo=det&id=".$_GET['id'];
  147.   }
  148.   if($todo=='mod_cal'){
  149.     $message=_t('workshop','confirm_mod_cal');
  150.     $backlink="index.php?rub=workshop&todo=list_cal&id=".$_GET['id'];
  151.   }
  152.   if($todo=='mod_com' || $todo=='lock_com'){
  153.     $message=_t('workshop','confirm_mod_com');
  154.     $backlink="index.php?rub=workshop&todo=det_com&id=".$_GET['id']."&com_id=".$_GET['com_id'];
  155.     if(isset($_GET['mes_id'])) $backlink.="#".$_GET['mes_id'];
  156.   }
  157.   if($todo=='add_cal'){
  158.     $message=_t('workshop','confirm_add_cal');
  159.     $backlink="index.php?rub=workshop&todo=list_cal&id=".$_GET['id'];
  160.   }
  161.   if($todo=='add_u'){
  162.     $message=_t('workshop','confirm_add_u');
  163.     $backlink="index.php?rub=workshop&todo=det&id=".$_GET['id'];
  164.   }
  165.   if($todo=='add_com'){
  166.     $message=_t('workshop','confirm_add_com');
  167.     $backlink="index.php?rub=workshop&todo=det_com&id=".$_GET['id']."&com_id=".$_GET['com_id'];
  168.     if(isset($_GET['mes_id'])) $backlink.="#".$_GET['mes_id'];
  169.   }
  170.   if($todo=='sup_cal'){
  171.     $message=_t('workshop','confirm_sup_cal');
  172.     $backlink="index.php?rub=workshop&todo=list_cal&id=".$_GET['id'];
  173.   }
  174.   if($todo=='sup_com'){
  175.     $message=_t('workshop','confirm_sup_com');
  176.     if(isset($_GET['all'])) $backlink="index.php?rub=workshop&todo=list_com&id=".$_GET['id']."&com_id=".$_GET['com_id'];
  177.     else $backlink="index.php?rub=workshop&todo=det_com&id=".$_GET['id']."&com_id=".$_GET['com_id'];
  178.   }
  179. }
  180.  
  181. if($rub=='resources'{
  182.   if($todo=='add_l' || $todo=='add_m' || $todo=='add_b'$message=_t('resources','confirm_add');
  183.   if($todo=='mod_l' || $todo=='mod_m' || $todo=='mod_b'$message=_t('resources','confirm_mod');
  184.   if($todo=='sup'$message=_t('resources','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.  
  190. if($rub=='contents'{
  191.   if($todo=='add'$message=_t('contents','confirm_add');
  192.   if($todo=='mod'$message=_t('contents','confirm_mod');
  193.   if($todo=='sup'$message=_t('contents','confirm_sup');
  194.   if($_GET['type']=='P'$backlink="index.php?rub=publication&todo=det&id=".$_GET['id'];
  195.   if($_GET['type']=='W'$backlink="index.php?rub=workshoprep&todo=det&id=".$_GET['id'];
  196. }
  197.  
  198. if($rub=='workshoprep'{
  199.   if($todo=='add'$message=_t('workshoprep','confirm_add');
  200.   if($todo=='mod'$message=_t('workshoprep','confirm_mod');
  201.   if($todo=='sup'{
  202.     $message=_t('workshoprep','confirm_sup');
  203.     $backlink="index.php?rub=workshop&todo=det&id=".$_GET['id'];
  204.   else {
  205.     $backlink="index.php?rub=".$rub."&todo=det&id=".$_GET['id'];
  206.   }
  207.  
  208. }
  209. if($rub=='system'{
  210.   if($todo=='mod')  $message=_t('system','confirm_mod');
  211.   if($todo=='edit_files'{
  212.     $message=_t('sys_theme','confirm_edit');
  213.     $backlink="index.php?rub=system&todo=edit_files&file=".$_GET['file'];
  214.   }
  215. }
  216.  
  217. ?>
  218. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  219. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo U_L?>">
  220. <head>
  221. <meta HTTP-EQUIV="Refresh" CONTENT="<?php echo CONFIRM_REFRESH?>;URL=<?php echo $backlink?>">
  222. <meta http-equiv="content-language" content="<?php echo U_L?>" />
  223. <meta http-equiv="content-type" content="text/html; charset=<?php echo CHARSET?>" />
  224. <title><?php echo _t('header','title')?></title>
  225. <link type="text/css" rel="StyleSheet" href="<?php echo THEME_ADMIN_PATH?>css/actionconfirm.css" />
  226. </head>
  227. <body>
  228. <h1><?php echo $message?></h1>
  229. </body>
  230. </html>
  231. <?php
  232. ?>

Documentation generated on Mon, 08 Apr 2013 18:13:31 +0200 by phpDocumentor 1.4.1