mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-07 08:05:25 +02:00
Modified header comments
git-svn-id: file:///svn/phpbb/trunk@933 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
54b29cc125
commit
92fda1ce7c
@ -10,15 +10,6 @@
|
||||
*
|
||||
***************************************************************************/
|
||||
|
||||
/***************************************************************************
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
***************************************************************************/
|
||||
|
||||
if(!defined("SQL_LAYER"))
|
||||
{
|
||||
|
||||
@ -204,6 +195,8 @@ class sql_db
|
||||
}
|
||||
else
|
||||
{
|
||||
$query = preg_replace("/\\\'/s", "''", $query);
|
||||
|
||||
$this->query_result = @mssql_query($query, $this->db_connect_id);
|
||||
if($this->query_result)
|
||||
{
|
||||
|
@ -10,15 +10,6 @@
|
||||
*
|
||||
***************************************************************************/
|
||||
|
||||
/***************************************************************************
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
***************************************************************************/
|
||||
|
||||
if(!defined("SQL_LAYER"))
|
||||
{
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/***************************************************************************
|
||||
* odbc.php
|
||||
* odbc.php
|
||||
* -------------------
|
||||
* begin : Saturday, Feb 13, 2001
|
||||
* copyright : (C) 2001 The phpBB Group
|
||||
@ -10,15 +10,6 @@
|
||||
*
|
||||
***************************************************************************/
|
||||
|
||||
/***************************************************************************
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
***************************************************************************/
|
||||
|
||||
if(!defined("SQL_LAYER"))
|
||||
{
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/***************************************************************************
|
||||
* oracle.php
|
||||
* oracle.php
|
||||
* -------------------
|
||||
* begin : Thrusday Feb 15, 2001
|
||||
* copyright : (C) 2001 The phpBB Group
|
||||
@ -10,15 +10,6 @@
|
||||
*
|
||||
***************************************************************************/
|
||||
|
||||
/***************************************************************************
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
***************************************************************************/
|
||||
|
||||
if(!defined("SQL_LAYER"))
|
||||
{
|
||||
|
||||
@ -109,6 +100,11 @@ class sql_db
|
||||
}
|
||||
}
|
||||
|
||||
if(eregi("^(INSERT|UPDATE) ", $query))
|
||||
{
|
||||
$query = preg_replace("/\\\'/s", "''", $query);
|
||||
}
|
||||
|
||||
$this->query_result = @OCIParse($this->db_connect_id, $query);
|
||||
$success = @OCIExecute($this->query_result);
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/***************************************************************************
|
||||
* postgres7.php
|
||||
* postgres7.php
|
||||
* -------------------
|
||||
* begin : Saturday, Feb 13, 2001
|
||||
* copyright : (C) 2001 The phpBB Group
|
||||
@ -10,15 +10,6 @@
|
||||
*
|
||||
***************************************************************************/
|
||||
|
||||
/***************************************************************************
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
***************************************************************************/
|
||||
|
||||
if(!defined("SQL_LAYER"))
|
||||
{
|
||||
|
||||
|
@ -11,17 +11,6 @@
|
||||
*
|
||||
***************************************************************************/
|
||||
|
||||
|
||||
/***************************************************************************
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
*
|
||||
***************************************************************************/
|
||||
|
||||
/*
|
||||
$type's accepted (pre-pend with AUTH_):
|
||||
VIEW, READ, POST, REPLY, EDIT, DELETE, STICKY, ANNOUNCE, VOTE, VOTECREATE,
|
||||
|
@ -10,21 +10,8 @@
|
||||
*
|
||||
***************************************************************************/
|
||||
|
||||
/***************************************************************************
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
*
|
||||
*
|
||||
***************************************************************************/
|
||||
|
||||
|
||||
define("BBCODE_UID_LEN", 10);
|
||||
|
||||
|
||||
/**
|
||||
* Does second-pass bbencoding. This should be used before displaying the message in
|
||||
* a thread. Assumes the message is already first-pass encoded, and has the required
|
||||
@ -112,8 +99,6 @@ function bbencode_second_pass($text, $uid)
|
||||
|
||||
} // bbencode_second_pass()
|
||||
|
||||
|
||||
|
||||
function make_bbcode_uid()
|
||||
{
|
||||
// Unique ID for this message..
|
||||
@ -123,8 +108,6 @@ function make_bbcode_uid()
|
||||
return $uid;
|
||||
}
|
||||
|
||||
|
||||
|
||||
function bbencode_first_pass($text, $uid)
|
||||
{
|
||||
// pad it with a space so we can distinguish between FALSE and matching the 1st char (index 0).
|
||||
@ -169,7 +152,6 @@ function bbencode_first_pass($text, $uid)
|
||||
|
||||
} // bbencode_first_pass()
|
||||
|
||||
|
||||
/**
|
||||
* $text - The text to operate on.
|
||||
* $uid - The UID to add to matching tags.
|
||||
@ -350,9 +332,6 @@ function bbencode_first_pass_pda($text, $uid, $open_tag, $close_tag, $close_tag_
|
||||
|
||||
} // bbencode_first_pass_pda()
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Does second-pass bbencoding of the [code] tags. This includes
|
||||
* running htmlspecialchars() over the text contained between
|
||||
@ -397,7 +376,6 @@ function bbencode_second_pass_code($text, $uid)
|
||||
|
||||
} // bbencode_second_pass_code()
|
||||
|
||||
|
||||
/**
|
||||
* Rewritten by Nathan Codding - Feb 6, 2001.
|
||||
* - Goes through the given string, and replaces xxxx://yyyy with an HTML <a> tag linking
|
||||
@ -411,10 +389,8 @@ function bbencode_second_pass_code($text, $uid)
|
||||
* Notes: the email one might get annoying - it's easy to make it more restrictive, though.. maybe
|
||||
* have it require something like xxxx@yyyy.zzzz or such. We'll see.
|
||||
*/
|
||||
|
||||
function make_clickable($text)
|
||||
{
|
||||
|
||||
// pad it with a space so we can match things at the start of the 1st line.
|
||||
$ret = " " . $text;
|
||||
|
||||
@ -448,9 +424,8 @@ function make_clickable($text)
|
||||
* - Does not distinguish between "www.xxxx.yyyy" and "http://aaaa.bbbb" type URLs.
|
||||
*
|
||||
*/
|
||||
|
||||
function undo_make_clickable($text) {
|
||||
|
||||
function undo_make_clickable($text)
|
||||
{
|
||||
$text = preg_replace("#<!-- BBCode auto-link start --><a href=\"(.*?)\" target=\"_blank\">.*?</a><!-- BBCode auto-link end -->#i", "\\1", $text);
|
||||
$text = preg_replace("#<!-- BBcode auto-mailto start --><a href=\"mailto:(.*?)\">.*?</a><!-- BBCode auto-mailto end -->#i", "\\1", $text);
|
||||
|
||||
@ -458,14 +433,13 @@ function undo_make_clickable($text) {
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Nathan Codding - August 24, 2000.
|
||||
* Takes a string, and does the reverse of the PHP standard function
|
||||
* htmlspecialchars().
|
||||
*/
|
||||
function undo_htmlspecialchars($input) {
|
||||
function undo_htmlspecialchars($input)
|
||||
{
|
||||
$input = preg_replace("/>/i", ">", $input);
|
||||
$input = preg_replace("/</i", "<", $input);
|
||||
$input = preg_replace("/"/i", "\"", $input);
|
||||
@ -474,8 +448,6 @@ function undo_htmlspecialchars($input) {
|
||||
return $input;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* This is used to change a [*] tag into a [*:$uid] tag as part
|
||||
* of the first-pass bbencoding of [list] tags. It fits the
|
||||
@ -489,7 +461,6 @@ function replace_listitems($text, $uid)
|
||||
return $text;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Escapes the "/" character with "\/". This is useful when you need
|
||||
* to stick a runtime string into a PREG regexp that is being delimited
|
||||
@ -501,13 +472,13 @@ function escape_slashes($input)
|
||||
return $output;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* This function does exactly what the PHP4 function array_push() does
|
||||
* however, to keep phpBB compatable with PHP 3 we had to come up with our own
|
||||
* method of doing it.
|
||||
*/
|
||||
function bbcode_array_push(&$stack, $value) {
|
||||
function bbcode_array_push(&$stack, $value)
|
||||
{
|
||||
$stack[] = $value;
|
||||
return(sizeof($stack));
|
||||
}
|
||||
@ -517,9 +488,11 @@ function bbcode_array_push(&$stack, $value) {
|
||||
* however, to keep phpBB compatable with PHP 3 we had to come up with our own
|
||||
* method of doing it.
|
||||
*/
|
||||
function bbcode_array_pop(&$stack) {
|
||||
function bbcode_array_pop(&$stack)
|
||||
{
|
||||
$arrSize = count($stack);
|
||||
$x = 1;
|
||||
|
||||
while(list($key, $val) = each($stack))
|
||||
{
|
||||
if($x < count($stack))
|
||||
@ -537,6 +510,4 @@ function bbcode_array_pop(&$stack) {
|
||||
return($return_val);
|
||||
}
|
||||
|
||||
|
||||
|
||||
?>
|
||||
?>
|
@ -11,17 +11,6 @@
|
||||
*
|
||||
***************************************************************************/
|
||||
|
||||
|
||||
/***************************************************************************
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
*
|
||||
***************************************************************************/
|
||||
|
||||
//
|
||||
// Constants
|
||||
//
|
||||
@ -151,4 +140,4 @@ define('USERS_TABLE', $table_prefix.'users');
|
||||
define('WORDS_TABLE', $table_prefix.'words');
|
||||
define('PRUNE_TABLE', $table_prefix.'forum_prune');
|
||||
|
||||
?>
|
||||
?>
|
@ -11,16 +11,6 @@
|
||||
*
|
||||
***************************************************************************/
|
||||
|
||||
/***************************************************************************
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
*
|
||||
***************************************************************************/
|
||||
|
||||
switch($dbms)
|
||||
{
|
||||
case 'mysql':
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/***************************************************************************
|
||||
emailer.php - description
|
||||
emailer.php
|
||||
-------------------
|
||||
begin : Sunday Aug. 12, 2001
|
||||
copyright : (C) 2001 The phpBB Group
|
||||
@ -10,15 +10,6 @@
|
||||
|
||||
***************************************************************************/
|
||||
|
||||
/***************************************************************************
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
***************************************************************************/
|
||||
|
||||
//
|
||||
// The emailer class has support for attaching files, that isn't implemented
|
||||
// in the 2.0 release but we can probable find some way of using it in a future
|
||||
|
@ -11,17 +11,6 @@
|
||||
*
|
||||
***************************************************************************/
|
||||
|
||||
|
||||
/***************************************************************************
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
*
|
||||
***************************************************************************/
|
||||
|
||||
//
|
||||
// This function gets called to output any message or error
|
||||
// that doesn't require additional output from the calling
|
||||
|
@ -11,17 +11,6 @@
|
||||
*
|
||||
***************************************************************************/
|
||||
|
||||
|
||||
/***************************************************************************
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
*
|
||||
***************************************************************************/
|
||||
|
||||
define(HEADER_INC, TRUE);
|
||||
|
||||
//
|
||||
|
@ -11,17 +11,6 @@
|
||||
*
|
||||
***************************************************************************/
|
||||
|
||||
|
||||
/***************************************************************************
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
*
|
||||
***************************************************************************/
|
||||
|
||||
//
|
||||
// Show the overall footer.
|
||||
//
|
||||
|
@ -11,17 +11,6 @@
|
||||
*
|
||||
***************************************************************************/
|
||||
|
||||
|
||||
/***************************************************************************
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
*
|
||||
***************************************************************************/
|
||||
|
||||
//
|
||||
// This function will prepare a posted message for
|
||||
// entry into the database.
|
||||
|
@ -11,15 +11,6 @@
|
||||
*
|
||||
***************************************************************************/
|
||||
|
||||
/**************************************************************************\
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
\**************************************************************************/
|
||||
|
||||
function prune($forum_id, $prune_date)
|
||||
{
|
||||
global $db, $lang;
|
||||
@ -179,4 +170,4 @@ function auto_prune($forum_id = 0)
|
||||
return;
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/***************************************************************************
|
||||
* sessions.php
|
||||
* sessions.php
|
||||
* -------------------
|
||||
* begin : Saturday, Feb 13, 2001
|
||||
* copyright : (C) 2001 The phpBB Group
|
||||
@ -11,16 +11,6 @@
|
||||
*
|
||||
***************************************************************************/
|
||||
|
||||
/***************************************************************************
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
*
|
||||
***************************************************************************/
|
||||
|
||||
//
|
||||
// session_begin()
|
||||
//
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
/***************************************************************************
|
||||
smtp.php - description
|
||||
-------------------
|
||||
smtp.php
|
||||
-------------------
|
||||
begin : Wed May 09 2001
|
||||
copyright : (C) 2001 The phpBB Group
|
||||
email : support@phpbb.com
|
||||
@ -10,15 +10,6 @@
|
||||
|
||||
***************************************************************************/
|
||||
|
||||
/***************************************************************************
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
***************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* This script should be included if the admin has configured the board for
|
||||
* smtp mail instead of standard sendmail. It includes a function smtpmail
|
||||
|
@ -11,16 +11,6 @@
|
||||
*
|
||||
***************************************************************************/
|
||||
|
||||
/***************************************************************************
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
*
|
||||
***************************************************************************/
|
||||
|
||||
/**
|
||||
* Template class. By Nathan Codding of the phpBB group.
|
||||
* The interface was originally inspired by PHPLib templates,
|
||||
@ -472,4 +462,5 @@ class Template {
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
|
||||
?>
|
Loading…
x
Reference in New Issue
Block a user