Hello, my directory script showing error when anyone tries to add URL.
According to the indexu support forum the solution is as follows :
Turing Number Error
Problem
I cannot add a link, I always get "invalid turing number" error, how do I fix this?
Solution
This problem happened because of PHP 5.2.0 bug for session.
There are many other scripts that experience the same problem. But for IndexU, the solution is to add the following code in the file:
/filter/filter.start_sessi
on.php
if ($type == 'post') {
session_write_close();
}
=========
I am not sure after which line I should add the above code. The filter.start_session.php contains the following codes :
<?php
/**
*
* INDEXU
* Copyright(C), Nicecoder, 2000-2006, All Rights Reserved.
*
* INDEXU(tm) is protected by Indonesia and International copyright laws.
* Unauthorized use or distribution of INDEXU(tm) is strictly prohibited,
* violators will be prosecuted. To obtain a license for using INDEXU(tm),
* please register at Nicecoder home page at
http://www.nicecoder.com *
* Author:
* Dody Rachmat Wicaksono (dody@nicecoder.com)
* M. Zuber (zubby@nicecoder.com)
*
*/
function filter_start_session($type
= "pre", $file = "") {
if ($type == 'pre') {
if (preg_match('/opera|msie|n
etscape|fi
refox|safa
ri|konquer
or|mozilla
/msi', $_SERVER['HTTP_USER_AGENT'
])) {
if (!preg_match('/google|msn|
yahoo|craw
ler|robot/
msi', $_SERVER['HTTP_USER_AGENT'
])) {
session_cache_limiter('pri
vate, must-revalidate');
session_start();
$_SESSION['indexu_session_
username']
= $_COOKIE['COOKIE_USERNAME'
];
if (strpos($_SERVER['REQUEST_
URI'], '/admin/') !== FALSE) {
$_SESSION['indexu_session_
location']
= 'Administrator Area';
}
elseif (strpos($_SERVER['REQUEST_
URI'], '/cp/') !== FALSE) {
$_SESSION['indexu_session_
location']
= 'User Control Panel';
}
else {
$_SESSION['indexu_session_
location']
= $_SERVER['REQUEST_URI'];
}
$_SESSION['indexu_session_
ip'] = $_SERVER["REMOTE_ADDR"];
}
}
}
}
?>
Start Free Trial