[PHP-DEV] Bug #11624 Updated: memory error

2001-06-23 Thread sniper

ID: 11624
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: Reproducible crash
Operating system: 
PHP Version: 4.0.6
Assigned To: 
Comments:

Fixed -> closed.


Previous Comments:
---

[2001-06-23 14:40:10] [EMAIL PROTECTED]
It works now, thanx.  All i have to do now if figure out how to get the input working.

---

[2001-06-23 06:06:56] [EMAIL PROTECTED]
Does this happen with PHP 4.0.6 ?


---

[2001-06-23 04:06:27] [EMAIL PROTECTED]
Because it happens with both submit and whatever send the polling data I think it may 
have to be in the function.php file.  Regretfully neither my friend nor I know php 
THAT well.

---

[2001-06-23 03:56:40] [EMAIL PROTECTED]
Because it happens with both submit and whatever send the polling data I think it may 
have to be in the function.php file.  Regretfully neither my friend nor I know php 
THAT well.

---

[2001-06-23 03:49:56] [EMAIL PROTECTED]
Because it happens with both submit and whatever send the polling data I think it may 
have to be in the function.php file.  Regretfully neither my friend nor I know php 
THAT well.

---

The remainder of the comments for this report are too long.  To view the rest of the 
comments, please view the bug report online.


ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=11624&edit=2


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #11624 Updated: memory error

2001-06-23 Thread Beech . 7

ID: 11624
User Update by: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Open
Bug Type: Reproducible crash
Operating system: Thanks
PHP Version: 4.0.6
Description: memory error

It works now, thanx.  All i have to do now if figure out how to get the input working.

Previous Comments:
---

[2001-06-23 06:06:56] [EMAIL PROTECTED]
Does this happen with PHP 4.0.6 ?


---

[2001-06-23 04:06:27] [EMAIL PROTECTED]
Because it happens with both submit and whatever send the polling data I think it may 
have to be in the function.php file.  Regretfully neither my friend nor I know php 
THAT well.

---

[2001-06-23 03:56:40] [EMAIL PROTECTED]
Because it happens with both submit and whatever send the polling data I think it may 
have to be in the function.php file.  Regretfully neither my friend nor I know php 
THAT well.

---

[2001-06-23 03:49:56] [EMAIL PROTECTED]
Because it happens with both submit and whatever send the polling data I think it may 
have to be in the function.php file.  Regretfully neither my friend nor I know php 
THAT well.

---

[2001-06-23 03:48:29] [EMAIL PROTECTED]


---

The remainder of the comments for this report are too long.  To view the rest of the 
comments, please view the bug report online.

Full Bug description available at: http://bugs.php.net/?id=11624


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #11624 Updated: memory error

2001-06-23 Thread sniper

ID: 11624
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Feedback
Bug Type: Reproducible crash
Operating system: 
PHP Version: 4.0.5
Assigned To: 
Comments:

Does this happen with PHP 4.0.6 ?


Previous Comments:
---

[2001-06-23 04:06:27] [EMAIL PROTECTED]
Because it happens with both submit and whatever send the polling data I think it may 
have to be in the function.php file.  Regretfully neither my friend nor I know php 
THAT well.

---

[2001-06-23 03:56:40] [EMAIL PROTECTED]
Because it happens with both submit and whatever send the polling data I think it may 
have to be in the function.php file.  Regretfully neither my friend nor I know php 
THAT well.

---

[2001-06-23 03:49:56] [EMAIL PROTECTED]
Because it happens with both submit and whatever send the polling data I think it may 
have to be in the function.php file.  Regretfully neither my friend nor I know php 
THAT well.

---

[2001-06-23 03:48:29] [EMAIL PROTECTED]


---

[2001-06-23 03:46:39] [EMAIL PROTECTED]
http://totalentropy.org/";;  /* Full URL of this site WITH TRAILING 
SLASH (i.e., "http://wonko.com/";) */
$site_path   = "/";  /* Relative path to the site's root directory 
under the domain */
$site_title  = "PHPSlice";   /* Title of the site */
$site_logo   = "logo.jpg";   /* Filename of the site's logo (should be 
located in /images) */

$site_button = "http://www.totalentropy.org/images/mysite.gif";; /* 88x31 button 
for this site */
$site_desc   = "Lazy == Good.";  /* Description of the site */

