PHP Classes

File: admin/quixplorer/_include/error.php

Recommend this page to a friend!
  Classes of Joko Prasetyo   miwo WordPress FTP Plugin   admin/quixplorer/_include/error.php   Download  
File: admin/quixplorer/_include/error.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: miwo WordPress FTP Plugin
WordPress plugin to upload and manage files
Author: By
Last change:
Date: 1 year ago
Size: 921 bytes
 

Contents

Class file image Download
<?php
/*
* @package MiwoFTP
* @copyright Copyright (C) 2009-2014 Miwisoft, LLC. All rights reserved.
* @license GNU General Public License version 2 or later
*
*/

// no direct access
defined('ABSPATH') or die('MIWI');


//require_once MPATH_MIWOFTP_QX."/_include/header.php";

/**
    show error-message and terminate
 */
function show_error($error,$extra=NULL)
{
   
// we do not know whether the language module was already loaded
   
$errmsg = isset($GLOBALS["error_msg"]) ? $GLOBALS["error_msg"]["error"] : "ERROR";
   
$backmsg = isset($GLOBALS["error_msg"]) ? $GLOBALS["error_msg"]["back"] : "BACK";

   
show_header($errmsg);
   
?>
<center>
        <h2><?php echo $errmsg ?></h2>
        <?php echo $error ?>
<h3> <a href="javascript:window.history.back()"><?php echo $backmsg ?></a><h3>
        <?php if ($extra != NULL) echo " - " . $extra; ?>
</center>
    <?php
   
/*show_footer();*/ exit;
}
?>