|
Posted by Oli Filth on 11/18/64 11:43
comp.lang.php said the following on 27/03/2006 16:55:
> print_r("Before: "); print_r($_SESSION["${projectAcronym}_kounter"]);
> print_r("<P>");
> if (is_array($_POST) && @sizeof($_POST) > 0 && is_object($accepter)
> && @is_a($accepter, 'Accepter') && is_object($ap) && @is_a($ap,
> 'ActionPerformer') &&
> (!$accepter->isValid || !$ap->isSuccessful) &&
> (int)$_SESSION["${projectAcronym}_kounter"] >= 1
> ) {
> foreach ($_SESSION as $field) if (strpos($field, $projectAcronym)
> === 0) unset($_SESSION[$field]);
> $qs = '?sort=' . $_REQUEST['sort'] . '&willDesc=' .
> $_REQUEST['willDesc'] . '&willShowDetail=1&id=' . $_REQUEST['id'];
> $errorMsg = "<p><font color=\"#cc0000\"><b>Application display
> restarted due to too many errors, all values reset</b></font></p>";
> $qs .= '&errorMsg=' . urlencode($errorMsg);
> header('Location: ' . $_SERVER['PHP_SELF'] . $qs);
> } elseif (is_array($_POST) && @sizeof($_POST) > 0 &&
> is_object($accepter) && @is_a($accepter, 'Accepter') && is_object($ap)
> && @is_a($ap, 'ActionPerformer') &&
> (!$accepter->isValid || !$ap->isSuccessful) &&
> (int)$_SESSION["${projectAcronym}_kounter"] >= 0
> ) {
> if ((int)($_SESSION["${projectAcronym}_kounter"]) > 0)
> (int)$_SESSION["${projectAcronym}_kounter"]++; else
> $_SESSION["${projectAcronym}_kounter"] = 1;
> }
> print_r("After: ");
> print_r($_SESSION["${projectAcronym}_kounter"]); print_r("<P>");
> //--END OF "Three Strikes You're Out"
That's some of the most unreadable code I've ever seen.
--
Oli
[Back to original message]
|