$admin_name  = "Einstein";/* Name of the site administrator (you) */
$admin_email = "[EMAIL PROTECTED]";/* Email address of the site administrator */

/* Anonymous User Settings */
/* (these have no effect yet) */
$anon_nick   = "Anonymous Poo"; /* Nickname of the anonymous user */
$anon_access = 5;   /* Access level of the anonymous user */
$anon_id = 1;   /* User ID of the anonymous user */

/* Theme Settings */
$themes = array();
$site_theme  = "PHPSlice";  /* Name of the default theme for this site */

$themes["PHPSlice"] = "phpslice.php";   /* Themes array usage: $themes[] = 
""; */

/* Database Settings */
$db_hostname = "localhost"; /* Name/IP of the SQL server */
$db_username = "";  /* Username with access to the database */
$db_password = "";  /* Password for the specified user */
$db_name = "phpslice";  /* Name of the database to use */

$db_type = 2;   /* Type of database to use
   1 = Microsoft SQL Server 7.0/2000
   2 = MySQL
*/


/***
*
* Initialization
*
/

/* Load the db functions for the database specified by $db_type */
switch($db_type) {
case 1: /* MSSQL */
include("lib/db_mssql.php");
break;

case 2: /* MySQL */
include("lib/db_mysql.php");
break;

/* not in this release

case 3:
include("lib/db_pgsql.php");
break;

case 4:
include("lib/db_msql.php");
break;
*/
}

/* Load the layout template */
//if (isset($HTTP_COOKIE_VARS["theme"]))
//$layout = $HTTP_COOKIE_VARS["theme"];
//else
$layout = $site_theme;

include("lib/templates/".$themes[$layout]);



/***
*
* Miscellaneous functions
*
/

// Check if the user has access to this page; if not, redirect to front
function checkAccess($level) {
global $userinfo, $site_url;

if (!$userinfo["access"] >= $level) {
header("Location: $site_url");
exit;
}
}

// Check if the user is logged in; if not, redirect to front
function checkAuth() {
global $userinfo, $site_url;

if ($userinfo["user_id"] == 1) {
Header("Location: $site_url");
exit;
}
}

function fixQuotes($string) {
$string = str_replace("'", "''", $string);

return $string;
}

/* Strip all invalid HTML and PHP tags from the given string, convert quotes, etc. */
function makeNice($string) {
/* List of allowed tags */
$allowed = 
",,,";

$string = strip_tags($string, $allowed);

return $string;
}

/* Stricter version of the above, strips EVE

[PHP-DEV] Bug #11624 Updated: memory error

2001-06-23 Thread Beech . 7

ID: 11624
User Update by: [EMAIL PROTECTED]
Status: Open
Bug Type: Reproducible crash
Operating system: What I think...
PHP Version: 4.0.5
Description: memory error

Because it happens with both submit and whatever send the polling data I think it may 
have to be in the function.php file.  Regretfully neither my friend nor I know php 
THAT well.

Previous Comments:
---

[2001-06-23 03:56:40] [EMAIL PROTECTED]
Because it happens with both submit and whatever send the polling data I think it may 
have to be in the function.php file.  Regretfully neither my friend nor I know php 
THAT well.

---

[2001-06-23 03:49:56] [EMAIL PROTECTED]
Because it happens with both submit and whatever send the polling data I think it may 
have to be in the function.php file.  Regretfully neither my friend nor I know php 
THAT well.

---

[2001-06-23 03:48:29] [EMAIL PROTECTED]


---

[2001-06-23 03:46:39] [EMAIL PROTECTED]
http://totalentropy.org/";;  /* Full URL of this site WITH TRAILING 
SLASH (i.e., "http://wonko.com/";) */
$site_path   = "/";  /* Relative path to the site's root directory 
under the domain */
$site_title  = "PHPSlice";   /* Title of the site */
$site_logo   = "logo.jpg";   /* Filename of the site's logo (should be 
located in /images) */

$site_button = "http://www.totalentropy.org/images/mysite.gif";; /* 88x31 button 
for this site */
$site_desc   = "Lazy == Good.";  /* Description of the site */

$admin_name  = "Einstein";/* Name of the site administrator (you) */
$admin_email = "[EMAIL PROTECTED]";/* Email address of the site administrator */

/* Anonymous User Settings */
/* (these have no effect yet) */
$anon_nick   = "Anonymous Poo"; /* Nickname of the anonymous user */
$anon_access = 5;   /* Access level of the anonymous user */
$anon_id = 1;   /* User ID of the anonymous user */

