####CHECK FOR SESSION
INCLUDE "../../secure/session.php";
INCLUDE "../../secure/hitcounter.php";
####LOG CODE
$log_msg = $_SESSION[‘session_playwright_name’].' visited Registration';
include "../../secure/backuplog.php";
####
$accounttype = $HTTP_GET_VARS['type'];
if($accounttype=='user'){
include "userregistration.php";
exit();
}
if($accounttype=='playwright'){
include "pwregistration.php";
exit();
}
#####ADD TO STATS COUNTER
####RAW HITS
#### CONNECT TO DB
#### CONNECT TO DB
$username = "confirm_stageri";
$password = "QYbbP4CjPYrs";
$hostname = "195.216.196.13";
$db = "confirm_stagerights";
#CONNECT
$dbh = mysql_connect($hostname, $username, $password)
or die("Unable to connect to Server
");
#SELECT DATABASE
$selected = mysql_select_db($db,$dbh)
or die("Could not Connect to Database");
#RETRIEVE VISITOR DATA
$SQL = "SELECT * FROM stats WHERE Unq = '1'";
$result = mysql_query($SQL);
$db_field = mysql_fetch_assoc($result);
$CHECKIT = $db_field['Visitors'];
#ADD 1 TO RAW HITS
$NEWHIT = $CHECKIT + 1;
#SAVE NEW VALUE
#CLEAR VARIABLES FOR SECURITY
$username = "";
$password = "";
$hostname = "";
$db = "";
$dbh = "";
?>
To make your scripts available online at StageRights.com, you need to register.
Registration is free and doesn't take long
To view and download scripts on StageRights.com you must first register.
Registration is free and doesn't take long.