Get High Quality Links From The Webs Leading Web 2.0 Websites
Time Tested Link building method: Get links from all the new directories on a daily basis
Replace all the code in the advert.php file with this
Everything should be fine its been tested and is used on the demoPHP Code:<?php
/* Only Show Ads on Index, New, and Top */
function curPageName() {
return substr($_SERVER["SCRIPT_NAME"],strrpos($_SERVER["SCRIPT_NAME"],"/")+1);
}
$PageName = curPageName();
if ($PageName == 'index.php' || $PageName == 'newest.php' || $PageName == 'most.php') {
$adverts = mysql_query("SELECT * FROM `admin`") or die('Error selecting site name');
while($rowt = mysql_fetch_array($adverts)) {
echo "";
$advert = html_entity_decode($rowt['advert'], ENT_NOQUOTES);
echo "<p align=\"center\">".$advert."</p>";
}
}
?>
as for your other question via PM sorry no easy way to do this. Just back up urls and ip tables in phpmyadmin and reinstall the script. Once you have done so then add the backups back to phpmyadmin area
Reverse IP Check ಠ_ಠ Proxy Sites
<?php if ($youask == 'stupid question') { echo ('stupid answer'); } ?>
yep. its possible maybe it slipped up when you copied/pasted before. do as mr.bill says and replace all in advert.php with what he posted. that is the working solution.
dtkguy how hard would it be to add a admin password reset to this via the admin area? and a password reminder on the login page?
Reverse IP Check ಠ_ಠ Proxy Sites
<?php if ($youask == 'stupid question') { echo ('stupid answer'); } ?>
password reset/change should be pretty straight forward.
the reminder would be a little more work, first how would the reminder work? would, during install, it ask for a reminder question (from say a drop down box of predefined questions) and then user supplied answer? or just ask for admin email as the reminder condition? and then it would email the password to the admin email on file?
either way would work, the question/answer would need fields added to the database, the email only condition shouldn't need anything additional.
i'll explore it tonight when I have some time, and see what I can come up with if you'd want..
Just the email reminder so it send it the email in the database. Used during setup.
Reverse IP Check ಠ_ಠ Proxy Sites
<?php if ($youask == 'stupid question') { echo ('stupid answer'); } ?>
OK that shouldn't be too bad thenI will look into it tonight. Should have something for us later tonight or tomorrow depending on my free time this evening.
Mr.Bill : Attached is a zip file entitled admin_update.zip within this zip is an updated admincp.php file and a new file called adminpwd.php. These current updates allow for the changing of the admin password. Please try them out and let me know how it works for you. It worked fine for me on mine.
Note : Please be sure to backup your original admincp.php file before using this one in case you need to revert the changes.
Now on to the Reminder, because the password is SHA1'd it does not allow for us to send out the ascii variant in a reminder notice. What I can do however is come up with a function that will generate and send a Random Password to allow them to login and then change the password in the AdminCP. Would that work for you?
admin_update.zip has been replace with admin_update_v2.zip available on this post : Free URL Shortening Script
Last edited by dtkguy; 16 January, 2009 at 20:41 PM.
If that is the easiest way then that is fine, dont go out of your way or commit too much work to it. I will test that other file right now
Works perfectly
Only thing with the admin email idea is would need like a link forgot password then in another window you would have input the email you used at sign up and if the emails match then it sends a new password. Or it could be hell for you if someone found your admin login page.
Reverse IP Check ಠ_ಠ Proxy Sites
<?php if ($youask == 'stupid question') { echo ('stupid answer'); } ?>
Bookmarks