/* Theme Settings */
$themes = array();
$site_theme  = "PHPSlice";  /* Name of the default theme for this site */

$themes["PHPSlice"] = "phpslice.php";   /* Themes array usage: $themes[] = 
""; */

/* Database Settings */
$db_hostname = "localhost"; /* Name/IP of the SQL server */
$db_username = "";  /* Username with access to the database */
$db_password = "";  /* Password for the specified user */
$db_name = "phpslice";  /* Name of the database to use */

$db_type = 2;   /* Type of database to use
   1 = Microsoft SQL Server 7.0/2000
   2 = MySQL
*/


/***
*
* Initialization
*
/

/* Load the db functions for the database specified by $db_type */
switch($db_type) {
case 1: /* MSSQL */
include("lib/db_mssql.php");
break;

case 2: /* MySQL */
include("lib/db_mysql.php");
break;

/* not in this release

case 3:
include("lib/db_pgsql.php");
break;

case 4:
include("lib/db_msql.php");
break;
*/
}

/* Load the layout template */
//if (isset($HTTP_COOKIE_VARS["theme"]))
//$layout = $HTTP_COOKIE_VARS["theme"];
//else
$layout = $site_theme;

include("lib/templates/".$themes[$layout]);



/***
*
* Miscellaneous functions
*
/

// Check if the user has access to this page; if not, redirect to front
function checkAccess($level) {
global $userinfo, $site_url;

if (!$userinfo["access"] >= $level) {
header("Location: $site_url");
exit;
}
}

// Check if the user is logged in; if not, redirect to front
function checkAuth() {
global $userinfo, $site_url;

if ($userinfo["user_id"] == 1) {
Header("Location: $site_url");
exit;
}
}

function fixQuotes($string) {
$string = str_replace("'", "''", $string);

return $string;
}

/* Strip all invalid HTML and PHP tags from the given string, convert quotes, etc. */
function makeNice($string) {
/* List of allowed tags */
$allowed = 
",,,";

$string = strip_tags($string, $allowed);

return $string;
}

