Source for file confirm.php
Documentation is available at confirm.php
* @author linea21 <info@linea21.com>
* @license http://opensource.org/licenses/gpl-3.0.html
include_once("../config/define.php");
echo '<?xml version="1.0" encoding="'. CHARSET. '" xml:lang="'. U_L . '">'. END_LINE;
if(!isset ($_GET['rub']) && !isset ($_POST['rub'])) {
if(isset ($_POST['rub'])) $rub= strip_tags($_POST['rub']);
if(isset ($_GET['rub'])) $rub= strip_tags($_GET['rub']);
if(!isset ($_GET['todo']) && !isset ($_POST['todo'])) {
if(isset ($_POST['todo'])) $todo= strip_tags($_POST['todo']);
if(isset ($_GET['todo'])) $todo= strip_tags($_GET['todo']);
if(isset ($_POST['id'])) $id= strip_tags($_POST['id']);
if(isset ($_GET['id'])) $id= strip_tags($_GET['id']);
include_once('../languages/'. U_L. '/lang_common.' . CHARSET . '.php');
include_once('../languages/'. U_L. '/lang_' . $rub. '.' . CHARSET . '.php');
$backlink= "index.php?rub=". $rub;
if($todo== 'add') $message= _t('project','confirm_add');
if($todo== 'mod') $message= _t('project','confirm_mod');
if($todo== 'sup') $message= _t('project','confirm_sup');
if($todo== 'mod') $message= _t('level','confirm_mod');
if($todo== 'add') $message= _t('scale','confirm_add');
if($todo== 'mod') $message= _t('scale','confirm_mod');
if($todo== 'sup') $message= _t('scale','confirm_sup');
if($todo== 'add') $message= _t('theme','confirm_add');
if($todo== 'mod') $message= _t('theme','confirm_mod');
if($todo== 'sup') $message= _t('theme','confirm_sup');
if($todo== 'add') $message= _t('user','confirm_add');
if($todo== 'mod') $message= _t('user','confirm_mod');
if($todo== 'mod_p') $message= _t('user','confirm_modpass');
$message= _t('user','confirm_changetype');
$backlink= "index.php?rub=user&todo=det&id=". $id;
if($todo== 'sup') $message= _t('user','confirm_sup');
if($todo== 'add') $message= _t('news','confirm_add');
if($todo== 'mod') $message= _t('news','confirm_mod');
if($todo== 'sup') $message= _t('news','confirm_sup');
if($todo== 'add') $message= _t('newsletter','confirm_add');
if($todo== 'mod') $message= _t('newsletter','confirm_mod');
if($todo== 'sup') $message= _t('newsletter','confirm_sup');
if($rub== 'yellowpages') {
if($todo== 'add') $message= _t('yp','confirm_add');
$message= _t('yp','confirm_mod');
$backlink= "index.php?rub=yellowpages&todo=det&id=". $_GET['id'];
if($todo== 'sup') $message= _t('yp','confirm_sup');
if($todo== 'add') $message= _t('dashboard','confirm_add');
if($todo== 'mod') $message= _t('dashboard','confirm_mod');
if($todo== 'sup') $message= _t('dashboard','confirm_sup');
$backlink= "index.php?rub=dashboard&todo=det&id=". $_GET['id']. "&scale_id=". $_GET['scale_id'];
if($todo== 'add') $message= _t('sdi','confirm_add');
$message= _t('sdi','confirm_mod');
$backlink= "index.php?rub=sdi&todo=det&id=". $_GET['id'];
{ $message= _t('sdi','e_confirm_mod');
$backlink= "index.php?rub=sdi&todo=det&id=". $_GET['id'];
$message= _t('sdi','r_confirm_mod');
$backlink= "index.php?rub=sdi&todo=det&id=". $_GET['id'];
$message= _t('sdi','p_confirm_mod');
$backlink= "index.php?rub=sdi&todo=det&id=". $_GET['id'];
if($todo== 'sup') $message= _t('sdi','confirm_sup');
if($rub== 'publication') {
if($todo== 'add') $message= _t('publication','confirm_add');
if($todo== 'mod') $message= _t('publication','confirm_mod');
if($todo== 'sup') $message= _t('publication','confirm_sup');
if($todo== 'add') $message= _t('workshop','confirm_add');
if($todo== 'sup') $message= _t('workshop','confirm_sup');
$message= _t('workshop','confirm_sup_u');
$backlink= "index.php?rub=workshop&todo=det&id=". $_GET['id'];
$message= _t('workshop','confirm_mod');
$backlink= "index.php?rub=workshop&todo=det&id=". $_GET['id'];
$message= _t('workshop','confirm_mod_cal');
$backlink= "index.php?rub=workshop&todo=list_cal&id=". $_GET['id'];
if($todo== 'mod_com' || $todo== 'lock_com'){
$message= _t('workshop','confirm_mod_com');
$backlink= "index.php?rub=workshop&todo=det_com&id=". $_GET['id']. "&com_id=". $_GET['com_id'];
if(isset ($_GET['mes_id'])) $backlink.= "#". $_GET['mes_id'];
$message= _t('workshop','confirm_add_cal');
$backlink= "index.php?rub=workshop&todo=list_cal&id=". $_GET['id'];
$message= _t('workshop','confirm_add_u');
$backlink= "index.php?rub=workshop&todo=det&id=". $_GET['id'];
$message= _t('workshop','confirm_add_com');
$backlink= "index.php?rub=workshop&todo=det_com&id=". $_GET['id']. "&com_id=". $_GET['com_id'];
if(isset ($_GET['mes_id'])) $backlink.= "#". $_GET['mes_id'];
$message= _t('workshop','confirm_sup_cal');
$backlink= "index.php?rub=workshop&todo=list_cal&id=". $_GET['id'];
$message= _t('workshop','confirm_sup_com');
if(isset ($_GET['all'])) $backlink= "index.php?rub=workshop&todo=list_com&id=". $_GET['id']. "&com_id=". $_GET['com_id'];
else $backlink= "index.php?rub=workshop&todo=det_com&id=". $_GET['id']. "&com_id=". $_GET['com_id'];
if($todo== 'add_l' || $todo== 'add_m' || $todo== 'add_b') $message= _t('resources','confirm_add');
if($todo== 'mod_l' || $todo== 'mod_m' || $todo== 'mod_b') $message= _t('resources','confirm_mod');
if($todo== 'sup') $message= _t('resources','confirm_sup');
if($_GET['type']== 'P') $backlink= "index.php?rub=publication&todo=det&id=". $_GET['id'];
if($_GET['type']== 'W') $backlink= "index.php?rub=workshoprep&todo=det&id=". $_GET['id'];
if($todo== 'add') $message= _t('contents','confirm_add');
if($todo== 'mod') $message= _t('contents','confirm_mod');
if($todo== 'sup') $message= _t('contents','confirm_sup');
if($_GET['type']== 'P') $backlink= "index.php?rub=publication&todo=det&id=". $_GET['id'];
if($_GET['type']== 'W') $backlink= "index.php?rub=workshoprep&todo=det&id=". $_GET['id'];
if($rub== 'workshoprep') {
if($todo== 'add') $message= _t('workshoprep','confirm_add');
if($todo== 'mod') $message= _t('workshoprep','confirm_mod');
$message= _t('workshoprep','confirm_sup');
$backlink= "index.php?rub=workshop&todo=det&id=". $_GET['id'];
$backlink= "index.php?rub=". $rub. "&todo=det&id=". $_GET['id'];
if($todo== 'mod') $message= _t('system','confirm_mod');
if($todo== 'edit_files') {
$message= _t('sys_theme','confirm_edit');
$backlink= "index.php?rub=system&todo=edit_files&file=". $_GET['file'];
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang=" <?php echo U_L; ?>">
<meta HTTP-EQUIV="Refresh" CONTENT=" <?php echo CONFIRM_REFRESH; ?>;URL= <?php echo $backlink; ?>">
<meta http-equiv="content-language" content=" <?php echo U_L; ?>" />
<meta http-equiv="content-type" content="text/html; charset= <?php echo CHARSET; ?>" />
<title> <?php echo _t('header','title'); ?></title>
<link type="text/css" rel="StyleSheet" href=" <?php echo THEME_ADMIN_PATH; ?>css/actionconfirm.css" />
<h1> <?php echo $message; ?></h1>
|