Commit 5abf0fd3 authored by damosoft's avatar damosoft

$feature_redirect_on_error

parent fa3106be
<?php
// $Header: /cvsroot/tikiwiki/tiki/messu-archive.php,v 1.3 2005-05-18 10:58:52 mose Exp $
// $Header: /cvsroot/tikiwiki/tiki/messu-archive.php,v 1.4 2005-09-08 01:45:05 damosoft Exp $
// Copyright (c) 2002-2005, Luis Argerich, Garland Foster, Eduardo Polidor, et. al.
// All Rights Reserved. See copyright.txt for details and a complete list of authors.
......@@ -10,15 +10,25 @@ require_once ('tiki-setup.php');
include_once ('lib/messu/messulib.php');
if (!$user) {
if ($feature_redirect_on_error == 'y') {
header("location: $tikiIndex");
die;
} else {
$smarty->assign('msg', tra("You are not logged in"));
$smarty->display("error.tpl");
die;
}
}
if ($feature_messages != 'y') {
if ($feature_redirect_on_error == 'y') {
header("location: $tikiIndex");
die;
} else {
$smarty->assign('msg', tra("This feature is disabled").": feature_messages");
$smarty->display("error.tpl");
die;
}
}
if ($tiki_p_messages != 'y') {
......
<?php
// $Header: /cvsroot/tikiwiki/tiki/messu-broadcast.php,v 1.23 2005-05-18 10:58:52 mose Exp $
// $Header: /cvsroot/tikiwiki/tiki/messu-broadcast.php,v 1.24 2005-09-08 01:45:05 damosoft Exp $
// Copyright (c) 2002-2005, Luis Argerich, Garland Foster, Eduardo Polidor, et. al.
// All Rights Reserved. See copyright.txt for details and a complete list of authors.
......@@ -10,17 +10,27 @@ require_once ('tiki-setup.php');
include_once ('lib/messu/messulib.php');
if (!$user) {
if ($feature_redirect_on_error == 'y') {
header("location: $tikiIndex");
die;
} else {
$smarty->assign('msg', tra("You are not logged in"));
$smarty->display("error.tpl");
die;
}
}
if ($feature_messages != 'y') {
if ($feature_redirect_on_error == 'y') {
header("location: $tikiIndex");
die;
} else {
$smarty->assign('msg', tra("This feature is disabled").": feature_messages");
$smarty->display("error.tpl");
die;
}
}
if ($tiki_p_broadcast != 'y') {
......
<?php
// $Header: /cvsroot/tikiwiki/tiki/messu-compose.php,v 1.26 2005-08-30 11:55:00 sylvieg Exp $
// $Header: /cvsroot/tikiwiki/tiki/messu-compose.php,v 1.27 2005-09-08 01:45:05 damosoft Exp $
// Copyright (c) 2002-2005, Luis Argerich, Garland Foster, Eduardo Polidor, et. al.
// All Rights Reserved. See copyright.txt for details and a complete list of authors.
......@@ -10,15 +10,25 @@ require_once ('tiki-setup.php');
include_once ('lib/messu/messulib.php');
if (!$user) {
if ($feature_redirect_on_error == 'y') {
header("location: $tikiIndex");
die;
} else {
$smarty->assign('msg', tra("You are not logged in"));
$smarty->display("error.tpl");
die;
}
}
if ($feature_messages != 'y') {
if ($feature_redirect_on_error == 'y') {
header("location: $tikiIndex");
die;
} else {
$smarty->assign('msg', tra("This feature is disabled").": feature_messages");
$smarty->display("error.tpl");
die;
}
}
if ($tiki_p_messages != 'y') {
......
<?php
// $Header: /cvsroot/tikiwiki/tiki/messu-mailbox.php,v 1.16 2005-05-18 10:58:52 mose Exp $
// $Header: /cvsroot/tikiwiki/tiki/messu-mailbox.php,v 1.17 2005-09-08 01:45:05 damosoft Exp $
// Copyright (c) 2002-2005, Luis Argerich, Garland Foster, Eduardo Polidor, et. al.
// All Rights Reserved. See copyright.txt for details and a complete list of authors.
......@@ -10,15 +10,25 @@ require_once ('tiki-setup.php');
include_once ('lib/messu/messulib.php');
if (!$user) {
if ($feature_redirect_on_error == 'y') {
header("location: $tikiIndex");
die;
} else {
$smarty->assign('msg', tra("You are not logged in"));
$smarty->display("error.tpl");
die;
}
}
if ($feature_messages != 'y') {
if ($feature_redirect_on_error == 'y') {
header("location: $tikiIndex");
die;
} else {
$smarty->assign('msg', tra("This feature is disabled").": feature_messages");
$smarty->display("error.tpl");
die;
}
}
if ($tiki_p_messages != 'y') {
......
<?php
// $Header: /cvsroot/tikiwiki/tiki/messu-read.php,v 1.19 2005-08-25 20:50:04 michael_davey Exp $
// $Header: /cvsroot/tikiwiki/tiki/messu-read.php,v 1.20 2005-09-08 01:45:05 damosoft Exp $
// Copyright (c) 2002-2005, Luis Argerich, Garland Foster, Eduardo Polidor, et. al.
// All Rights Reserved. See copyright.txt for details and a complete list of authors.
......@@ -9,22 +9,28 @@ require_once ('tiki-setup.php');
include_once ('lib/messu/messulib.php');
/*
$access->check_page( $user, array("feature_messages"), array("tiki_p_messages") );
*/
if (!$user) {
if ($feature_redirect_on_error == 'y') {
header("location: $tikiIndex");
die;
} else {
$smarty->assign('msg', tra("You are not logged in"));
$smarty->display("error.tpl");
die;
}
}
if ($feature_messages != 'y') {
if ($feature_redirect_on_error == 'y') {
header("location: $tikiIndex");
die;
} else {
$smarty->assign('msg', tra("This feature is disabled").": feature_messages");
$smarty->display("error.tpl");
die;
}
}
if ($tiki_p_messages != 'y') {
......
<?php
// $Header: /cvsroot/tikiwiki/tiki/messu-read_archive.php,v 1.3 2005-05-18 10:58:52 mose Exp $
// $Header: /cvsroot/tikiwiki/tiki/messu-read_archive.php,v 1.4 2005-09-08 01:45:05 damosoft Exp $
// Copyright (c) 2002-2005, Luis Argerich, Garland Foster, Eduardo Polidor, et. al.
// All Rights Reserved. See copyright.txt for details and a complete list of authors.
......@@ -10,17 +10,27 @@ require_once ('tiki-setup.php');
include_once ('lib/messu/messulib.php');
if (!$user) {
if ($feature_redirect_on_error == 'y') {
header("location: $tikiIndex");
die;
} else {
$smarty->assign('msg', tra("You are not logged in"));
$smarty->display("error.tpl");
die;
}
}
if ($feature_messages != 'y') {
if ($feature_redirect_on_error == 'y') {
header("location: $tikiIndex");
die;
} else {
$smarty->assign('msg', tra("This feature is disabled").": feature_messages");
$smarty->display("error.tpl");
die;
}
}
if ($tiki_p_messages != 'y') {
......
<?php
// $Header: /cvsroot/tikiwiki/tiki/messu-read_sent.php,v 1.3 2005-05-18 10:58:52 mose Exp $
// $Header: /cvsroot/tikiwiki/tiki/messu-read_sent.php,v 1.4 2005-09-08 01:45:05 damosoft Exp $
// Copyright (c) 2002-2005, Luis Argerich, Garland Foster, Eduardo Polidor, et. al.
// All Rights Reserved. See copyright.txt for details and a complete list of authors.
......@@ -10,17 +10,27 @@ require_once ('tiki-setup.php');
include_once ('lib/messu/messulib.php');
if (!$user) {
if ($feature_redirect_on_error == 'y') {
header("location: $tikiIndex");
die;
} else {
$smarty->assign('msg', tra("You are not logged in"));
$smarty->display("error.tpl");
die;
}
}
if ($feature_messages != 'y') {
if ($feature_redirect_on_error == 'y') {
header("location: $tikiIndex");
die;
} else {
$smarty->assign('msg', tra("This feature is disabled").": feature_messages");
$smarty->display("error.tpl");
die;
}
}
if ($tiki_p_messages != 'y') {
......
<?php
// $Header: /cvsroot/tikiwiki/tiki/messu-sent.php,v 1.3 2005-05-18 10:58:52 mose Exp $
// $Header: /cvsroot/tikiwiki/tiki/messu-sent.php,v 1.4 2005-09-08 01:45:05 damosoft Exp $
// Copyright (c) 2002-2005, Luis Argerich, Garland Foster, Eduardo Polidor, et. al.
// All Rights Reserved. See copyright.txt for details and a complete list of authors.
......@@ -10,15 +10,25 @@ require_once ('tiki-setup.php');
include_once ('lib/messu/messulib.php');
if (!$user) {
if ($feature_redirect_on_error == 'y') {
header("location: $tikiIndex");
die;
} else {
$smarty->assign('msg', tra("You are not logged in"));
$smarty->display("error.tpl");
die;
}
}
if ($feature_messages != 'y') {
if ($feature_redirect_on_error == 'y') {
header("location: $tikiIndex");
die;
} else {
$smarty->assign('msg', tra("This feature is disabled").": feature_messages");
$smarty->display("error.tpl");
die;
}
}
if ($tiki_p_messages != 'y') {
......
<?php // $Header: /cvsroot/tikiwiki/tiki/parse_tiki.php,v 1.5 2004-06-16 01:24:10 teedog Exp $
<?php // $Header: /cvsroot/tikiwiki/tiki/parse_tiki.php,v 1.6 2005-09-08 01:45:05 damosoft Exp $
// heaviled modified get_strings.php
// dedicated as a tool for use in an eventual test suite
// [email protected]
require_once('tiki-setup.php');
if($tiki_p_admin != 'y') die("You need to be admin to run this script");
if($tiki_p_admin != 'y') {
if ($feature_redirect_on_error == 'y') {
header("location: $tikiIndex");
die;
} else {
die("You need to be admin to run this script");
}
}
$logfile = 'temp/tiki_parsed.txt';
$logfilehtml = 'temp/tiki_parsed.html';
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment