From 92fda1ce7c41b563c53e73bf584fdee78717d6c5 Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Sun, 26 Aug 2001 14:04:27 +0000 Subject: Modified header comments git-svn-id: file:///svn/phpbb/trunk@933 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/auth.php | 11 ---------- phpBB/includes/bbcode.php | 49 +++++++++--------------------------------- phpBB/includes/constants.php | 13 +---------- phpBB/includes/db.php | 10 --------- phpBB/includes/emailer.php | 11 +--------- phpBB/includes/message.php | 11 ---------- phpBB/includes/page_header.php | 11 ---------- phpBB/includes/page_tail.php | 11 ---------- phpBB/includes/post.php | 11 ---------- phpBB/includes/prune.php | 11 +--------- phpBB/includes/sessions.php | 12 +---------- phpBB/includes/smtp.php | 13 ++--------- phpBB/includes/template.php | 13 ++--------- 13 files changed, 18 insertions(+), 169 deletions(-) (limited to 'phpBB/includes') diff --git a/phpBB/includes/auth.php b/phpBB/includes/auth.php index 80a1909e5c..8da22c1671 100644 --- a/phpBB/includes/auth.php +++ b/phpBB/includes/auth.php @@ -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, diff --git a/phpBB/includes/bbcode.php b/phpBB/includes/bbcode.php index 528c00eba0..03e0f0fab4 100644 --- a/phpBB/includes/bbcode.php +++ b/phpBB/includes/bbcode.php @@ -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 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("#.*?#i", "\\1", $text); $text = preg_replace("#.*?#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); } - - -?> +?> \ No newline at end of file diff --git a/phpBB/includes/constants.php b/phpBB/includes/constants.php index 24011932fb..3a6d881b38 100644 --- a/phpBB/includes/constants.php +++ b/phpBB/includes/constants.php @@ -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'); -?> +?> \ No newline at end of file diff --git a/phpBB/includes/db.php b/phpBB/includes/db.php index ff1088ea50..dba00ce7ef 100644 --- a/phpBB/includes/db.php +++ b/phpBB/includes/db.php @@ -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': diff --git a/phpBB/includes/emailer.php b/phpBB/includes/emailer.php index 8be125256e..6859f33bb2 100755 --- a/phpBB/includes/emailer.php +++ b/phpBB/includes/emailer.php @@ -1,6 +1,6 @@ +?> \ No newline at end of file diff --git a/phpBB/includes/sessions.php b/phpBB/includes/sessions.php index 83f42b199a..59a52f17fe 100644 --- a/phpBB/includes/sessions.php +++ b/phpBB/includes/sessions.php @@ -1,6 +1,6 @@ + +?> \ No newline at end of file -- cgit v1.2.1