Stagerights.com

 

StageRights

Status - '.$STATUS,''; } if ($OPENFOR=='RECIEVER'){ if ($STATUS == 'Approved'){ echo '

Status - '.$STATUS,'

'; } if ($STATUS == 'Rejected'){ echo '

Status - '.$STATUS,'

'; } }?>

Permission has been granted for you to peform this script based on the details below:

SRP#:'.$licensepsrp ; } } if ($OPENFOR=='RECIEVER'){ if ($STATUS=='Approved'){ echo '

SRP#:'.$licensepsrp ; } } echo '

Show: '.$licensetitle.'

Written by: '.$licensewriter.'

Venue: '.$licensevenue.'

Performed by: '.$licensecompany.'

Rights granted to: '.$licensecontact.'

With the following publically agreed terms:

'.$licenseterms.'

And the following privately agreed terms:

'.$licensetermsp.'

Scheduled Performances:'; $SQL = "SELECT * FROM licensedates WHERE SRP = '$licensesrp' ORDER by Date"; $result = mysql_query($SQL); while ($db_field = mysql_fetch_assoc($result)){ $licensedate = $db_field['Date']; $licensetime = $db_field['Time']; echo '

'.$licensedate.' At '.$licensetime.'
';} echo '

';} IF ($ACCESSTRUE!='TRUE'){ $applyscript = $HTTP_GET_VARS['script']; if ($applyscript==''){ echo '

There has been an error. Please let us know what you were doing which may have caused the error.: ';} ######### if ($applyscript!=''){ $FINDIT12 = "SELECT * FROM Scripts_Confirmed WHERE Unq = '$applyscript' AND Confirmed = 'Y'"; $result102 = mysql_query($FINDIT12); $numRows = mysql_num_rows($result102); if($numRows == '0'){ echo '

That script was not found.: '; $CONTINUE='FALSE'; } $db_field = mysql_fetch_assoc($result102); $userreadstat = $db_field['user_read'];} if($CONTINUE!='FALSE'){ if ($userreadstat=='full'){$EVERYTHINOK='TRUE';} if ($EVERYTHINOK!='TRUE'){ $FINDIT12 = "SELECT * FROM permissions WHERE User_unq = '$_SESSION[‘session_playwright_unq’]' AND Script_unq = '$applyscript' AND Accepted='Yes'"; $result102 = mysql_query($FINDIT12); $db_field = mysql_fetch_assoc($result102); $usernewrule = $db_field['Bypass']; if ($usernewrule=='full'){$EVERYTHINOK='TRUE';} if ($EVERYTHINOK!='TRUE'){ echo '

You need to have permission to read the full script before requesting to perform it.: ';}} } ######## } ### if ($EVERYTHINOK=='TRUE'){ ######################################################################### $SQL = "SELECT * FROM Scripts_Confirmed WHERE Unq = '$applyscript'"; $result = mysql_query($SQL); $db_field = mysql_fetch_assoc($result); $licenseunq = $db_field['Unq']; $licensetitle = $db_field['Title']; $licensewriter = $db_field['Playwright']; $licensepwu = $db_field['PlayWright_Unq']; $rhino = $HTTP_POST_VARS['rhino']; $srp = $HTTP_POST_VARS['srp']; if ($rhino=='SENT'){ ##make SRP# if($srp==''){ $totalChar = 5; $salt = "1234567890"; // salt to select chars from srand((double)microtime()*1000000); // start the random generator $password=""; // set the inital variable for ($i=0;$i<$totalChar;$i++) // loop and create password $password = $password . substr ($salt, rand() % strlen($salt), 1); $password = $password; $srp2 = $_SESSION[‘session_playwright_unq’].'-'.$password.'-'.$applyscript; $srp = $_SESSION[‘session_playwright_unq’].$password.$applyscript; ###insert license $SQL = "INSERT INTO licenses ( `Unq` , `SRP` , `Title` , `Playwright` , `Venue` , `Company` , `ContactName` , `Username` , `Telephone` , `Public_Terms` , `Private_Terms` , `Valid` , `PrintSRP` , `Sent` , `playwright_unq` , `user_unq` , `script_unq` , `playwright_hide` , `user_hide` ) VALUES ( NULL , '$srp', '$licensetitle', '$licensewriter', '$rhino_venue', '$rhino_perf', '$_SESSION[‘session_playwright_name’]', '$_SESSION[‘session_username’]', '', '$rhino_pub', '$rhino_pri', '', '$srp2', 'No', '$licensepwu', '$_SESSION[‘session_playwright_unq’]', '$licenseunq', '', '' )"; mysql_query($SQL); ################## } ###insert dates $rhino_vadd = $HTTP_POST_VARS['Add']; if($rhino_vadd=='Add'){ $rhino_date = $HTTP_POST_VARS['dater']; $theDate = isset($_REQUEST["date1"]) ? $_REQUEST["date1"] : ""; $date = $theDate; $day = substr($date, -2); $day = ereg_replace("-", "", $day ); $month = substr($date, 4,3); $month = ereg_replace("-", "", $month ); $year= substr($date, 0,4); $newdate= $day.'-'.$month.'-'.$year; $rhino_time = $HTTP_POST_VARS['timer']; $rhino_time2 = $HTTP_POST_VARS['timer2']; if ($rhino_time <= '11'){ $rhino_time3 = 'AM';} if ($rhino_time >= '12'){ $rhino_time3 = 'PM';} $rhino_time = $rhino_time.':'.$rhino_time2.$rhino_time3; $SQL="INSERT INTO licensedates ( `Unq` , `SRP` , `Date` , `Time` ) VALUES ( NULL , '$srp', '$newdate', '$rhino_time' )"; mysql_query($SQL); $SQL = "UPDATE licenses SET Venue = '$rhino_venue' WHERE SRP = '$srp'"; mysql_query($SQL); $SQL = "UPDATE licenses SET Company = '$rhino_company' WHERE SRP = '$srp'"; mysql_query($SQL); $SQL = "UPDATE licenses SET Public_Terms = '$rhino_pub' WHERE SRP = '$srp'"; mysql_query($SQL); $SQL = "UPDATE licenses SET Private_Terms = '$rhino_pri' WHERE SRP = '$srp'"; mysql_query($SQL); } ############### } $rhino_venue = $HTTP_POST_VARS['venue']; $rhino_save = $HTTP_POST_VARS['Send Proposal']; $rhino_company = $HTTP_POST_VARS['company']; $rhino_pub = $HTTP_POST_VARS['publ']; $rhino_pri = $HTTP_POST_VARS['priv']; $rhino_perf = $HTTP_POST_VARS['perf']; $rhino_date = $HTTP_POST_VARS['dater']; $rhino_time = $HTTP_POST_VARS['timer']; if ($rhino_save=='TRUE'){ $CONFI= "UPDATE licenses Set Sent='Yes' WHERE SRP ='$srp'"; mysql_query($CONFI); } echo '

