0byt3m1n1
Path:
/
data
/
applications
/
aps
/
tikiwiki
/
14.1-0
/
standard
/
htdocs
/
[
Home
]
File: tiki-error_simple.php
<?php // (c) Copyright 2002-2015 by authors of the Tiki Wiki CMS Groupware Project // // All Rights Reserved. See copyright.txt for details and a complete list of authors. // Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details. // $Id: tiki-error_simple.php 53802 2015-02-06 00:11:35Z jyhem $ if (!empty($_REQUEST['error'])) { $error = substr($_REQUEST["error"], 0, 256); } else { $error = 'There was an unspecified error. Please go back and try again.'; } if (!empty($_REQUEST['title'])) { $title = $_REQUEST['title']; } else { $title = 'Maintenance'; } $login = '<form name="loginbox" action="tiki-login.php?page=tikiIndex" method="post"><table><tr><td>' . 'User:</td><td><input type="text" name="user" size="20" /></td></tr><tr><td>' . 'Pass:</td><td><input type="password" name="pass" size="20" /></td></tr><tr><td align="center"><input type="submit" name="login" value="login" class="btn btn-default" /></td></tr></table></form>'; $back = '<p><a href="javascript:history.back()">Go back</a></p>'; if (file_exists('themes/base_files/other/site_closed_local.html')) { $html = file_get_contents('themes/base_files/other/site_closed_local.html'); } else { $html = file_get_contents('themes/base_files/other/site_closed.html'); } $html = str_replace('{error}', $error, $html); $html = str_replace('{title}', $title, $html); $html = str_replace('{login}', $login, $html); $html = str_replace('{back}', $back, $html); header("HTTP/1.0 503 Service Unavailable"); echo $html;