Topics
|
|
phpWebLog
|
|
Last 5 Comments
|
|
phpWebLog Addons
|
|
|
|
By Marci (---.telepac.pt) on Friday June 15 2001 @ 06:46AM EDT [ Development ] I´m found a bug in the func.inc.php in function f_GetPage:
like «pages» not have RDF and cache options this function (after modification) must be this one:
function F_getPage($A) {
global $db;
if ($A["Type"]==0) {
# html
$content = $A["Content"];
} elseif ($A["Type"]==1) {
# url fetch
$tmp = F_geturl($A["URL"]);
if (!empty($tmp)) { $content = $tmp; }
/* update db */
$sql = "UPDATE T_Pages SET Content = '" . urlencode($content) . "' ";
$sql .= "WHERE Rid = '" . $A["Rid"] . "'";
$result = @mysql_query($sql,$db);
if ($result
|
jason writes on Friday June 15 2001 @ 02:39PM EDT: [ reply | parent ]
Thanks. This section wasn't completed yet.
And actually, since there is no cache in pages now, the function can be:
function F_getPage($A) {
global $db;
if ($A["Type"]==1) {
# url fetch
$content = F_geturl($A["URL"]);
} else {
$content = urldecode($A["Content"]);
}
return $content;
}
|
marci writes on Friday June 15 2001 @ 03:52PM EDT: [ reply | parent ]
Yes ! will be more quickly
:-)
|
|
|
PHP.net
|
|
PHPBuilder
|
|
Bordom
|
|
|