'; ##################### if($rhino!='') { $SQL = "SELECT * FROM licensedates WHERE SRP = '$srp'"; $result = mysql_query($SQL); $mynumrows = mysql_num_rows($result); $mynumrowsa = $mynumrows + 1; if($mynumrows>=$rhino_perf){$BUTTON='ON';}else{ echo '

Enter date and time for show number '.$mynumrowsa.'

'; ############ require_once('classes/tc_calendar.php'); //instantiate class and set properties $myCalendar = new tc_calendar("date1", true);$myCalendar->setIcon("images/iconCalendar.gif"); $a = date('d'); $b = date('m'); $c = date('Y'); $myCalendar->setDate($a, $b, $c); //output the calendar$myCalendar->writeScript(); $myCalendar->writeScript(); ############ echo '

';} } $SQL = "SELECT * FROM licensedates WHERE SRP = '$srp'"; $result = mysql_query($SQL); $tho = 0; while($db_field = mysql_fetch_assoc($result)){ $lidat = $db_field['Date']; $litim = $db_field['Time']; $tho = $tho + 1; Echo '

S#'.$tho.' - '.$lidat.' - '.$litim; } ##################### if($rhino!='') {echo '

 

';} else{echo '

Complete the Stage Rights application below:';} echo '

Show: '.$licensetitle.'

Written by: '.$licensewriter.'

Your Name: '.$_SESSION[‘session_playwright_name’].'

Enter the Venue:

Performed by:

Enter any terms viewable by the public:

Enter any terms not viewable by the public:

'; if ($rhino_perf==''){ echo'

How many performances would you like to do?

';} if ($rhino_perf!=''){ echo ' '; echo ' '; echo '

Number of shows you want to do:

'.$rhino_perf.' '; } if($rhino!='') { $SQL = "SELECT * FROM licensedates WHERE SRP = '$srp'"; $result = mysql_query($SQL); $mynumrows = mysql_num_rows($result); if($mynumrows>=$rhino_perf){$BUTTON='ON';}else{ } } $SQL = "SELECT * FROM licensedates WHERE SRP = '$srp'"; $result = mysql_query($SQL); $tho = 0; while($db_field = mysql_fetch_assoc($result)){ $lidat = $db_field['Date']; $litim = $db_field['Time']; $tho = $tho + 1; } if($BUTTON=='ON'){echo '

';} echo'

';} ######################################################################### ?>
'.$Proposal.' Actions '; } if($OPENFOR=='RECIEVER'){ ##Requests Box echo '

'.$Proposal.' Actions

'; } }## #### ?> License Requests '; }## ?>

My Requests

'; $SQL = "SELECT * FROM licenses WHERE user_unq = '$_SESSION[‘session_playwright_unq’]' AND user_hide != 'Yes' ORDER BY Sent"; $result = mysql_query($SQL); while ($db_field = mysql_fetch_assoc($result)) { $lcTitle = $db_field['Title']; $lcUnq = $db_field['Unq']; echo '
  • '.$lcTitle.'
  • '; } echo' '; ?>

    License Checker

  • Manager|
  • Profile|
  • License|
  • Search|
  • Shows|
  • FAQ|
  • Contact
  • Log Out
  • ';}else{echo ' ';} ?>