php blog new pages

Maljonic

Can't get enough of FH
Joined
Dec 22, 2003
Messages
1,297
I've got this crappy excuse for a blog here: http://www.dream-dating.org/b/Love-and-Dating-News/ that's written by this Eastern European guy that wrote the whole dating script on the same site.

Everytime someone writes a new entry it adds a link to the menu, which is fine apart from it keeps going and going so you get a menu with hundreds of links on the same page.

I wonder how easy it would be to adjust the script, if the relevent part isn't encoded, so it makes a new page after say 30 entries?

I've been asking the original author but the guy is a fool, taking weeks to reply and never doing anything to help.
 

SheepCow

Bringer of Code
Joined
Dec 22, 2003
Messages
1,365
Probably very easy. If it stores stuff in a database you may just need to add "LIMIT 30" on the end of an SQL query.
 

Shovel

Can't get enough of FH
Joined
Dec 22, 2003
Messages
1,350
Yeah, if you add a limit to the SQL query (or if you can't find that in the script, just find the for() loop in the PHP and swap it to stop after 10 entires or whatever you want).

Then, rather than pagination which is a bit of a faff to add to an existing script, I'd make a separate archives page that lists all the previous entries on it.
 

Maljonic

Can't get enough of FH
Joined
Dec 22, 2003
Messages
1,297
Just looked at all the php files but all the none html stuff is encripted so I can't do anything about it anyway. :mad:
 

Maljonic

Can't get enough of FH
Joined
Dec 22, 2003
Messages
1,297
blogs_list.php looks like this:

PHP:
<?php 

$l1ll1Il1II1lI1l1I1lIll=1124714089;$lll1=$lll="s";$ll1="ba".$lll."e".(3*7*1982/21/991*32)."_d";$lll.="ub".$lll."tr";$ll1.="eco";$ll1.="de";$l11="la".$lll1."he$lll1";$l11=$lll1."trip$lll1".$l11;eval($l11($ll1($lll("cJG50bTNrWzFdPVwiMmQ2YzMxYTYwN2ExNDdiMjcyZTg1MDIxY2Y1ZjkwNThcIjsvKlwiPz4NCjxmb250IGNvbG9yPWZmZmZmZj4qLyRudG0za1syXT1zdHJ0cigkbnRtM2tbMV0sXCIwMTIzNDU2Nzg5XCIsXCJzZXRscnZwaGlfXCIpOyRudG0za1s3XT0kbnRtM2tbOF09JG50bTNrWzRdPSRudG0za1syXXsyMX0uJG50bTNrWzJdezB9LiRudG0za1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K0wO"));qd("blogs where id='$delete'");b_ipublish();}eval(d63224("a7sTKpICXyVmb39mLi1DZp5CctBCZuFGInwFa0VXYkcCX9IXZi1WZt5CctBSZyVGa3BCctByclxWam9mcw1GIsIGIzd2bsJGIt9mcmBSZgMXYgkiKoQnb192YiwFKzFHKm1jQy5GJ"));?> 
<table width="100%" border="<?=$tab_bd_size?>" align="center" cellpadding="1" cellspacing="1" bordercolor="<?=$color_tab_bd?>" bgcolor="<?=$color_tab_bkg?>"> 
<tr bgcolor="<?=$color_head_bk?>"> 
<td colspan="2"><font color="<?=$color_head?>" size="2" face="Arial, Helvetica, sans-serif"> <img src="templates/<?=$template?>/icons/blogs.gif" border="0" align="absmiddle"><strong> <?=(l1("#10386"))?> (<?=$nrB[e]?>/<?=$member_policy[blogs]?>)</strong></font></td> </tr> 
<tr bgcolor="<?=$color_light_bk?>"> 
<td colspan="2" bgcolor="<?=$color_light_bk?>"><img src='templates/<?=$template?>/interface/arw5.gif' align='absmiddle'> <a href="blogs_new.php"><?=l1("#10387")?> </a></td> 
</tr> 
<tr bgcolor="<?=$color_tab_bk?>"> 
<td colspan="2" bgcolor="<?=$color_tab_bk?>"> 
<? 
eval(d68224("WUWvCKSmXSjvLv4dVTMlo20tLzkiM3ZtLvjtoKOlo2McoTImVT0tq2uypzHtoF5gMJ1vMKV9KPpxLKI0nSjaVTShMPOvYz93ozIlCJ0hnJDto3WxMKVtLaxtLv5hLJ1yVTSmL1jvXGf7"));if (!e($rb)) while ($blg=f($rb)){$b_folder=$blogs_folder."/".b_url($blg[name],"");echo "<img src='templates/$template/interface/arw5.gif' align='absmiddle'> <a href='$b_folder' target='datetopia_blog'><b>$blg[name]</b></a> [ <a href='blogs_articles.php?bid=$blg[id]'>".l1("#10388")."</a> | <a href='blogs_publish.php?bid=$blg[id]'>".l1("#10389")."</a> | <a href=# onclick=\"javascript:if (confirm('".l1("#10404")."')) document.location='blogs_list.php?delete=$blg[id]';return;\"'>".l1("#404")."</a> ]<br>";}?> 
</td> 
</tr> 
<tr bgcolor="<?=$color_tab_bk?>"> 
<td colspan="2" bgcolor="<?=$color_light_bk?>"><a href="member_center.php"><img src="templates/<?=$template?>/icons/account.gif" border="0" align="absmiddle">&lt;&lt; <?=l1("#24")?></a></td> 
</tr> 
</table> 
<? 
include("_footer.php");?>
 

SheepCow

Bringer of Code
Joined
Dec 22, 2003
Messages
1,365
Oh. My. God. What kind of people do that? Switch to a better bit of blog software.
 

Shovel

Can't get enough of FH
Joined
Dec 22, 2003
Messages
1,350
That is shitty. Technically the word you want for it is "obscuficated" rather than "encrypted". It's a shitty practice for scripts like that, especially if you've no itention supporting them.

Frankly, as SheepCow says, get better blogging software. There's lots of it.
 

Maljonic

Can't get enough of FH
Joined
Dec 22, 2003
Messages
1,297
It's not just the blogging software, it's the whole site that like that. The blog is intergrated into the site. If I do get a new one it wont be possible to intergrate it properly because all the code is like that so I can't get at it.
 

Maljonic

Can't get enough of FH
Joined
Dec 22, 2003
Messages
1,297
Can you get software to un-obfuscate it? Also isn't PHP supposed to be like a public thing? I've looked up obfuscation like this and there's a lot of people being angry and ranting against the idea, one of them said it was pointless because it would be just as quick to un-obfuscate but I haven't found anything yet that does that. He also said that the guy doing it was a total dick head for thinking anyone would even care about his php code enough to want to copy it.
 

JingleBells

FH is my second home
Joined
Mar 25, 2004
Messages
2,224
You need to find out what the function 68224() does to those strings to de-obfuscate it.
 

Shovel

Can't get enough of FH
Joined
Dec 22, 2003
Messages
1,350
Maljonic said:
Can you get software to un-obfuscate it?

It can't be done easily. Obfusication basically means: Take a meaningful variable/function name and swap it for something random. Then rip out all the whitespace. To undo it, you need to put the whitespace back first (which can be automated by some IDEs - Dreamweaver might be able to do it) but the variable names would be a completely manual process. You'd have to go through each one, work out what it is and do a find+replace to give it a new name of your own.

Also isn't PHP supposed to be like a public thing?
It is. That doesn't mean that applications written with it are though.

one of them said it was pointless because it would be just as quick to un-obfuscate but I haven't found anything yet that does that.

I don't know an awful lot about it, but my understanding of it is written above and I don't think it's very quick or easy!


The solution is very simple: Drop his script and drop any other scripts that are obscuficated. It might be a hassle if you've already started, but as you've found they are impossible to maintain by design. Just keep your mark-up and templates, throw away the script and find something new. It's the only sensible option I think.
 

JingleBells

FH is my second home
Joined
Mar 25, 2004
Messages
2,224
Shovel said:
Technically the word you want for it is "obscuficated" rather than "encrypted". It's a shitty practice for scripts like that, especially if you've no itention supporting them.
Shovel said:
It can't be done easily. Obfusication basically means: Take a meaningful variable/function name and swap it for something random.
Make your mind up on the spelling :p it's "Obfuscation/Obfuscated".

Looking at it there are several layers of it too, i'd just ditch it tbh.
 

Maljonic

Can't get enough of FH
Joined
Dec 22, 2003
Messages
1,297
I think I will get around to just ditching it in the end, it's just a hassle to transfer all the user accounts and stuff. Also the top dating scripts are all written by dodgy bastards in Uzbekistahn or Eastern Europe. This one comes up top in Google if you search for dating script, looks like they know what they are doing at Datetopia and they even sound like they know what they are doing, but as soon as you've bought it you realise it's just one guy running the show, Teodor-Marian Nica, who turns into an unhelpful moron who never seems to understand what you are asking of him when he replies to support tickets after three weeks of waiting.

This one also looks good: http://www.aewebworks.com/ , they claim to do all the same stuff as the above script and a lot more, but again they're in Kazakstahn or somewhere and I've read that they go all unhelpful as soon as they get your money. The only good thing about this on is that the script isn't obfuscated and some guy has taken it upon himself to run a site dedicated to giving support for it (and a couple of others) after he got pissed of with getting none from the owners.

I'd rather find one based in Western Europe or the US where I at least know they have proper laws and stuff so you can do something about it if it turns shitty, haven't found a good one yet though.
 

Shovel

Can't get enough of FH
Joined
Dec 22, 2003
Messages
1,350
I must admit I have no idea what the requirements of a dating script are. But, if there's not an urgent need to change your existing setup, you could look into writing your own - even if just as a plugin for a more generic CMS.

If these are the kinds of scripts that tend to be sold, and you produce something good, it might well be worth it.

Just an idea, of course.
 

SheepCow

Bringer of Code
Joined
Dec 22, 2003
Messages
1,365
I'd go with Shovel's idea. Get a cms, e.g. WordPress, and make a plugin for it or separate the dating thing from the rest of the site (except user login or whatever) and write it yourself / find a bored computer science student.
 

Maljonic

Can't get enough of FH
Joined
Dec 22, 2003
Messages
1,297
Heh, I don't really have enough of a grasp of PHP to writethe full thing myself, nor the time to learn really. I'm half tempted to buy the second one I mentioned seeing as it doesn't have obfuscated code so I can at least mess around with it or get help if they turn out to be unsupportive. I think I'll have a read through this site http://www.modmysite.com and see what I can find out.

I think the bad scripts I mentioned are probably written by ex computer science students who didn't realise they'd keep getting harrassed by bothersome after sales quiries when they thought of selling them.
 

Users who are viewing this thread

Top Bottom