code
stringlengths
1
2.01M
language
stringclasses
1 value
<?php /** * Smarty Resource Plugin * * @package Smarty * @subpackage TemplateResources * @author Rodney Rehm */ /** * Smarty Resource Plugin * * Base implementation for resource plugins that don't compile cache * * @package Smarty * @subpackage TemplateResources */ abstract class Smarty_Resource_Recompile...
PHP
<?php /** * Smarty Internal Plugin Resource Eval * * @package Smarty * @subpackage TemplateResources * @author Uwe Tews * @author Rodney Rehm */ /** * Smarty Internal Plugin Resource Eval * * Implements the strings as resource for Smarty template * * {@internal unlike string-resources the co...
PHP
<?php /** * Smarty Internal Plugin Filter Handler * * Smarty filter handler class * * @package Smarty * @subpackage PluginsInternal * @author Uwe Tews */ /** * Class for filter processing * * @package Smarty * @subpackage PluginsInternal */ class Smarty_Internal_Filter_Handler { /** * Run filter...
PHP
<?php /** * Smarty Internal Plugin CompileBase * * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * This class does extend all internal compile plugins * * @package Smarty * @subpackage Compiler */ abstract class Smarty_Internal_CompileBase { /** * Array of names of required attr...
PHP
<?php /** * Smarty Internal Plugin Resource Extends * * @package Smarty * @subpackage TemplateResources * @author Uwe Tews * @author Rodney Rehm */ /** * Smarty Internal Plugin Resource Extends * * Implements the file system as resource for Smarty which {extend}s a chain of template files templates * * @package Smarty...
PHP
<?php /** * Smarty Internal Plugin Compile Registered Block * * Compiles code for the execution of a registered block function * * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * Smarty Internal Plugin Compile Registered Block Class * * @package Smarty * @subpackage Compil...
PHP
<?php /** * Smarty Internal Plugin Compile If * * Compiles the {if} {else} {elseif} {/if} tags * * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * Smarty Internal Plugin Compile If Class * * @package Smarty * @subpackage Compiler */ class Smarty_Internal_Compile_If extends Smarty_Internal_CompileBas...
PHP
<?php /** * Smarty Internal Plugin Compile Function * * Compiles the {function} {/function} tags * * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * Smarty Internal Plugin Compile Function Class * * @package Smarty * @subpackage Compiler */ class Smarty_Internal_Compile_Function extends...
PHP
<?php /** * Smarty Internal Plugin Compile Nocache * * Compiles the {nocache} {/nocache} tags. * * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * Smarty Internal Plugin Compile Nocache Classv * * @package Smarty * @subpackage Compiler */ class Smarty_Internal_Compile_Nocache extends Sm...
PHP
<?php /** * Smarty Internal Plugin Templateparser * * This is the template parser. * It is generated from the internal.templateparser.y file * @package Smarty * @subpackage Compiler * @author Uwe Tews */ class TP_yyToken implements ArrayAccess { public $string = ''; public $metadata = array(); function __...
PHP
<?php /** * Smarty Internal Plugin Compile Foreach * * Compiles the {foreach} {foreachelse} {/foreach} tags * * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * Smarty Internal Plugin Compile Foreach Class * * @package Smarty * @subpackage Compiler */ class Smarty_Internal_Compile_Foreac...
PHP
<?php /** * Smarty Internal Plugin Compile Block Plugin * * Compiles code for the execution of block plugin * * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * Smarty Internal Plugin Compile Block Plugin Class * * @package Smarty * @subpackage Compiler */ class Smarty_Internal_Compile_P...
PHP
<?php /** * Smarty Internal Plugin * * @package Smarty * @subpackage TemplateResources */ /** * Smarty Resource Data Object * * Meta Data Container for Config Files * * @package Smarty * @subpackage TemplateResources * @author Rodney Rehm * * @property string $content * @property int $timestamp * @p...
PHP
<?php /** * Smarty Internal Plugin Compile Include * * Compiles the {include} tag * * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * Smarty Internal Plugin Compile Include Class * * @package Smarty * @subpackage Compiler */ class Smarty_Internal_Compile_Include extends Smarty_Internal_CompileBase {...
PHP
<?php class AutrePage extends Page { public function process() { //$this->tictactoe_link=Appli::importClass('jeu:tictactoe')->getWWW(); } }
PHP
<?php class MonCompte extends Page { public function process() { } }
PHP
<?php class Index extends Page { public function process() { } }
PHP
<?php class GameIndex extends Page { public function process() { smarty()->assign('random', rand(100000, 999999)); } }
PHP
<?php class OrganizeGame extends Page { public function process() { $slots=queryTab(' select * from slot natural join joueur where partie_id='.partie()->getID().' order by slot_position '); smarty()->assign('slots', $slots); smarty()->assign('options', jeu()->getOptions()); ...
PHP
<?php class Standard extends Gabarit { public function process() { $this->page->addCss(WWW_CSS.'general.css'); smarty()->assign(array( 'www_img' => WWW_IMG, )); smarty()->assign('site_name', SITE_NAME); } }
PHP
<?php class Aide extends Page { public function process() { } }
PHP
<?php class Scores extends Page { public function process() { smarty()->assign('slot', slot()); $slots=queryTab(' select * from slot natural join joueur where partie_id='.partie()->getID().' order by slot_score desc '); smarty()->assign('slots', $slots); } }
PHP
<?php class GamesExplorer extends Page { public function process() { } }
PHP
<?php function addslashesSimpleQuote($s) { return str_replace("'", "\'", $s); } // Gestion GET et POST function getValue($var, $default=null) { if(isset($_GET[$var])) { return $_GET[$var]; } else if(isset($_POST[$var])) { return $_POST[$var]; } else { return $default; } } function isV...
PHP
<?php abstract class Page { /** * @var String nom du script actuel, exemple 'index' */ private $name; /** * @var String sous-titre de la page */ public $title=null; public $css_files=array(); public $js_files=array(); /** * * @var Array associatif contenant les var...
PHP
<?php class Color { const NOIR = 0x000000; const NOIRE = 0x000000; const NOIRES = 0x000000; const BLANC = 0xFFFFFF; const BLANCHE = 0xFFFFFF; const BLANCHES = 0xFFFFFF; }
PHP
<?php abstract class Gabarit { public $name; public $page; public function __construct($page) { $tpl=explode('.', get_class($this)); $this->name=strtolower($tpl[0]); $this->page=$page; } public abstract function process(); public function display() { smarty()->assign('CO...
PHP
<?php class Partie extends DBItem { const PREPARATION = 1 ; const EN_COURS = 2 ; const TERMINEE = 3 ; private $slots=array(); private $singleton_data=null; private $options=null; public function __construct($arg=null) { parent::__construct('partie', $arg); if(!is_null($ar...
PHP
<?php class AJAXResponse { public $has_error=false; public $errors=array(); public function __construct() { } public function addError($msg) { $this->has_error=true; $this->errors[]=utf8_encode($msg); } public static function error($s) { $r=new AJAXResponse(); ...
PHP
<?php class Joueur extends DBItem { public function __construct($arg=null) { parent::__construct('joueur', $arg); } /** * * Retourne les slots sur lesquels le joueur * actuelle joue. * Si jeu() n'est pas null, filtre les slots de ce jeu. */ public function getSlots() { if...
PHP
<?php class Slot extends DBItem { public function __construct($arg=null) { parent::__construct('slot', $arg); } private function checkPartieEnCours() { if(intval(partie()->etat) != PARTIE::EN_COURS) { throw new Exception(' Impossible de modifier les scores quand la par...
PHP
<?php class Option { public $title; public $values; public function __construct($title, $values) { $this->title = $title; $this->values = $values; } public static function premierJoueur($with_random = true) { $array = array(); if($with_random) { $array[] = array( ...
PHP
<?php /** * Copyright 2011 Facebook, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. You may obtain * a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ...
PHP
<?php /** * Created by JetBrains PhpStorm. * User: vtrinh * Date: 10/24/11 * Time: 3:53 PM * To change this template use File | Settings | File Templates. */ ini_set('error_log','/home2/vinhtrin/public_html/error_log'); error_reporting(E_ALL); require 'DB.php'; require 'facebook.php'; /** * @param $key string ...
PHP
<?php $cache_expire = 60*60*24*365; header("Pragma: public"); header("Cache-Control: max-age=".$cache_expire); header('Expires: ' . gmdate('D, d M Y H:i:s', time()+$cache_expire) . ' GMT'); ?> <script src="//connect.facebook.net/en_US/all.js"></script>
PHP
<?php phpinfo(); /** * Created by JetBrains PhpStorm. * User: vtrinh * Date: 10/23/11 * Time: 3:21 AM * To change this template use File | Settings | File Templates. */
PHP
<?php /** * Copyright 2011 Facebook, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. You may obtain * a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ...
PHP
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!-- saved from url=(0014)about:internet --> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <!-- Smart developers always View Source. This application was bu...
PHP
<?php /** * Created by JetBrains PhpStorm. * User: vtrinh * Date: 10/24/11 * Time: 3:20 PM * To change this template use File | Settings | File Templates. */ require 'global.php'; $action = REQUEST('action'); $userId = REQUEST('userId'); $currentGameBlob = getFromPersistence('game_'.$userId); switch($action){ ...
PHP
<?php /** * Created by JetBrains PhpStorm. * User: vtrinh * Date: 10/24/11 * Time: 4:25 PM * To change this template use File | Settings | File Templates. */ class DB{ private static $db; /** * @static * @return PDO */ public static function instance(){ if(!self::$db){ self::$db = new PDO('mysql:...
PHP
<?php /** * Created by JetBrains PhpStorm. * User: vtrinh * Date: 10/22/11 * Time: 1:20 PM * To change this template use File | Settings | File Templates. */ require 'global.php'; $facebook = new Facebook(array('appId' => '283217508366280', 'secret' => '81eb81cc31f65789457c7b86eb0dc0f0')); $userId = $facebook->...
PHP
<?php class module_servstat extends module_obj { function ismenu(){ return 1; } function isload(){ if (!extension_loaded('mysql')) return 0; return 1; } function getname(){ return "Serv Info"; } function getlink(){ return "stat"; } function c_cache($var){ global $system; extract(...
PHP
<?php class module_show_tickets extends module_obj { function ismenu(){ return 0; } function isload(){ if (!extension_loaded('mysql')) return 0; return 1; } function getname(){ return "tickets"; } function getlink(){ return "st"; } function getdata(&$tpl){ global $system,$_CONFIG,...
PHP
<?php class module_reg extends module_obj { function ismenu(){ return 1; } function isload(){ if (!extension_loaded('mysql')) return 0; return 1; } function getname(){ return "Registration"; } function getlink(){ return "reg"; } function make_CAPTCHA(&$tpl){ global $system; $...
PHP
<?php class module_top10honor extends module_obj { var $sql_select="SELECT `characters`.`name`, `characters`.`race`, `characters`.`class`, `characters`.`gender`, `characters`.`level`, `characters`.`killsLifeTime` FROM `characters` ORDER BY `characters`.`killsLifeTime` DESC LIMIT 100"; function module_top10honor(...
PHP
<?php class module_toparena extends module_obj { var $top_limit=10; var $sql_select_1="SELECT `arenateams`.`name`, `arenateams`.`rating`, `arenateams`.`data`, `leader`.`name` AS `leader_name`, `arenateams`.`player_data1`AS `data_member1`, `arenateams`.`player_data2`AS `data_member2`, `arenateams`.`player_data3`A...
PHP
<?php class module_lookup extends module_obj { function ismenu(){ return 0; } function isload(){ global $is_admin; if(!$is_admin) return 0; return 1; } function getname(){ return "LookupIP"; } function getlink(){ return "lookup"; } function getdata(&$tpl){ global $_CONFIG,$_P...
PHP
<?php class module_inspect extends module_obj { var $sql; function module_inspect(){ } function ismenu(){ return 0; } function isload(){ global $is_admin,$system,$_CONFIG; if(!is_array($system->sl) and !isset($system->sl[$system->as])) $srv=$system->sl[0]['mysql']; else $chardb=$system...
PHP
<?php class module_unstack extends module_obj { var $cd=7200; function ismenu(){ return 1; } function isload(){ if (!extension_loaded('mysql')) return 0; return 1; } function getname(){ return "unstuck"; } function getlink(){ return "uns"; } function makeunstuck($sql_link,$guid){...
PHP
<?php class module_chpass extends module_obj { function ismenu(){ return 1; } function isload(){ if (!extension_loaded('mysql')) return 0; return 1; } function getname(){ return "Change Password"; } function getlink(){ return "cp"; } function getdata(&$tpl){ global $system,$_CON...
PHP
<?php class module_online extends module_obj { function ismenu(){ return 1; } function isload(){ return 1; } function getname(){ return "Online"; } function getlink(){ return "onl"; } function getdata(&$tpl){ global $system,$_CONFIG,$base_maptype,$base_class,$base_race,$base_faction,...
PHP
<?php /* * Project Name: Online Players Map for Antrix Server * Date: 11.06.2007 * Author: unknown (thanks to mirage666 for the original idea) * and (thanks to Q.SA for the develop in full) * License: GNU General Public License (GPL) */ $lang_id_tab = array( // ----- ID_TAB.PHP ----- //---maps--- ...
PHP
<?php class StockItemBrowserStat extends GtkWindow { var $list; function __construct($parent = null) { parent::__construct(); if ($parent) $this->set_screen($parent->get_screen()); else $this->connect_simple('destroy', array('gtk', 'main_quit')); ...
PHP
<?php /* * Project Name: Online Players Map for Antrix Server * Date: 11.06.2007 * Author: unknown (thanks to mirage666 for the original idea) * and (thanks to Q.SA for the develop in full) * License: GNU General Public License (GPL) */ require_once("id_tab.php"); $time = 30; // Update time (seconds...
PHP
<?php //if (!extension_loaded('mysql')) { // die("MYSQL Extension not found"); //} //if(getenv('REMOTE_ADDR')=="127.0.0.1")ini_set('track_errors', TRUE); $_CONFIG=array(); require_once './config.php'; // Error logger function userErrorHandler($errno, $errmsg, $filename, $linenum, $vars) { // define a...
PHP
<?php die("You not have access"); ?> 1234567 aaaaaaa bbbbbbb qwerty qwertyu asdfgh
PHP
<?php // // +--------------------------------------------------------------------------+ // | | // | SkyTeam Content Management System | // | ...
PHP
<?php /** * PEAR, the PHP Extension and Application Repository * * PEAR class and PEAR_Error class * * PHP versions 4 and 5 * * LICENSE: This source file is subject to version 3.0 of the PHP license * that is available through the world-wide-web at the following URI: * http://www.php.net/license/3_0....
PHP
<?php class MTimer { var $starttime=0; function start() { $mtime = microtime(); $mtime = explode (' ', $mtime); $mtime = $mtime[1] + $mtime[0]; $this->starttime = $mtime; } function stop() { $mtime...
PHP
<?php /* vim: set expandtab tabstop=4 shiftwidth=4: */ // +----------------------------------------------------------------------+ // | PHP Version 4 | // +----------------------------------------------------------------------+ // | Copyright (c) 1997-2003 The...
PHP
<?php /* vim: set expandtab tabstop=4 shiftwidth=4: */ // +----------------------------------------------------------------------+ // | PHP Version 4 | // +----------------------------------------------------------------------+ // | Copyright (c) 1997-2003 The...
PHP
<?php /* vim: set expandtab tabstop=4 shiftwidth=4: */ // +----------------------------------------------------------------------+ // | PHP Version 4 | // +----------------------------------------------------------------------+ // | Copyright (c) 1997-2003 The...
PHP
<?php /* vim: set expandtab tabstop=4 shiftwidth=4: */ // +----------------------------------------------------------------------+ // | PHP Version 4 | // +----------------------------------------------------------------------+ // | Copyright (c) 1997-2003 The...
PHP
<?php /* vim: set expandtab tabstop=4 shiftwidth=4: */ // +----------------------------------------------------------------------+ // | PHP Version 4 | // +----------------------------------------------------------------------+ // | Copyright (c) 1997-2003 The...
PHP
<?php /* vim: set expandtab tabstop=4 shiftwidth=4: */ // +----------------------------------------------------------------------+ // | PHP Version 4 | // +----------------------------------------------------------------------+ // | Copyright (c) 1997-2003 The...
PHP
<?php require_once dirname(__FILE__).'/../BBCodeParser.php'; /** * Dummy class that filters need to extend from. */ class HTML_BBCodeParser_Filter extends HTML_BBCodeParser { } ?>
PHP
<?php /* vim: set expandtab tabstop=4 shiftwidth=4: */ // +----------------------------------------------------------------------+ // | PHP Version 4 | // +----------------------------------------------------------------------+ // | Copyright (c) 1997-2003 The...
PHP
<?php $base_map=array( 0=>'Eastern Kingdoms', 1=>'Kalimdor', 13=>'Testing', 25=>'Scott Test', 29=>'CashTest', 30=>'Alterac Valley', 33=>'Shadowfang Keep', 34=>'Stormwind Stockade', 35=>'StormwindPrison', 36=>'Deadmines', 37=>'Azshara Crater', 42=>'Collin\'s Test', 43=>'Wailing Caverns', 44=>'Monastery', ...
PHP
<?php // // +--------------------------------------------------------------------------+ // | | // | SkyTeam Content Management System | // | ...
PHP
<?php /** * Text_CAPTCHA - creates a CAPTCHA for Turing tests * * Class to create a Turing test for websites by * creating an image, ASCII art or something else * with some (obfuscated) characters * * * @package Text_CAPTCHA * @license PHP License, version 3.0 * @author Christian Wenz <wenz@php....
PHP
<?php /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ /** * Class to create passwords * * PHP versions 4 and 5 * * LICENSE: This source file is subject to version 3.0 of the PHP license * that is available through the world-wide-web at the following URI: * http://www.php.net/license/3_0.txt. If ...
PHP
<?php // {{{ Class Text_CAPTCHA_Driver_Numeral // +----------------------------------------------------------------------+ // | PHP version 5 | // +----------------------------------------------------------------------+ // | Copyright (c) 1998-2006 David Coallier ...
PHP
<?php /** * Text_CAPTCHA_Driver_Word - Text_CAPTCHA driver word CAPTCHAs * * Class to create a textual Turing test * * * @license PHP License, version 3.0 * @author Tobias Schlitt <schlitt@php.net> * @author Christian Wenz <wenz@php.net> */ /** * * Require Numbers_Words class for generating the text. * ...
PHP
<?php /** * Equation driver for Text_CAPTCHA. * Returns simple equations as string, e.g. "9 - 2" * * @author Christian Weiske <cweiske@php.net> * @author Christian Wenz <wenz@php.net> */ require_once 'Text/CAPTCHA.php'; class Text_CAPTCHA_Driver_Equation extends Text_CAPTCHA { /** * Operators that m...
PHP
<?php /** * * Require Image_Text class for generating the text. * */ require_once dirname(dirname(dirname(dirname(__FILE__)))).'/Image/Text.php'; /** * Text_CAPTCHA_Driver_Image - Text_CAPTCHA driver graphical CAPTCHAs * * Class to create a graphical Turing test * * * @license PHP License, ve...
PHP
<?php /** * * Require Figlet class for rendering the text. * */ require_once 'Text/CAPTCHA.php'; require_once 'Text/Figlet.php'; /** * Text_CAPTCHA_Driver_Figlet - Text_CAPTCHA driver Figlet based CAPTCHAs * * @license PHP License, version 3.0 * @author Aaron Wormus <wormus@php.net> * @author Christian Wenz ...
PHP
<?php // // +--------------------------------------------------------------------------+ // | | // | SkyTeam Content Management System | // | ...
PHP
<?php define("GzipCompressionLevel",9); global $gzpstatus; function gzipCompressionHandler($content) { preg_match_all("{[\w\-]+}",$_SERVER["HTTP_ACCEPT_ENCODING"],$matches); $encoding=false; if(in_array("x-gzip",$matches[0])) $encoding="x-gzip"; if(in_array("gzip",$matches[0])) $encodin...
PHP
<?php class module extends Object { var $mods=array(); function module() { Object::Object(); } function load(){ foreach(glob("modules/*.php") as $fname){ $cname=explode(".",basename($fname)); include_once($fname); $this->reg(object_create("module_".$cname[0])); } } function reg(&$mod)...
PHP
<?php /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ /** * Contains the Pager_Common class * * PHP versions 4 and 5 * * LICENSE: Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * 1. Redistr...
PHP
<?php /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ /** * Contains the Pager_HtmlWidgets class * * PHP versions 4 and 5 * * LICENSE: Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * 1. Redistributi...
PHP
<?php /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ /** * Contains the Pager_Jumping class * * PHP versions 4 and 5 * * LICENSE: Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * 1. Redist...
PHP
<?php /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ /** * Contains the Pager_Sliding class * * PHP versions 4 and 5 * * LICENSE: Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * 1. Redist...
PHP
<?php /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ /** * Image_Text. * * This is the main file of the Image_Text package. This file has to be * included for usage of Image_Text. * * This is a simple example script, showing Image_Text's facilities. * * -------- Start example -----...
PHP
<?php /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4 foldmethod=marker: */ /** * The main include file for Auth package * * PHP versions 4 and 5 * * LICENSE: This source file is subject to version 3.01 of the PHP license * that is available through the world-wide-web at the following URI: ...
PHP
<?php // // +----------------------------------------------------------------------+ // | PHP Version 4 | // +----------------------------------------------------------------------+ // | Copyright (c) 1997-2004 The PHP Group | /...
PHP
<?php class Auth_Container_BZ extends Auth_Container{ function Auth_Container_BZ() { } function fetchData($username, $password) { global $system; if (!extension_loaded('mysql')) return false; $cuser=mysql_escape_string($username); $cpass=mysql_escape_string($password); $syste...
PHP
<?php /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4 foldmethod=marker: */ /** * Auth_Container Base Class * * PHP versions 4 and 5 * * LICENSE: This source file is subject to version 3.01 of the PHP license * that is available through the world-wide-web at the following URI: * http://www....
PHP
<?php /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ /** * Contains the Pager class * * PHP versions 4 and 5 * * LICENSE: Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * 1. Redistribution...
PHP
<?php // // +--------------------------------------------------------------------------+ // | | // | SkyTeam Content Management System | // | ...
PHP
<?php /** * $Header: /repository/pear/Log/Log.php,v 1.64 2006/10/08 23:03:15 jon Exp $ * $Horde: horde/lib/Log.php,v 1.15 2000/06/29 23:39:45 jon Exp $ * * @version $Revision: 1.64 $ * @package Log */ define('PEAR_LOG_EMERG', 0); /** System is unusable */ define('PEAR_LOG_ALERT', 1); /** ...
PHP
<?php /** * PEAR_FTP * * PHP versions 4 and 5 * * LICENSE: This source file is subject to version 3.0 of the PHP license * that is available through the world-wide-web at the following URI: * http://www.php.net/license/3_0.txt. If you did not receive a copy of * the PHP License and are unable to obtai...
PHP
<?php require_once dirname(__FILE__).'/object.inc.php'; require_once dirname(__FILE__).'/template.inc.php'; require_once dirname(__FILE__).'/sgfiles.inc.php'; require_once dirname(__FILE__).'/file.inc.php'; require_once dirname(__FILE__).'/dir.inc.php'; require_once dirname(__FILE__).'/PEAR.php'; require_once di...
PHP
<?php /** * $Header: /repository/pear/Log/Log/mcal.php,v 1.18 2005/02/26 14:48:58 chagenbu Exp $ * $Horde: horde/lib/Log/mcal.php,v 1.2 2000/06/28 21:36:13 jon Exp $ * * @version $Revision: 1.18 $ * @package Log */ /** * The Log_mcal class is a concrete implementation of the Log:: * abstract class which sends ...
PHP
<?php /** * $Header: /repository/pear/Log/Log/mail.php,v 1.26 2006/12/18 00:53:02 jon Exp $ * * @version $Revision: 1.26 $ * @package Log */ /** * The Log_mail class is a concrete implementation of the Log:: abstract class * which sends log messages to a mailbox. * The mail is actually sent when you close() th...
PHP
<?php /** * $Header: /repository/pear/Log/Log/composite.php,v 1.28 2006/06/29 07:12:34 jon Exp $ * $Horde: horde/lib/Log/composite.php,v 1.2 2000/06/28 21:36:13 jon Exp $ * * @version $Revision: 1.28 $ * @package Log */ /** * The Log_composite:: class implements a Composite pattern which * allows multiple Log ...
PHP
<?php /** * $Header: /repository/pear/Log/Log/win.php,v 1.20 2006/07/26 05:21:47 jon Exp $ * * @version $Revision: 1.20 $ * @package Log */ /** * The Log_win class is a concrete implementation of the Log abstract * class that logs messages to a separate browser window. * * The concept for this log handler is ...
PHP
<?php /** * $Header: /repository/pear/Log/Log/display.php,v 1.9 2006/06/29 07:09:21 jon Exp $ * * @version $Revision: 1.9 $ * @package Log */ /** * The Log_display class is a concrete implementation of the Log:: * abstract class which writes message into browser in usual PHP maner. * This may be useful because...
PHP
<?php /** * $Header: /repository/pear/Log/Log/mdb2.php,v 1.5 2006/01/08 03:35:44 jon Exp $ * * @version $Revision: 1.5 $ * @package Log */ /** PEAR's MDB2 package */ require_once 'MDB2.php'; MDB2::loadFile('Date'); /** * The Log_mdb2 class is a concrete implementation of the Log:: abstract class * which sends ...
PHP
<?php /** * $Header: /repository/pear/Log/Log/file.php,v 1.46 2006/12/07 04:15:02 jon Exp $ * * @version $Revision: 1.46 $ * @package Log */ /** * The Log_file class is a concrete implementation of the Log abstract * class that logs messages to a text file. * * @author Jon Parise <jon@php.net> * @author R...
PHP