Code: Select all
else
{
// this is for mypage.html
$noid = substr($query,1);
$file = str_replace(",", ".", $noid).".html"; //further use
}
$link = "<a href=\"".$file."\"";
return($link);
}
Code: Select all
else
{
// this is for mypage.html
$noid = substr($query,1);
$file = str_replace(",", ".", $noid).".html"; //further use
}
$link = "<a href=\"".$file."\"";
return($link);
}
Code: Select all
//Rewrite functions
function url_search($query)
{
$noid = substr($query, 4);
$file = str_replace(",", ".", $noid).".html"; //further use
//$file = $noid.".html";
$link = "<a href=\"".$file."\"";
return($link);
//unset($link);
}
Code: Select all
function url_search($query)
{
if ( subStr($query,0,4) == "?id=") {
$noid = substr($query, 4);
$file = str_replace(",", ".", $noid).".html";
}
else
{
// this is for mypage.html
$noid = substr($query,1);
$file = str_replace(",", ".", $noid).".html"; //further use
}
$link = "<a href=\"".$file."\"";
return($link);
}
Code: Select all
Parse error: parse error in /usr/local/www/data.default/comodin/include/inc_front/front.func.inc.php on line 1204
Warning: Cannot add header information - headers already sent by (output started at /usr/local/www/data.default/comodin/include/inc_front/front.func.inc.php:1204) in /usr/local/www/data.default/comodin/include/inc_front/content.func.inc.php on line 25
Warning: Cannot add header information - headers already sent by (output started at /usr/local/www/data.default/comodin/include/inc_front/front.func.inc.php:1204) in /usr/local/www/data.default/comodin/include/inc_front/content.func.inc.php on line 26
Warning: Cannot add header information - headers already sent by (output started at /usr/local/www/data.default/comodin/include/inc_front/front.func.inc.php:1204) in /usr/local/www/data.default/comodin/include/inc_front/content.func.inc.php on line 27
Warning: Cannot add header information - headers already sent by (output started at /usr/local/www/data.default/comodin/include/inc_front/front.func.inc.php:1204) in /usr/local/www/data.default/comodin/include/inc_front/content.func.inc.php on line 28
Warning: Cannot add header information - headers already sent by (output started at /usr/local/www/data.default/comodin/include/inc_front/front.func.inc.php:1204) in /usr/local/www/data.default/comodin/include/inc_front/content.func.inc.php on line 29
Fatal error: Call to undefined function: url_search() in /usr/local/www/data.default/comodin/index.php(71) : regexp code on line 1
Code: Select all
php_flag magic_quotes_gpc Off
php_flag register_globals Off
RewriteEngine on
RewriteBase /comodin
# This will rewrite 0.0.0.0.0.html => index.php?id=0.0.0.0.0
RewriteRule ^([0-9]*)\.([0-9]*)\.([0-9]*)\.([0-9]*)\.([0-9]*)\.([0-9]*)\.html$ /comodin/index.php?id=$1.$2.$3.$4.$5.$6
# This will rewrite mypage.html => index.php?mypage
RewriteRule ^(.*)\.html$ /comodin/index.php?$1
Code: Select all
$link = "<a href=\"".$file."\"";
Code: Select all
$link = " href=\"".$file."\"";