require -> require_once for libs

git-svn-id: https://webim.svn.sourceforge.net/svnroot/webim/trunk@94 c66351dc-e62f-0410-b875-e3a5c0b9693f
This commit is contained in:
Evgeny Gryaznov 2008-06-04 21:36:54 +00:00
parent 6ceb322166
commit 94fa454f92
19 changed files with 46 additions and 46 deletions

View File

@ -12,8 +12,8 @@
* Evgeny Gryaznov - initial API and implementation * Evgeny Gryaznov - initial API and implementation
*/ */
require('libs/common.php'); require_once('libs/common.php');
require('libs/operator.php'); require_once('libs/operator.php');
$image = verifyparam("image","/^\w+$/", "webim"); $image = verifyparam("image","/^\w+$/", "webim");
$lang = verifyparam("lang", "/^[\w-]{2,5}$/", ""); $lang = verifyparam("lang", "/^[\w-]{2,5}$/", "");

View File

@ -12,9 +12,9 @@
* Evgeny Gryaznov - initial API and implementation * Evgeny Gryaznov - initial API and implementation
*/ */
require('libs/common.php'); require_once('libs/common.php');
require('libs/chat.php'); require_once('libs/chat.php');
require('libs/operator.php'); require_once('libs/operator.php');
if( !isset($_GET['token']) || !isset($_GET['thread']) ) { if( !isset($_GET['token']) || !isset($_GET['thread']) ) {

View File

@ -12,9 +12,9 @@
* Evgeny Gryaznov - initial API and implementation * Evgeny Gryaznov - initial API and implementation
*/ */
require('../libs/common.php'); require_once('../libs/common.php');
require('../libs/operator.php'); require_once('../libs/operator.php');
require('dbinfo.php'); require_once('dbinfo.php');
function runsql($query,$link) { function runsql($query,$link) {
mysql_query($query,$link) mysql_query($query,$link)

View File

@ -12,8 +12,8 @@
* Evgeny Gryaznov - initial API and implementation * Evgeny Gryaznov - initial API and implementation
*/ */
require('../libs/common.php'); require_once('../libs/common.php');
require('dbinfo.php'); require_once('dbinfo.php');
$page = array( $page = array(
'version' => $version, 'version' => $version,

View File

@ -12,8 +12,8 @@
* Evgeny Gryaznov - initial API and implementation * Evgeny Gryaznov - initial API and implementation
*/ */
require('libs/common.php'); require_once('libs/common.php');
require('libs/chat.php'); require_once('libs/chat.php');
$errors = array(); $errors = array();
$page = array(); $page = array();

View File

@ -14,8 +14,8 @@
session_start(); session_start();
require(dirname(__FILE__).'/converter.php'); require_once(dirname(__FILE__).'/converter.php');
require(dirname(__FILE__).'/config.php'); require_once(dirname(__FILE__).'/config.php');
$version = 'v1.0.9'; $version = 'v1.0.9';

View File

@ -12,8 +12,8 @@
* Evgeny Gryaznov - initial API and implementation * Evgeny Gryaznov - initial API and implementation
*/ */
require('libs/common.php'); require_once('libs/common.php');
require('libs/chat.php'); require_once('libs/chat.php');
$errors = array(); $errors = array();
$page = array(); $page = array();

View File

@ -12,9 +12,9 @@
* Evgeny Gryaznov - initial API and implementation * Evgeny Gryaznov - initial API and implementation
*/ */
require('../libs/common.php'); require_once('../libs/common.php');
require('../libs/chat.php'); require_once('../libs/chat.php');
require('../libs/operator.php'); require_once('../libs/operator.php');
$operator = check_login(); $operator = check_login();

View File

@ -12,8 +12,8 @@
* Evgeny Gryaznov - initial API and implementation * Evgeny Gryaznov - initial API and implementation
*/ */
require('../libs/common.php'); require_once('../libs/common.php');
require('../libs/operator.php'); require_once('../libs/operator.php');
$operator = check_login(); $operator = check_login();

View File

@ -12,10 +12,10 @@
* Pavel Petroshenko - initial API and implementation * Pavel Petroshenko - initial API and implementation
*/ */
require('../libs/common.php'); require_once('../libs/common.php');
require('../libs/operator.php'); require_once('../libs/operator.php');
require('../libs/chat.php'); require_once('../libs/chat.php');
require('../libs/pagination.php'); require_once('../libs/pagination.php');
$operator = check_login(); $operator = check_login();

View File

@ -12,8 +12,8 @@
* Evgeny Gryaznov - initial API and implementation * Evgeny Gryaznov - initial API and implementation
*/ */
require('../libs/common.php'); require_once('../libs/common.php');
require('../libs/operator.php'); require_once('../libs/operator.php');
$operator = check_login(); $operator = check_login();

View File

@ -12,8 +12,8 @@
* Evgeny Gryaznov - initial API and implementation * Evgeny Gryaznov - initial API and implementation
*/ */
require('../libs/common.php'); require_once('../libs/common.php');
require('../libs/operator.php'); require_once('../libs/operator.php');
$errors = array(); $errors = array();
if( isset($_POST['login']) && isset($_POST['password']) ) { if( isset($_POST['login']) && isset($_POST['password']) ) {

View File

@ -12,8 +12,8 @@
* Evgeny Gryaznov - initial API and implementation * Evgeny Gryaznov - initial API and implementation
*/ */
require('../libs/common.php'); require_once('../libs/common.php');
require('../libs/operator.php'); require_once('../libs/operator.php');
logout_operator(); logout_operator();

View File

@ -12,8 +12,8 @@
* Evgeny Gryaznov - initial API and implementation * Evgeny Gryaznov - initial API and implementation
*/ */
require('../libs/common.php'); require_once('../libs/common.php');
require('../libs/operator.php'); require_once('../libs/operator.php');
$operator = check_login(); $operator = check_login();

View File

@ -12,8 +12,8 @@
* Evgeny Gryaznov - initial API and implementation * Evgeny Gryaznov - initial API and implementation
*/ */
require('../libs/common.php'); require_once('../libs/common.php');
require('../libs/operator.php'); require_once('../libs/operator.php');
$operator = check_login(); $operator = check_login();

View File

@ -12,9 +12,9 @@
* Evgeny Gryaznov - initial API and implementation * Evgeny Gryaznov - initial API and implementation
*/ */
require('../libs/common.php'); require_once('../libs/common.php');
require('../libs/operator.php'); require_once('../libs/operator.php');
require('../libs/chat.php'); require_once('../libs/chat.php');
$operator = check_login(); $operator = check_login();

View File

@ -12,9 +12,9 @@
* Evgeny Gryaznov - initial API and implementation * Evgeny Gryaznov - initial API and implementation
*/ */
require('../libs/common.php'); require_once('../libs/common.php');
require('../libs/chat.php'); require_once('../libs/chat.php');
require('../libs/operator.php'); require_once('../libs/operator.php');
$operator = get_logged_in(); $operator = get_logged_in();
if( !$operator ) { if( !$operator ) {

View File

@ -12,8 +12,8 @@
* Evgeny Gryaznov - initial API and implementation * Evgeny Gryaznov - initial API and implementation
*/ */
require('../libs/common.php'); require_once('../libs/common.php');
require('../libs/operator.php'); require_once('../libs/operator.php');
$operator = check_login(); $operator = check_login();

View File

@ -12,9 +12,9 @@
* Evgeny Gryaznov - initial API and implementation * Evgeny Gryaznov - initial API and implementation
*/ */
require('libs/common.php'); require_once('libs/common.php');
require('libs/chat.php'); require_once('libs/chat.php');
require('libs/operator.php'); require_once('libs/operator.php');
$act = verifyparam( "act", "/^(refresh|post|rename|close|ping".")$/"); $act = verifyparam( "act", "/^(refresh|post|rename|close|ping".")$/");
$token = verifyparam( "token", "/^\d{1,9}$/"); $token = verifyparam( "token", "/^\d{1,9}$/");