Improved register_globals
This commit is contained in:
parent
a09f6ff141
commit
58975ee44a
1 changed files with 7 additions and 6 deletions
|
@ -17,11 +17,12 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
$id = 0; if(array_key_exists("id",$_REQUEST)) $id=intval($_REQUEST['id']);
|
$id = 0; if(array_key_exists("id",$_REQUEST)) $id=intval($_REQUEST['id']);
|
||||||
|
$expand="";
|
||||||
|
|
||||||
function showheader($title = "CAcert.org", $title2 = "")
|
function showheader($title = "CAcert.org", $title2 = "")
|
||||||
{
|
{
|
||||||
global $id, $PHP_SELF;
|
global $id, $PHP_SELF;
|
||||||
|
$expand="";
|
||||||
$tmpid = $id;
|
$tmpid = $id;
|
||||||
if($PHP_SELF == "/wot.php")
|
if($PHP_SELF == "/wot.php")
|
||||||
$tmpid = $id + 500;
|
$tmpid = $id + 500;
|
||||||
|
@ -134,7 +135,7 @@
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title><?=$title?></title>
|
<title><?=$title?></title>
|
||||||
<? if($_SESSION['_config']['header'] != "") { ?><?=$_SESSION['_config']['header']?><? } ?>
|
<? if(array_key_exists('header',$_SESSION) && $_SESSION['_config']['header'] != "") { ?><?=$_SESSION['_config']['header']?><? } ?>
|
||||||
<link rel="stylesheet" href="/styles/default.css" type="text/css" />
|
<link rel="stylesheet" href="/styles/default.css" type="text/css" />
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||||
<script language="JavaScript" type="text/javascript">
|
<script language="JavaScript" type="text/javascript">
|
||||||
|
@ -198,7 +199,7 @@ function hideall() {
|
||||||
<h3 onclick="explode('servercert')">+ <?=_("Server Certificates")?></h3>
|
<h3 onclick="explode('servercert')">+ <?=_("Server Certificates")?></h3>
|
||||||
<ul class="menu" id="servercert"><li><a href="account.php?id=10"><?=_("New")?></a></li><li><a href="account.php?id=12"><?=_("View")?></a></li></ul>
|
<ul class="menu" id="servercert"><li><a href="account.php?id=10"><?=_("New")?></a></li><li><a href="account.php?id=12"><?=_("View")?></a></li></ul>
|
||||||
</div>
|
</div>
|
||||||
<? if(mysql_num_rows(mysql_query("select * from `org` where `memid`='".$_SESSION['profile']['id']."'")) > 0 || $_SESSION['profile']['orgadmin'] == 1) { ?>
|
<? if(mysql_num_rows(mysql_query("select * from `org` where `memid`='".intval($_SESSION['profile']['id'])."'")) > 0 || $_SESSION['profile']['orgadmin'] == 1) { ?>
|
||||||
<div class="relatedLinks">
|
<div class="relatedLinks">
|
||||||
<h3 onclick="explode('clientorg')">+ <?=_("Org Client Certs")?></h3>
|
<h3 onclick="explode('clientorg')">+ <?=_("Org Client Certs")?></h3>
|
||||||
<ul class="menu" id="clientorg"><li><a href="account.php?id=16"><?=_("New")?></a></li><li><a href="account.php?id=18"><?=_("View")?></a></li></ul>
|
<ul class="menu" id="clientorg"><li><a href="account.php?id=16"><?=_("New")?></a></li><li><a href="account.php?id=18"><?=_("View")?></a></li></ul>
|
||||||
|
@ -208,7 +209,7 @@ function hideall() {
|
||||||
<ul class="menu" id="serverorg"><li><a href="account.php?id=20"><?=_("New")?></a></li><li><a href="account.php?id=22"><?=_("View")?></a></li></ul>
|
<ul class="menu" id="serverorg"><li><a href="account.php?id=20"><?=_("New")?></a></li><li><a href="account.php?id=22"><?=_("View")?></a></li></ul>
|
||||||
</div>
|
</div>
|
||||||
<? } ?>
|
<? } ?>
|
||||||
<? if(mysql_num_rows(mysql_query("select * from `org` where `memid`='".$_SESSION['profile']['id']."' and `masteracc`='1'")) > 0 || $_SESSION['profile']['orgadmin'] == 1) { ?>
|
<? if(mysql_num_rows(mysql_query("select * from `org` where `memid`='".intval($_SESSION['profile']['id'])."' and `masteracc`='1'")) > 0 || $_SESSION['profile']['orgadmin'] == 1) { ?>
|
||||||
<div class="relatedLinks">
|
<div class="relatedLinks">
|
||||||
<h3 onclick="explode('orgadmin')">+ <?=_("Org Admin")?></h3>
|
<h3 onclick="explode('orgadmin')">+ <?=_("Org Admin")?></h3>
|
||||||
<ul class="menu" id="orgadmin"><? if($_SESSION['profile']['orgadmin'] == 1) { ?><li><a href="account.php?id=24"><?=_("New Organisation")?></a></li><li><a href="account.php?id=25"><?=_("View Organisations")?></a></li><? } ?><li><a href="account.php?id=35"><?=_("View")?></a></li></ul>
|
<ul class="menu" id="orgadmin"><? if($_SESSION['profile']['orgadmin'] == 1) { ?><li><a href="account.php?id=24"><?=_("New Organisation")?></a></li><li><a href="account.php?id=25"><?=_("View Organisations")?></a></li><? } ?><li><a href="account.php?id=35"><?=_("View")?></a></li></ul>
|
||||||
|
@ -252,7 +253,7 @@ function hideall() {
|
||||||
<div class="story">
|
<div class="story">
|
||||||
<h3><?=$title2?></h3>
|
<h3><?=$title2?></h3>
|
||||||
<? if($_SESSION['_config']['errmsg'] != "") { ?>
|
<? if($_SESSION['_config']['errmsg'] != "") { ?>
|
||||||
<p class="errmsg"><? echo $_SESSION['_config']['errmsg']; $_SESSION['_config']['errmsg'] = ""; ?> </p>
|
<p><font color="#ff0000" size="+2"><? echo $_SESSION['_config']['errmsg']; $_SESSION['_config']['errmsg'] = ""; ?> </font></p>
|
||||||
<? } ?>
|
<? } ?>
|
||||||
<?
|
<?
|
||||||
}
|
}
|
||||||
|
@ -264,7 +265,7 @@ function hideall() {
|
||||||
</div>
|
</div>
|
||||||
<div id="siteInfo"><a href="account.php?id=37"><?=_("About Us")?></a> | <a href="account.php?id=38"><?=_("Donations")?></a> | <a href="http://wiki.cacert.org/wiki/CAcertIncorporated"><?=_("Association Membership")?></a> |
|
<div id="siteInfo"><a href="account.php?id=37"><?=_("About Us")?></a> | <a href="account.php?id=38"><?=_("Donations")?></a> | <a href="http://wiki.cacert.org/wiki/CAcertIncorporated"><?=_("Association Membership")?></a> |
|
||||||
<a href="account.php?id=39"><?=_("Privacy Policy")?></a> | <a href="account.php?id=40"><?=_("Contact Us")?></a>
|
<a href="account.php?id=39"><?=_("Privacy Policy")?></a> | <a href="account.php?id=40"><?=_("Contact Us")?></a>
|
||||||
| ©2002-2006 by CAcert</div>
|
| ©2002-2008 by CAcert</div>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html><?
|
</html><?
|
||||||
|
|
Loading…
Reference in a new issue