/* Stricter version of the above, strips EVERYTHING it possibly can */
function makeReallyNice($string) {
$trans = get_html_translation_table(HTML_ENTITIES);
$trans["&"] = "&";
$trans["  "] = "  ";
   

[PHP-DEV] Bug #11624 Updated: memory error

2001-06-23 Thread Beech . 7

ID: 11624
User Update by: [EMAIL PROTECTED]
Status: Open
Bug Type: Reproducible crash
Operating system: What I think...
PHP Version: 4.0.5
Description: memory error

Because it happens with both submit and whatever send the polling data I think it may 
have to be in the function.php file.  Regretfully neither my friend nor I know php 
THAT well.

Previous Comments:
---

[2001-06-23 03:49:56] [EMAIL PROTECTED]
Because it happens with both submit and whatever send the polling data I think it may 
have to be in the function.php file.  Regretfully neither my friend nor I know php 
THAT well.

---

[2001-06-23 03:48:29] [EMAIL PROTECTED]


---

[2001-06-23 03:46:39] [EMAIL PROTECTED]
http://totalentropy.org/";;  /* Full URL of this site WITH TRAILING 
SLASH (i.e., "http://wonko.com/";) */
$site_path   = "/";  /* Relative path to the site's root directory 
under the domain */
$site_title  = "PHPSlice";   /* Title of the site */
$site_logo   = "logo.jpg";   /* Filename of the site's logo (should be 
located in /images) */

$site_button = "http://www.totalentropy.org/images/mysite.gif";; /* 88x31 button 
for this site */
$site_desc   = "Lazy == Good.";  /* Description of the site */

$admin_name  = "Einstein";/* Name of the site administrator (you) */
$admin_email = "[EMAIL PROTECTED]";/* Email address of the site administrator */

/* Anonymous User Settings */
/* (these have no effect yet) */
$anon_nick   = "Anonymous Poo"; /* Nickname of the anonymous user */
$anon_access = 5;   /* Access level of the anonymous user */
$anon_id = 1;   /* User ID of the anonymous user */

/* Theme Settings */
$themes = array();
$site_theme  = "PHPSlice";  /* Name of the default theme for this site */

$themes["PHPSlice"] = "phpslice.php";   /* Themes array usage: $themes[] = 
""; */

/* Database Settings */
$db_hostname = "localhost"; /* Name/IP of the SQL server */
$db_username = "";  /* Username with access to the database */
$db_password = "";  /* Password for the specified user */
$db_name = "phpslice";  /* Name of the database to use */

$db_type = 2;   /* Type of database to use
   1 = Microsoft SQL Server 7.0/2000
   2 = MySQL
*/


/***
*
* Initialization
*
/

/* Load the db functions for the database specified by $db_type */
switch($db_type) {
case 1: /* MSSQL */
include("lib/db_mssql.php");
break;

case 2: /* MySQL */
include("lib/db_mysql.php");
break;

/* not in this release

case 3:
include("lib/db_pgsql.php");
break;

case 4:
include("lib/db_msql.php");
break;
*/
}

/* Load the layout template */
//if (isset($HTTP_COOKIE_VARS["theme"]))
//$layout = $HTTP_COOKIE_VARS["theme"];
//else
$layout = $site_theme;

include("lib/templates/".$themes[$layout]);



/***
*
* Miscellaneous functions
*
/

// Check if the user has access to this page; if not, redirect to front
function checkAccess($level) {
global $userinfo, $site_url;

if (!$userinfo["access"] >= $level) {
header("Location: $site_url");
exit;
}
}

// Check if the user is logged in; if not, redirect to front
function checkAuth() {
global $userinfo, $site_url;

if ($userinfo["user_id"] == 1) {
Header("Location: $site_url");
exit;
}
}

function fixQuotes($string) {
$string = str_replace("'", "''", $string);

return $string;
}

/* Strip all invalid HTML and PHP tags from the given string, convert quotes, etc. */
function makeNice($string) {
/* List of allowed tags */
$allowed = 
",,,";

$string = strip_tags($string, $allowed);

return $string;
}

/* Stricter version of the above, strips EVERYTHING it possibly can */
function makeReallyNice($string) {
$trans = get_html_translation_table(HTML_ENTITIES);
$trans["&"] = "&";
$trans["  "] = "  ";
$trans["   "] = "   ";

$string = strtr($string, $trans);

return $string;
}


/***
*
* Handle poll votes
*
/

if (isset($HTTP_POST_VARS["poll"])) {
$pid = $HTTP_POST_VARS["pid"];
$vo

[PHP-DEV] Bug #11624 Updated: memory error

2001-06-23 Thread Beech . 7

ID: 11624
User Update by: [EMAIL PROTECTED]
Status: Open
Bug Type: Reproducible crash
Operating system: What I think...
PHP Version: 4.0.5
Description: memory error

Because it happens with both submit and whatever send the polling data I think it may 
have to be in the function.php file.  Regretfully neither my friend nor I know php 
THAT well.

Previous Comments:
---

[2001-06-23 03:48:29] [EMAIL PROTECTED]


---

[2001-06-23 03:46:39] [EMAIL PROTECTED]
http://totalentropy.org/";;  /* Full URL of this site WITH TRAILING 
SLASH (i.e., "http://wonko.com/";) */
$site_path   = "/";  /* Relative path to the site's root directory 
under the domain */
$site_title  = "PHPSlice";   /* Title of the site */
$site_logo   = "logo.jpg";   /* Filename of the site's logo (should be 
located in /images) */

$site_button = "http://www.totalentropy.org/images/mysite.gif";; /* 88x31 button 
for this site */
$site_desc   = "Lazy == Good.";  /* Description of the site */

$admin_name  = "Einstein";/* Name of the site administrator (you) */
$admin_email = "[EMAIL PROTECTED]";/* Email address of the site administrator */

/* Anonymous User Settings */
/* (these have no effect yet) */
$anon_nick   = "Anonymous Poo"; /* Nickname of the anonymous user */
$anon_access = 5;   /* Access level of the anonymous user */
$anon_id = 1;   /* User ID of the anonymous user */

/* Theme Settings */
$themes = array();
$site_theme  = "PHPSlice";  /* Name of the default theme for this site */

$themes["PHPSlice"] = "phpslice.php";   /* Themes array usage: $themes[] = 
""; */

/* Database Settings */
$db_hostname = "localhost"; /* Name/IP of the SQL server */
$db_username = "";  /* Username with access to the database */
$db_password = "";  /* Password for the specified user */
$db_name = "phpslice";  /* Name of the database to use */

$db_type = 2;   /* Type of database to use
   1 = Microsoft SQL Server 7.0/2000
   2 = MySQL
*/


/***
*
* Initialization
*
/

/* Load the db functions for the database specified by $db_type */
switch($db_type) {
case 1: /* MSSQL */
include("lib/db_mssql.php");
break;

case 2: /* MySQL */
include("lib/db_mysql.php");
break;

/* not in this release

case 3:
include("lib/db_pgsql.php");
break;

case 4:
include("lib/db_msql.php");
break;
*/
}

/* Load the layout template */
//if (isset($HTTP_COOKIE_VARS["theme"]))
//$layout = $HTTP_COOKIE_VARS["theme"];
//else
$layout = $site_theme;

include("lib/templates/".$themes[$layout]);



/***
*
* Miscellaneous functions
*
/

// Check if the user has access to this page; if not, redirect to front
function checkAccess($level) {
global $userinfo, $site_url;

if (!$userinfo["access"] >= $level) {
header("Location: $site_url");
exit;
}
}

// Check if the user is logged in; if not, redirect to front
function checkAuth() {
global $userinfo, $site_url;

if ($userinfo["user_id"] == 1) {
Header("Location: $site_url");
exit;
}
}

function fixQuotes($string) {
$string = str_replace("'", "''", $string);

return $string;
}

/* Strip all invalid HTML and PHP tags from the given string, convert quotes, etc. */
function makeNice($string) {
/* List of allowed tags */
$allowed = 
",,,";

$string = strip_tags($string, $allowed);

return $string;
}

/* Stricter version of the above, strips EVERYTHING it possibly can */
function makeReallyNice($string) {
$trans = get_html_translation_table(HTML_ENTITIES);
$trans["&"] = "&";
$trans["  "] = "  ";
$trans["   "] = "   ";

$string = strtr($string, $trans);

return $string;
}


/***
*
* Handle poll votes
*
/

if (isset($HTTP_POST_VARS["poll"])) {
$pid = $HTTP_POST_VARS["pid"];
$vote = $HTTP_POST_VARS["vote"];

postVote($userinfo["user_id"], $pid, $vote, $REMOTE_ADDR);
}

/***
*
* Handle theme changes
*
/

if (isset($HTTP_POST_VARS["themeop"]))
setcookie("theme", $HTTP_POST

[PHP-DEV] Bug #11624 Updated: memory error

2001-06-23 Thread Beech . 7

ID: 11624
User Update by: [EMAIL PROTECTED]
Status: Open
Bug Type: Reproducible crash
Operating system: the submit.php file
PHP Version: 4.0.5
Description: memory error



Previous Comments:
---

[2001-06-23 03:46:39] [EMAIL PROTECTED]
http://totalentropy.org/";;  /* Full URL of this site WITH TRAILING 
SLASH (i.e., "http://wonko.com/";) */
$site_path   = "/";  /* Relative path to the site's root directory 
under the domain */
$site_title  = "PHPSlice";   /* Title of the site */
$site_logo   = "logo.jpg";   /* Filename of the site's logo (should be 
located in /images) */

$site_button = "http://www.totalentropy.org/images/mysite.gif";; /* 88x31 button 
for this site */
$site_desc   = "Lazy == Good.";  /* Description of the site */

$admin_name  = "Einstein";/* Name of the site administrator (you) */
$admin_email = "[EMAIL PROTECTED]";/* Email address of the site administrator */

/* Anonymous User Settings */
/* (these have no effect yet) */
$anon_nick   = "Anonymous Poo"; /* Nickname of the anonymous user */
$anon_access = 5;   /* Access level of the anonymous user */
$anon_id = 1;   /* User ID of the anonymous user */

/* Theme Settings */
$themes = array();
$site_theme  = "PHPSlice";  /* Name of the default theme for this site */

$themes["PHPSlice"] = "phpslice.php";   /* Themes array usage: $themes[] = 
""; */

/* Database Settings */
$db_hostname = "localhost"; /* Name/IP of the SQL server */
$db_username = "";  /* Username with access to the database */
$db_password = "";  /* Password for the specified user */
$db_name = "phpslice";  /* Name of the database to use */

$db_type = 2;   /* Type of database to use
   1 = Microsoft SQL Server 7.0/2000
   2 = MySQL
*/


/***
*
* Initialization
*
/

/* Load the db functions for the database specified by $db_type */
switch($db_type) {
case 1: /* MSSQL */
include("lib/db_mssql.php");
break;

case 2: /* MySQL */
include("lib/db_mysql.php");
break;

/* not in this release

case 3:
include("lib/db_pgsql.php");
break;

case 4:
include("lib/db_msql.php");
break;
*/
}

/* Load the layout template */
//if (isset($HTTP_COOKIE_VARS["theme"]))
//$layout = $HTTP_COOKIE_VARS["theme"];
//else
$layout = $site_theme;

include("lib/templates/".$themes[$layout]);



/***
*
* Miscellaneous functions
*
/

// Check if the user has access to this page; if not, redirect to front
function checkAccess($level) {
global $userinfo, $site_url;

if (!$userinfo["access"] >= $level) {
header("Location: $site_url");
exit;
}
}

// Check if the user is logged in; if not, redirect to front
function checkAuth() {
global $userinfo, $site_url;

if ($userinfo["user_id"] == 1) {
Header("Location: $site_url");
exit;
}
}

function fixQuotes($string) {
$string = str_replace("'", "''", $string);

return $string;
}

/* Strip all invalid HTML and PHP tags from the given string, convert quotes, etc. */
function makeNice($string) {
/* List of allowed tags */
$allowed = 
",,,";

$string = strip_tags($string, $allowed);

return $string;
}

/* Stricter version of the above, strips EVERYTHING it possibly can */
function makeReallyNice($string) {
$trans = get_html_translation_table(HTML_ENTITIES);
$trans["&"] = "&";
$trans["  "] = "  ";
$trans["   "] = "   ";

$string = strtr($string, $trans);

return $string;
}


/***
*
* Handle poll votes
*
/

if (isset($HTTP_POST_VARS["poll"])) {
$pid = $HTTP_POST_VARS["pid"];
$vote = $HTTP_POST_VARS["vote"];

postVote($userinfo["user_id"], $pid, $vote, $REMOTE_ADDR);
}

/***
*
* Handle theme changes
*
/

if (isset($HTTP_POST_VARS["themeop"]))
setcookie("theme", $HTTP_POST_VARS["theme"], time() + 63072000);

?>

---

[2001-06-23 03:44:56] [EMAIL PROTECTED]
[error] [client 65.24.178.139] Premature end of script headers: c:/php/php.exe


[PHP-DEV] Bug #11624 Updated: memory error

2001-06-23 Thread Beech . 7

ID: 11624
User Update by: [EMAIL PROTECTED]
Status: Open
Bug Type: Reproducible crash
Operating system: the funtion.php file
PHP Version: 4.0.5
Description: memory error

http://totalentropy.org/";;  /* Full URL of this site WITH TRAILING 
SLASH (i.e., "http://wonko.com/";) */
$site_path   = "/";  /* Relative path to the site's root directory 
under the domain */
$site_title  = "PHPSlice";   /* Title of the site */
$site_logo   = "logo.jpg";   /* Filename of the site's logo (should be 
located in /images) */

$site_button = "http://www.totalentropy.org/images/mysite.gif";; /* 88x31 button 
for this site */
$site_desc   = "Lazy == Good.";  /* Description of the site */

$admin_name  = "Einstein";/* Name of the site administrator (you) */
$admin_email = "[EMAIL PROTECTED]";/* Email address of the site administrator */

/* Anonymous User Settings */
/* (these have no effect yet) */
$anon_nick   = "Anonymous Poo"; /* Nickname of the anonymous user */
$anon_access = 5;   /* Access level of the anonymous user */
$anon_id = 1;   /* User ID of the anonymous user */

/* Theme Settings */
$themes = array();
$site_theme  = "PHPSlice";  /* Name of the default theme for this site */

$themes["PHPSlice"] = "phpslice.php";   /* Themes array usage: $themes[] = 
""; */

/* Database Settings */
$db_hostname = "localhost"; /* Name/IP of the SQL server */
$db_username = "";  /* Username with access to the database */
$db_password = "";  /* Password for the specified user */
$db_name = "phpslice";  /* Name of the database to use */

$db_type = 2;   /* Type of database to use
   1 = Microsoft SQL Server 7.0/2000
   2 = MySQL
*/


/***
*
* Initialization
*
/

/* Load the db functions for the database specified by $db_type */
switch($db_type) {
case 1: /* MSSQL */
include("lib/db_mssql.php");
break;

case 2: /* MySQL */
include("lib/db_mysql.php");
break;

/* not in this release

case 3:
include("lib/db_pgsql.php");
break;

case 4:
include("lib/db_msql.php");
break;
*/
}

/* Load the layout template */
//if (isset($HTTP_COOKIE_VARS["theme"]))
//$layout = $HTTP_COOKIE_VARS["theme"];
//else
$layout = $site_theme;

include("lib/templates/".$themes[$layout]);



/***
*
* Miscellaneous functions
*
/

// Check if the user has access to this page; if not, redirect to front
function checkAccess($level) {
global $userinfo, $site_url;

if (!$userinfo["access"] >= $level) {
header("Location: $site_url");
exit;
}
}

// Check if the user is logged in; if not, redirect to front
function checkAuth() {
global $userinfo, $site_url;

if ($userinfo["user_id"] == 1) {
Header("Location: $site_url");
exit;
}
}

function fixQuotes($string) {
$string = str_replace("'", "''", $string);

return $string;
}

/* Strip all invalid HTML and PHP tags from the given string, convert quotes, etc. */
function makeNice($string) {
/* List of allowed tags */
$allowed = 
",,,";

$string = strip_tags($string, $allowed);

return $string;
}

/* Stricter version of the above, strips EVERYTHING it possibly can */
function makeReallyNice($string) {
$trans = get_html_translation_table(HTML_ENTITIES);
$trans["&"] = "&";
$trans["  "] = "  ";
$trans["   "] = "   ";

$string = strtr($string, $trans);

return $string;
}


/***
*
* Handle poll votes
*
/

if (isset($HTTP_POST_VARS["poll"])) {
$pid = $HTTP_POST_VARS["pid"];
$vote = $HTTP_POST_VARS["vote"];

postVote($userinfo["user_id"], $pid, $vote, $REMOTE_ADDR);
}

/***
*
* Handle theme changes
*
/

if (isset($HTTP_POST_VARS["themeop"]))
setcookie("theme", $HTTP_POST_VARS["theme"], time() + 63072000);

?>

Previous Comments:
---

[2001-06-23 03:44:56] [EMAIL PROTECTED]
[error] [client 65.24.178.139] Premature end of script headers: c:/php/php.exe

---

[2001-06-23 02:58:44] [EMAIL PROTECTED]
i believe this is one of the scripts that may be causing 

[PHP-DEV] Bug #11624 Updated: memory error

2001-06-23 Thread Beech . 7

ID: 11624
User Update by: [EMAIL PROTECTED]
Status: Open
Bug Type: Reproducible crash
Operating system: Error log reporting
PHP Version: 4.0.5
Description: memory error

[error] [client 65.24.178.139] Premature end of script headers: c:/php/php.exe

Previous Comments:
---

[2001-06-23 02:58:44] [EMAIL PROTECTED]
i believe this is one of the scripts that may be causing an error, but i find nothing.



---

[2001-06-23 02:53:49] [EMAIL PROTECTED]
I get the below error anytime anyone tries to submit either news or tries to vote on 
my site (www.totalentropy.org).  Regretfully I am not able to find the precise script 
at the moment (as it is 3 am and i am fscking tired).  Best I can say is that it 
ALWAYS happens.  Thanks.

The instruction at "0x10091ceb" referenced memory at "0x".  The memory could 
not be "read".


---


Full Bug description available at: http://bugs.php.net/?id=11624


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #11624 Updated: memory error

2001-06-23 Thread Beech . 7

ID: 11624
User Update by: [EMAIL PROTECTED]
Status: Open
Bug Type: Reproducible crash
Operating system: Windows2000 Proffesional SP1
PHP Version: 4.0.5
Description: memory error

i believe this is one of the scripts that may be causing an error, but i find nothing.



Previous Comments:
---

[2001-06-23 02:53:49] [EMAIL PROTECTED]
I get the below error anytime anyone tries to submit either news or tries to vote on 
my site (www.totalentropy.org).  Regretfully I am not able to find the precise script 
at the moment (as it is 3 am and i am fscking tired).  Best I can say is that it 
ALWAYS happens.  Thanks.

The instruction at "0x10091ceb" referenced memory at "0x".  The memory could 
not be "read".


---


Full Bug description available at: http://bugs.php.net/?id=11624


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]