doesn't support space?

Wondering why that MOD you have won't install correctly? Let's take a look
Forum rules
DO NOT give out any FTP passwords to anyone! There is no reason to do so! If you need help badly enough, create a temporary FTP account that is restricted to only the files that you need help with and give the information for that. Giving out FTP information can be very dangerous!
Locked
patrick1905
Registered User
Posts: 1
Joined: Sat Jul 23, 2005 4:38 pm

doesn't support space?

Post by patrick1905 »

I get the following message when I try to install a MOD

Code: Select all

Critical Error

FIND FAILED&#58 In file [profile.php] could not find&#58

// session id check 
if (!empty($HTTP_POST_VARS['sid']) || !empty($HTTP_GET_VARS['sid'])) 
{ 
$sid = (!empty($HTTP_POST_VARS['sid'])) ? $HTTP_POST_VARS['sid'] &#58 $HTTP_GET_VARS['sid']; 
} 
else 
{ 
$sid = ''; 
} 

MOD script line #76 &#58&#58 FAQ &#58&#58 Report
I opened profile.php and in to the mod and both times there was

Code: Select all

// session id check
if (!empty($HTTP_POST_VARS['sid']) || !empty($HTTP_GET_VARS['sid']))
{
	$sid = (!empty($HTTP_POST_VARS['sid'])) ? $HTTP_POST_VARS['sid'] &#58 $HTTP_GET_VARS['sid'];
}
else
{
	$sid = ' ';
}
The only difference I found was that there was a space at $sid = ' ';
Doesn't EasyMod support spaces? What shall I do?
ChALkeR
Registered User
Posts: 176
Joined: Tue Mar 15, 2005 4:38 pm
Location: Russia

Re: doesn't support space?

Post by ChALkeR »

EasyMod tryes to find what it was said to find.
There is no such thing as 'support spaces'

Replace in the mod file:

Code: Select all

// session id check
if (!empty($HTTP_POST_VARS['sid']) || !empty($HTTP_GET_VARS['sid']))
{
$sid = (!empty($HTTP_POST_VARS['sid'])) ? $HTTP_POST_VARS['sid'] &#58 $HTTP_GET_VARS['sid'];
}
else
{
$sid = '';
}
to

Code: Select all

// session id check
if (!empty($HTTP_POST_VARS['sid']) || !empty($HTTP_GET_VARS['sid']))
{
   $sid = (!empty($HTTP_POST_VARS['sid'])) ? $HTTP_POST_VARS['sid'] &#58 $HTTP_GET_VARS['sid'];
}
else
{
   $sid = ' ';
}
Image
Sorry for my bad English....
Locked