bymny
08-08-2014, 11:41 PM
I do not have much knowledge of php please help
my code:
<body bgcolor="#ffffff">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<center>
<?php
define("IN_vbulletin", 1);
require_once "../global.php";
if(!in_array($vbulletin->userinfo['usergroupid'], array(1,4,8))){
$a = "Welcome";
echo $a;
}
else{
if(!$vbulletin->userinfo['usergroupid']) error_no_permission();
$b = "No Permission!";
echo $b;
die();
}
//my php code
?>
</center>
</body>
my code:
<body bgcolor="#ffffff">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<center>
<?php
define("IN_vbulletin", 1);
require_once "../global.php";
if(!in_array($vbulletin->userinfo['usergroupid'], array(1,4,8))){
$a = "Welcome";
echo $a;
}
else{
if(!$vbulletin->userinfo['usergroupid']) error_no_permission();
$b = "No Permission!";
echo $b;
die();
}
//my php code
?>
</center>
</body>