Page 1 of 1

Here's the easy fix for working with linkinfo.txt

Posted: Wed Nov 30, 2005 1:22 pm
by robear
Alright, you may have noticed that if you open the linkinfo.txt with a text editor or download it to either make a back up or move to a new web host,
it wont work right with the admin page anymore.

that's because the end of each line has a return symbol (\r)

Here's my easy fix,
open index.php (the admin page)
find:

Code: Select all

if($settings['system'] == 2) {$settings['newline']="\r\n";}
elseif($settings['system'] == 3) {$settings['newline']="\r";}
else {$settings['newline']="\n";}
change to:

Code: Select all

if($settings['system'] == 2) {$settings['newline']="\n";}
elseif($settings['system'] == 3) {$settings['newline']="\n";}
else {$settings['newline']="\n";}
note that we are removing \r from the lines.

That's it! :P

:!: this works for me, use at your own risk :!:

Posted: Wed Nov 30, 2005 8:37 pm
by Klemen
I wouldn't recommend doing that. For example Mac doesn't use \n to separate lines and the entire file will be messed up.

You just need to make sure the TXT files are transferred to your server in ASCII mode and you should be ok.