I Can't Locate 5212 Lines of PHP Code (But it's Somewhere!)

Started by Gliq, June 11, 2010, 05:00:43 PM

Previous topic - Next topic

Gliq

I'm new to Simple Machines, and while getting it started, I found 5212 Lines of PHP Code that looks like this:
<?php
// Version: 1.1; Admin

Admin $txt[4] = 'Boards';
Admin $txt[5] = 'Members';
Admin $txt[6] = 'Newsletters';
Admin $txt[7] = 'News';
Admin $txt[8] = 'Membergroups';
Admin $txt[9] = 'Manage members';
Admin $txt[11] = 'Below is a listing of all the members currently registered with your forum.';
Admin $txt[65] = 'Next';
Admin $txt[135] = 'Censored Words';
Admin $txt[136] = 'Put the word to be censored on the left, and what to change it to on the right.';
Admin $txt[141] = 'Due to the public nature of forums there may be some words that you wish to prohibit being posted by users of your forum. You can enter any words below that you wish to be censored whenever used by a member.<br />Blank a box to remove that word.';
Admin $txt[207] = 'Reserved Names';
Admin $txt[216] = 'Edit Your Forum Template';
Admin $txt[222] = 'Server Settings';


I saved it as a text file, and now I want to change a few words here and there. I've spent hours looking, but I can't locate the file! (But it has to be somewhere!)

You can see the large file here:http://gliq.info/SimpleMachines/SMtexts.txt [nofollow]

Does anyone know where I can find that code again?

Thanks

Mick.


MrPhil

On Linux servers, there is a built-in command-line command you can use to search your entire site for a given string:
grep -R "Below is a listing of all the members currently registered" *.php
It will tell you all the files it found that string in. This command is also available separately for Windows PCs or servers (-S instead of -R).

Gliq

Quote from: bluedevil on June 11, 2010, 05:19:56 PM
Themes/default/languages/Admin.english.php
Thank you, Blue Devil,

I know I've been spending a lot of time pasting various code pages together, but I have no recollection of pasting these txt pages together (but that doesn't mean I didn't). The 5212 Lines of PHP Code is a grouping of all the files in Themes/default/languages/. When I stare at thousands of lines of code for 14 hours a day, it's easy to forget that I did this, but I haven't the slightest recollection if I did.

Anyway, the link to http://gliq.info/SimpleMachines/SMtexts.txt [nofollow] seems to be an accurate compliation of all the pages in the Themes/default/languages/ folder (whoever compiled them all) and it might be beneficial to anyone trying to find out what is where.

Thanks again,

Gliq

Gliq

Quote from: MrPhil on June 11, 2010, 05:44:23 PM
On Linux servers, there is a built-in command-line command you can use to search your entire site for a given string:
grep -R "Below is a listing of all the members currently registered" *.php
It will tell you all the files it found that string in. This command is also available separately for Windows PCs or servers (-S instead of -R).

Thanks, I'm on a Unix server, but I'll do what I can to see what they have.

Mick.

Oh wow, you put them all in one page?   Whats the purpose of that if you dont mind me asking? :o


Gliq

Quote from: bluedevil on June 11, 2010, 08:34:53 PM
Oh wow, you put them all in one page?   Whats the purpose of that if you dont mind me asking? :o

BTW, I now recollect that I did this...  And the reason...

If you recall, I wanted to change the word "Hey" to "Hello." So instead of asking every time I wanted to find something, I put everything into one file. This way, all I would have to do when I wanted to change a word, I would look at the compilation.

And because I will never give up my Netscape 4.8 (Netscape Composer), I can copy and paste all the data into that application in order to use the full find functions of IE8 ...  Here it is!

http://gliq.info/SimpleMachines/SM_TextFilles.html [nofollow]

Mick.

Gotcha.

I know what you mean.  Its hard to remember what file things reside in.


Say,..... i would put a meta robot no index there.   I'd hate to see google index a page like that off my website :o



Gliq

Ok...

Here is the header revision... http://gliq.info/SimpleMachines/SM_TextFilles.html [nofollow]

This is what I currently use... 

<META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; charset=UTF-8">
<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">
<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
<META HTTP-EQUIV="Expires" CONTENT="-1">
<META HTTP-EQUIV="EXPIRES" CONTENT="Mon, 22 Jul 1999 11:12:01 GMT">
<META NAME="ROBOTS" CONTENT="noINDEX,NOFOLLOW">
<META NAME="ROBOTS" CONTENT="NONE">
<META NAME="GOOGLEBOT" CONTENT="NOARCHIVE">


If you have any suggestions, please let me know. As it is, I have caught IE8 caching some of these pages, and nonetheless, they still go into IE8 history!

Thanks for you help!

Gliq

And although I will not post it at this time, I am working on a compilation of all the source files.

Luckily, I migrated from MS Office to Open Office which has the far, far, far superior text-to-html protocol.

My beloved Netscape 4.8 couldn't handle all the PHP squiggles, so I had to copy and paste it into Open Office. It worked like a charm.

Gotta go, and thanks again.

MrPhil

Quote from: Gliq on June 11, 2010, 08:32:31 PM
Thanks, I'm on a Unix server, but I'll do what I can to see what they have.
Linux is Unix (rewritten from scratch, SCO's claims notwithstanding). Actually, it's rare to find an actual "Unix" server these days -- almost all are Linux, with maybe a few Solaris or BSD (other Unix flavors). Bottom line: it will have "grep". The only question is whether you have a reasonably easy way to run the command line -- on my shared server I have to fire off a one-shot "cron" job to run grep.

You don't have a backup of your site on your PC? Shame, shame! It would be even easier to run "grep" locally, regardless of the OS.

QuoteIf you recall, I wanted to change the word "Hey" to "Hello." So instead of asking every time I wanted to find something, I put everything into one file. This way, all I would have to do when I wanted to change a word, I would look at the compilation.

My beloved Netscape 4.8 couldn't handle all the PHP squiggles, so I had to copy and paste it into Open Office. It worked like a charm.
LOL! Man, do you make life hard for yourself! Manually maintaining a list of text strings, rather than just looking it up when you need it? Netscape 4.8?!?!?!?!?!?

Advertisement: