//http://musicianspage.com/
###Per maintenance, attivare queste righe...
#if ($_COOKIE['PHPSESSID'] != '1ki5uopv9kladvg2btk9g141f1' and $_SERVER['REMOTE_ADDR'] != "68.96.93.113") {
# include "/home/webadmin/musicianspage.com/EXTRA_SECURE/siteoff.inc";
# exit;
#}
#print "top";
#exit;
/*
if ($PHPSESSID == '23bakqr980pv64s27qs1ppmo14') {
print "here";
exit;
}
*/
##################FINE MAINTENANCE
#if ($_SERVER['REMOTE_ADDR'] == "68.96.93.113") {
# print "stop here";
# exit;
#}
//Activate this one below when live! Turn it off just for debugging...
error_reporting(0);
//This below useful during dewbugging or site migrations...
//error_reporting(E_ERROR | E_PARSE);
//Loads chunk for PHP 5 compatibility...
include_once '/home/webadmin/musicianspage.com/EXTRA_SECURE/compatibilityPHP5.php';
//If we are NOT calling phpmyadmin...
if (strpos($REQUEST_URI, 'phpmyadmin') === false) {
#print "ecco: $REQUEST_URI";
# Rev. 13/2/07 per attivazione sessioni
# Rev. 5-5-007 per cookie "visibilita"
# Rev. 9-28-07 per controllo site status
#Definisce variabili globali...
#Variabili utili
include_once "/home/webadmin/musicianspage.com/EXTRA_SECURE/global_variables.inc";
$bots = array(
// Major Search Engines
"Googlebot",
"bingbot",
"DuckDuckBot",
"DuckDuckGo",
"YandexBot",
"YandexMobileBot",
"Baiduspider",
"Sogou",
"Applebot",
"Exabot",
"Google",
// Social Media
"Twitterbot",
"facebot",
"LinkedInBot",
"PinterestBot",
// Regional/Specialized Search
"Yeti", // Naver
"Qwantify", // Qwant
"DotBot", // Moz
// Other Important Crawlers
"CCBot", // Common Crawl
"uptimebot", // Uptime monitoring
"Crawler", // Generic crawler detection
// Still Active Specialized Bots
"psbot", // Picsearch
"Raven", // SEO tools
"SpiderBot",
"SiteTech-Rover",
"WebCopy",
"WebFetcher",
"SemrushBot",
"SiteAuditBot",
"SplitSignalBot",
"Screaming Frog SEO Spider",
//AI spiders and bots, info: https://momenticmarketing.com/blog/ai-search-crawlers-bots
"OAI-SearchBot",
"ChatGPT-User",
"ClaudeBot",
"claude-web",
"PerplexityBot",
"Perplexity-User",
"Google-Extended",
"Amazonbot",
"Applebot",
"FacebookBot",
"LinkedInBot",
"DuckAssistBot",
"MistralAI-User"
);//Current list of active bots as of 2025
$current_agent = $HTTP_USER_AGENT;
#$current_agent = "BackRub/*.*";
#print "eco: $current_agent";
foreach ($bots as $singlebot) {
//if (eregiFF ($singlebot,$current_agent) and !(eregFF("Alexa Toolbar",$current_agent))) {
if (stripos($current_agent, $singlebot) !== false and stripos($current_agent, "Alexa Toolbar") === false) {
#print "eccolo: $singlebot ";
$is_robot = 1;
}
}
//Here we include the anti-spam system to fight AI-bots since Sep 5, 2025 14:31... it is the same system we have on VSM...
if (!$is_robot and !$is_human) {
include_once $basedir.'/anti-spam/search_spam_check.php';
}
#Connessione MySQL secure
include_once $basedir_extrasecure.'/MySQL.inc';
#Moved here and loaded _once on 12/4/20, 12:18 PM...
include_once $basedir.'/includes/database_tabs/shared_lists.inc';
include_once $basedir.'/includes/database_tabs/shared_functions.inc';
//This below fixed on 6/22/21, 9:50 AM!
if (strpos($HTTP_HOST, $basesite) === false) { #fa il redirect 301 al dominio corretto
$destinowww = $SSLprot."://".$basesite.$REQUEST_URI;
header("HTTP/1.1 301 Moved Permanently");
header("Location: $destinowww");
exit;
}
/*
if ($_SERVER['REMOTE_ADDR'] == '70.181.126.8') {
print "destinowww5: $destinowww";
exit;
}
*/
#print "/* ecco: $pirloso - $cleanSCRIPT */";
#Controlla se la pagina richiesta deve essere caricata sicura oppure non sicura...
if ($sslwork) {
if ($_SERVER['SERVER_PORT'] != 443) {
$destino = "https://$basesite".$REQUEST_URI;
#print "eccolo: $destino";
header("HTTP/1.1 301 Moved Permanently");
header("Location: $destino");
exit;
}
}
else {
if (!eregFF("/pj/",$cleanSCRIPT) and !eregFF("/scripts/",$cleanSCRIPT) and !eregFF("/testhttps/",$cleanSCRIPT) and !eregFF("/extras/",$cleanSCRIPT) and !eregFF("/uploads/",$cleanSCRIPT) and !eregFF("/includes/",$cleanSCRIPT) and strpos($cleanSCRIPT, "/login/news_jobs.rss") === false) { #Mettere qui le sezioni che sono indifferentemente caricate in https or http
if ((eregFF("/login/",$cleanSCRIPT) or eregFF("/signup",$cleanSCRIPT) or eregFF("/confirmemail.php",$cleanSCRIPT) or eregFF("/cf.php",$cleanSCRIPT) or eregFF("/confirm.php",$cleanSCRIPT) or eregFF("/admin",$cleanSCRIPT) or eregFF("/cart/checkout.php",$cleanSCRIPT)) and $_SERVER['SERVER_PORT'] != 443) {
$destino = "https://$basesite".$REQUEST_URI;
#print "eccolo: $destino";
header("HTTP/1.1 301 Moved Permanently");
header("Location: $destino");
exit;
}
else
if ($_SERVER['SERVER_PORT'] == 443 and !eregFF("/login/",$cleanSCRIPT) and !eregFF("/confirmemail.php",$cleanSCRIPT) and !eregFF("/signup",$cleanSCRIPT) and !eregFF("/cf.php",$cleanSCRIPT) and !eregFF("/confirm.php",$cleanSCRIPT) and !eregFF("/admin",$cleanSCRIPT) and !eregFF("/cart/checkout.php",$cleanSCRIPT) and !eregFF("js$",$cleanSCRIPT) and !eregFF("js$",$cleanSCRIPT) and !eregFF("css$",$cleanSCRIPT) and !eregFF("show_it.php",$cleanSCRIPT) and !eregFF("/extra_scripts/hoteditor/",$cleanSCRIPT)) {
$destino = "http://$basesite".$REQUEST_URI;
header("HTTP/1.1 301 Moved Permanently");
header("Location: $destino");
exit;
}
}
}
#Legge site status from control_panel table
$queryRT = "SELECT status, nowrite FROM control_panel";
$resultRT = mysql_queryFF($queryRT);
$SITESTATUS = mysql_resultFF($resultRT,0, 'status');
$SITENOWRITE = mysql_resultFF($resultRT,0, 'nowrite');
if ($SITESTATUS == 2) { #Se site status e' OFF...
#Controlla che non sia io (devo avere controlpassword cookie...)
if (!$controlpassword and !eregFF("/admin/",$cleanSCRIPT)) {
#include "/home/webadmin/".$basesite."/EXTRA_SECURE/siteoff.inc";
include $basedir_extrasecure."/siteoff.inc";
exit;
}
}
/*
######################################################################
#Controlla subito se c'e'' cookie visibilita', altrimenti visualizza pagina "Under Construction" -- da togliere quando si mette in production!
$paginedisplayed = array('/curriculum', '/home', '/free-sheet-music', '/musicians-list', '/music-links', '/fabriphpadmin');
foreach ($paginedisplayed as $single) {
if (eregFF($single, $cleanSCRIPT)) {
$displaypage = 1;
break;
}
}
#Controlal subito se c'e'' cookie visibilita', altrimenti visualizza pagina "Under Construction" -- da togliere quando si mette in production!
if (!$visibilita and !eregFF("set_flag.php",$REQUEST_URI) and !$displaypage) {
include $basedir_extrasecure."/underconstruction.inc";
exit;
}
######################################################################
*/
#Memorizza session ID
$s_id = $PHPSESSID;
include $basedir_extrasecure.'/de-crypt_functions.inc';
#Attiva sessioni
$bots = array(
// Major Search Engines
"Googlebot",
"bingbot",
"DuckDuckBot",
"DuckDuckGo",
"YandexBot",
"YandexMobileBot",
"Baiduspider",
"Sogou",
"Applebot",
"Exabot",
// Social Media
"Twitterbot",
"facebot",
"LinkedInBot",
"PinterestBot",
// Regional/Specialized Search
"Yeti", // Naver
"Qwantify", // Qwant
"DotBot", // Moz
// Other Important Crawlers
"CCBot", // Common Crawl
"uptimebot", // Uptime monitoring
"Crawler", // Generic crawler detection
// Still Active Specialized Bots
"psbot", // Picsearch
"Raven", // SEO tools
"SpiderBot",
"SiteTech-Rover",
"WebCopy",
"WebFetcher",
"SemrushBot",
"SiteAuditBot",
"SplitSignalBot"
);//Current list of active bots as of 2024
$current_agent = $HTTP_USER_AGENT;
#$current_agent = "BackRub/*.*";
foreach ($bots as $singlebot) {
if (eregiFF($singlebot,$current_agent) and !(eregFF("Alexa Toolbar",$current_agent))) {
#print "eccolo: $singlebot ";
$is_robot = 1;
}
}
if (!$is_robot) {
#Controlla che la pagina richiesta non sia un RSS oppure un contenuto dinamico per gli affiliati...
if (!(eregFF("images/banners/dyn",$REQUEST_URI)) and !(eregFF("news.rdf",$REQUEST_URI)) and !(eregFF("news.rss",$REQUEST_URI))) {
$expireTime = 60*60*24*100; // 100 days
#Blocco di controllo per evitare errore del tipo:
# "The session id contains invalid characters, valid characters are only a-z..."
# Trovato su PHP site on 19-10-07
#Questo serve per permettere $sid passing senza cookies!
ini_set('session.use_trans_sid', '1');
$sn=session_name();
if(isset($_GET[$sn])) if(strlen($_GET[$sn])!=32) unset($_GET[$sn]);
if(isset($_POST[$sn])) if(strlen($_POST[$sn])!=32) unset($_POST[$sn]);
if(isset($_COOKIE[$sn])) if(strlen($_COOKIE[$sn])!=32) unset($_COOKIE[$sn]);
if(isset($PHPSESSID)) if(strlen($PHPSESSID)!=32) unset($PHPSESSID);
##### Fine Blocco COntrollo session_id
if(!$s_id) {
session_set_cookie_params($expireTime);
session_start();
$s_id = session_id();
setcookie("s_id",$s_id,time()+95040000,'/');
}
}
}
if ($fov) {#If it is coming from GoogleAd (2-21-2013)...
#Scrive s_id dentro pre_overture table per verifiche (quando necessario)...
$queryTdeleted = "INSERT INTO pre_overture (fov,session_id,tempo) VALUES ('$fov', '$s_id',$globaltempo)";
$result_Tdeleted = mysql_queryFF($queryTdeleted);
if (!$fromov) {
$fov = $fov."AAAAA".time();
setcookie("fromov",$fov,time()+31536000,'/'); #Scadenza un anno dopo
}
$destino_rfsh = $REQUEST_URI;
$destino_rfsh = ereg_replaceFF("\?fov\=.+\&","?",$destino_rfsh);
$destino_rfsh = ereg_replaceFF("\?fov\=.+$","",$destino_rfsh);
$destino_rfsh = ereg_replaceFF("\&fov\=.+\&","\&",$destino_rfsh);
$destino_rfsh = ereg_replaceFF("\&fov\=.+$","",$destino_rfsh);
//header("HTTP/1.1 301 Moved Permanently");
header("Location: $destino_rfsh");
exit;
}
/*
###Prende shared libraries...
if (!$sharedfunctionsflag) {
include $basedir.'/includes/database_tabs/shared_lists.inc';
include $basedir.'/includes/database_tabs/shared_functions.inc';
}
elseif (!$sharedlistsflag) {
include $basedir.'/includes/database_tabs/shared_lists.inc';
}
*/
//Here we check for possible spam bots to stop Apr 7, 2025 13:29...
if (!$is_robot) {
//We look into the spam_bots_list table and we find the IP address or addresses that have the clumn "tempo" less than 15 minutes ago...
$querySPAMBOTS = "SELECT partial_ip FROM spam_bots_list WHERE 1";
$resultSPAMBOTS = mysql_queryFF($querySPAMBOTS);
$nitemsSPAMBOTS = mysql_num_rowsFF($resultSPAMBOTS);
#print "querySPAMBOTS: $querySPAMBOTS - $nitemsSPAMBOTS";
#exit;
if ($nitemsSPAMBOTS) {
while ($rowSPAMBOTS = mysql_fetch_arrayFF($resultSPAMBOTS)) {
$partialIP = $rowSPAMBOTS["partial_ip"];
#print "check this partialIP: $partialIP ";
if (strpos($useripaddress, $partialIP) !== false) {
#print "stop this: $partialIP ";
include $basedir_extrasecure."/siteoff.inc";
exit;
}
}
}
}
#exit;
###Controllo login...
include 'setup_login.inc';
#Verifica se c'e' superuser on
if ($HTTP_GET_VARS["superpassword"]) {
$superpassword = $HTTP_GET_VARS["superpassword"];
}
#Questo e' per evitare che chiunguque possa accedere come superuser senza conoscere la password
if ($superuser and $superpassword != $superuserpw) {
$superuser = 0;
}
#E questo invece attiva super user se presente password
elseif ($superpassword == $superuserpw) { #Se c'e' password (cookie o in GET)
$superuser = 1;
}
#Se e' logged, allora memorizza variabili utili condivise...
if ($logged) {
include $basedir.'/includes/login/takeloginvariables.inc'; #Prende Member variables...
}
####Questo e' per banner redirect vecchie pagine e controllo hidden pages prima del lancio...
#Include temporary include...
//include "/home/webadmin/musicianspage.com/html/temporaryfirstinclude.inc";
#Enable gzip compression if browser accept it (SEO 10-14-2010)...
if (!eregFF("/scripts/", $_SERVER['SCRIPT_FILENAME']) and !eregFF("/mc/flash/", $_SERVER['SCRIPT_FILENAME']) and !eregFF("/uploads/", $_SERVER['SCRIPT_FILENAME'])) {
enablehtmlgzip();
}
}
?>
////////START REGISTRATION FORM....
##Fa tracking promo (7-12-08)...
if ($promo) {
#Controlla che questo utente non sia gia' dentro...
$queryPR = "SELECT id FROM promotracks WHERE ip = '$useripaddress'";
$resultPR = mysql_queryFF($queryPR);
$nitemsPR = mysql_num_rowsFF($resultPR);
if (!$nitemsPR) {
$queryPR1 = "INSERT INTO promotracks (promo, ip, session_id, tempo) VALUES ('$promo', '$useripaddress', '$s_id', $globaltempo)";
#print "dentro: $queryPR1";
$resultPR1 = mysql_queryFF($queryPR1);
}
}
#Procedure varie...
#Controlal se l' utente e' gia' logged, magari e' tornato per sbaglio, in tal caso
#Fa redirect to Control Panel...
if ($logged) {
$destino = "/login/panel.php";
$destino .= "?PHPSESSID=".$s_id."&alreadyregistered=1";
header("Location: $destino");
exit;
}
if ($yourjobs) {
if ($apply and !$openingwork1) {
setcookie("jobapplynoregistered",$apply,time()+3600,"/");
} else if ($postnew) {
setcookie("jobpostnoregistered",$postnew,time()+3600,"/");
}
}
if ($categorysel) {
$category = $categorysel;
#If category 4, changes it to category 3 (employers)...
if ($category == 4) {
$category = 3;
}
}
if ($passo1) {
//Checks right away if it is a banner used (8-22-2013)...
if ($email) {
$queryBAN = "SELECT uid FROM banned_users WHERE email = '$email' OR ip = '$useripaddress'";
$resultBAN = mysql_queryFF($queryBAN);
$nitemsBAN = mysql_num_rowsFF($resultBAN);
if ($nitemsBAN) {
$bannederror = 1;
$error = 1;
}
}
//Verify Captcha (6-1-2016)
if ($skipcaptcha) {
$captchaok = 1;
}
elseif (isset($_POST['g-recaptcha-response']) && !empty($_POST['g-recaptcha-response'])) {
//your site secret key
$secret = '6LfBeSETAAAAAD3Ao1n1hzgrLQLVmuho2denaiUk';
//get verify response data
$verifyResponse = file_get_contents('https://www.google.com/recaptcha/api/siteverify?secret='.$secret.'&response='.$_POST['g-recaptcha-response']);
$responseData = json_decode($verifyResponse);
if($responseData->success) {
$captchaok = 1;
}
else {//Error...
$captchaerror = 1;
$error = 1;
}
}
else {//Error...
$captchaerror = 1;
$error = 1;
}
//Verify what note 10/8/20, 9:28 AM...
$whatnotelc = strtolower($whatnote);
if (!$whatnote or ($whatnotelc != "c" and $whatnotelc != "c note" and $whatnotelc != "c notes" and $whatnotelc != "note c" and $whatnotelc != "do" and $whatnotelc != "nota do" and $whatnotelc != "do note")) {
$whatnoteerror = 1;
$errorcode = "whatnoteerror";
$error = 1;
}
/*
if (!$whatnote or ($whatnotelc != "guitar" and $whatnotelc != "classical guitar" and $whatnotelc != "classic guitar" and $whatnotelc != "spanish guitar")) {
$whatnoteerror = 1;
$errorcode = "whatnoteerror";
$error = 1;
}
*/
$registrationon = 1;#Needed for top-right login links (searchlogin.inc)...
###Procedure validazione inputs...
if(!$category) {
$categoryerror = 1; #no category! should not be possible...
$error = 1;
} elseif (($category < 1) or ($category > 4)) {
$categoryerror = 2; #category out of bounds! should not be possible...
$error = 1;
} else {
switch($category){
case 1:
#Single musician ($skill[other])
#print "sub: $mainskill";
if("null" == $mainskill){
$mainskillerror = 1;
$error = 1;
}
#print "sub: $gender";
if(!$gender){
$gendererror = 1;
$error = 1;
} elseif ($gender == "0") {
$gendererror = 2;
$error = 1;
}
break;
case 2:
#Group ($ensembledefine1[other])
#print "sub: $ensembledefine1";
if("null" == $ensembledefine1){
$ensembledefine1error = 1;
$error = 1;
}
if("null" == $ensembledefine2){
$ensembledefine2error = 1;
$error = 1;
}
#print "sub: $bandname";
if (!$bandname) {
$bandnameerror = 1; #no band name!
$error = 1;
}
elseif (strlen($bandname) < 2) {
$bandnameerror = 2; #short band name!
$error = 1;
}
elseif (is_valid_url($bandname)) {#Added 3-9-2012...
$bandnameerror = 3;
$error =1;
}
break;
case 3:
#Employer ($employertitle[other])
#print "sub: $employertitle";
if("null" == $employertitle){
$employertitleerror = 1;
$error = 1;
}
break;
default:
$categoryerror = 3; #category is invalid! should not be possible...
$error = 1;
break;
}
}
# if a TEACHER, check that teaching fields are active
if(($category == 1) && ($mainskill == 10)){
$cc = 0;
$fatto1 = 0;
foreach ($teachingfield as $single) {
$varfix = 'teachingfielddef'.$cc;
if ($$varfix) {
if ($fatto1) {
$teaching_field .= ", ";
}
$teachingfieldtemp = $single;
$teaching_field .= $teachingfieldtemp;
$fatto1 = 1;
}
$cc ++;
}
if (!$teaching_field) {
$teachingfielderror = 1;
$error = 1;
}
}
# If not an employer, check the main music genre
if($category != 3){
if(!$maingenre){
$maingenreerror = 1;
$error = 1;
} elseif ($maingenre == "0") {
$maingenreerror = 2;
$error = 1;
}
}
#If employer (company) checks $employercompany...
if ($categorysel == 4 and !$employercompany) {
$employercompanyerror = 1;
$error =1;
}
elseif ($categorysel == 4 and is_valid_url($employercompany)) {#Added 3-9-2012...
$employercompanyerror = 2;
$error =1;
}
# If not a band, check first and last name
if($category != 2){
if (!$firstname) {
$firstnameerror = 1; #no first name!
$error = 1;
}
elseif (strlen($firstname) < 2) {
$firstnameerror = 2; #short first name!
$error = 1;
}
if (!$lastname) {
$lastnameerror = 1; #no last name!
$error = 1;
}
elseif (strlen($lastname) < 2) {
$lastnameerror = 2; #short last name!
$error = 1;
}
}
$email = trim($email);
#Controllo email...
if (!$email) {
$emailerror = 1; #no email!
$error = 1;
}
elseif (is_email_validNODNS($email)) {
$emailerror = 2; #Email errata!
$error = 1;
}
#Controllo password
if (!$password) {
$pwerror = 1; #no password!
$error = 1;
}
elseif (strlen($password) < 4) {
$pwerror = 2; #Password corta!
$error = 1;
}
elseif (eregFF(" ",$password) or eregFF("+",$password)) {
$pwerror = 3; #Password con spazi!
$error = 1;
}
//Checks bad words since 7/22/20, 3:26 PM...
if (!$error) {
$combinedwords = $email." ".$firstname." ".$lastname." ".$employercompany." ".$bandname;
if (checkbadwords($combinedwords)) {
$error = 1;
$badwordserror = 1;
}
}
}
elseif ($passo2) {
$registrationon = 1;#Needed for top-right login links (searchlogin.inc)...
if ($backbutton_x) {
$passo2 = 0;
$password = md5_decrypt($password, $salt);
}
else {
$newpassword = $password;
//$newpassword = md5_encrypt($password, $salt);
$email = strtolower($email);
$tempo = time();
$mainskill = numeric_writing_skill($mainskillcomboarrayindexREV[$mainskill+1]);
#print "eccola: $newpassword";
#Inserisce user in database...
#Controlla che non ci sia gia'...
$query = "SELECT id FROM $mainmusicianslist WHERE email = '$email'";
$result = mysql_queryFF($query);
$nitems = mysql_num_rowsFF($result);
switch($category){
default:
$subquerykey = "skill";
$subqueryvalue = "'".$mainskill."'";
break;
case 1:
if($mainskill == 45){ #special for teachers
$teaching_field_temp = numeric_writing_teaching_field ($teaching_field);
$subquerykey = "skill, teaching_field, teaching_field_other";
$subqueryvalue = "'$mainskill', '$teaching_field_temp', '$teaching_field_other'";
}else{
$subquerykey = "skill";
$subqueryvalue = "'".$mainskill."'";
}
break;
case 2:
$subquerykey = "ensembledefine1, ensembledefine2";
$subqueryvalue = "'$ensembledefine1', '$ensembledefine2'";
$lastname = mysql_real_escape_stringFF($bandname); # bands don't have first and last name, but the band name goes in the lastname field
break;
case 3:
$subquerykey = "employercompany, employertitle";
$subqueryvalue = "'".escapeMySQL($employercompany)."', ".$employertitle;
break;
}
if (!$nitems) {
if ($category < 3) {#If musicians...
$genderkey = array_search($gender, $genderarray);
$genderkey ++;
$maingenre --;
}
else {#If employers or individuals...
$genderkey = '';
$maingenre = 0;
}
///Escapes!! (added 2-26-2015)...
$firstnameMY = escapeMySQL($firstname);
$lastnameMY = escapeMySQL($lastname);
//Works captchaok (6-2-2016)...
if (!$captchaok) {
$captchaok = 0;
}
if ($monetize) {
$query = "INSERT INTO $mainmusicianslist (category, gender, genre, name, lastname, status, emailstatus, email, password, tempo, $subquerykey, privacy, visibility, ip_address, captchaok) VALUES ('$category', '$genderkey', '$maingenre', '$firstnameMY', '$lastnameMY', 2, 2, '$email','$newpassword', $tempo, $subqueryvalue, 3, 2, '$useripaddress', $captchaok)";
}
else {
$query = "INSERT INTO $mainmusicianslist (category, gender, genre, name, lastname, status, emailstatus, email, password, tempo, $subquerykey, visibility, ip_address, captchaok) VALUES ('$category', '$genderkey', '$maingenre', '$firstnameMY', '$lastnameMY', 2, 2, '$email','$newpassword', $tempo, $subqueryvalue, 2, '$useripaddress', $captchaok)";
}
$result = mysql_queryFF($query);
} else {#Proceed to login if already present...
$destino = '/login/?resetid='.$email;
header("Location: $destino");
exit;
}
#Azzera eventuali cookies da precedenti utenti...
setcookie("logged", 0, time(), '/');
setcookie("memberdata", "", time(),'/');
}
}
elseif ($passo3) {
$registrationon = 1;#Needed for top-right login links (searchlogin.inc)...
###Start sessione login...
#Preleva l' ID del nuovo utente...
$query = "SELECT id FROM $mainmusicianslist WHERE email = '$email'";
$result = mysql_queryFF($query);
$id = mysql_resultFF($result,0, 'id');
include $basedir.'/includes/login/login.inc';
#Redirect al Control Panel...
$destino = $SSLprot."://".$basesite."/login/loginpr.php";
$destino .= "?signupid=".$id."&PHPSESSID=".$s_id;
header("Location: $destino");
exit;
}
#Procede con contents...
include $basedir.'/includes/doctype.inc';
?>
Musicians Page New Registration
include $basedir.'/includes/head.inc';
?>
include $basedir.'/includes/01afterbody.inc';
?>
include $basedir.'/includes/mainheader.inc';
?>
if ($passo1 or $passo2 or $passo3) {
print '
';
}
else {
print '
';
}
?>
if ($passo1) {
if ($error) {
include $basedir.'/includes/signup/01b_start_here.inc';
}
else { #ok, allora procede alla conferma...
#Prima controlla che l' email non sia gia' nel database...
$query = "SELECT id FROM $mainmusicianslist WHERE email = '$email'";
$result = mysql_queryFF($query);
$nitems = mysql_num_rowsFF($result);
if ($nitems) { #gia' presente...
include $basedir.'/includes/signup/02b_already_present.inc';
}
else { #procede conferma...
include $basedir.'/includes/signup/02b_confirmation.inc';
}
}
}
elseif ($passo2) {
if ($captchaok) {
include $basedir.'/includes/signup/03b_email_confirmation.inc';
}
else {//Back again!!
include $basedir.'/includes/signup/01b_start_here.inc';
}
}
else {
include $basedir.'/includes/signup/01b_start_here.inc';
}
?>
if (!$passo1 and !$passo2 and !$passo3) {//Right column shown just for 1st step...
?>