comgros
07-11-2008, 09:13 AM
Mod Title: Mass approve links
Last Updated: 11072008
Supported by Mod Developer: No
Where to Download: No download
Support Via This Thread or Download Site: This Thread
Compatible With: Vers. 2.1
I have made this to mass approve pending links:
1. Insert this code into a blank page.
<?php
mysql_connect('localhost', 'my_username', 'my_password') or die(mysql_error());
mysql_select_db('my_db_name');
mysql_query("UPDATE PLD_LINK SET STATUS = 2, VALID = 2");
if(mysql_affected_rows() > 0){
echo 'All pending links are now approved';
}else{
echo 'Something went wrong, please check you settings';
}
?>
2. Save the file as approve.php
3. Upload the file into your admin dir.
4. Chmod the file to 777
5. Now write www yoursite.xxx/admin/approve.php
Thats all, now you can mass approve links from your site:p
Best regards
Michael, utlotto.org
Last Updated: 11072008
Supported by Mod Developer: No
Where to Download: No download
Support Via This Thread or Download Site: This Thread
Compatible With: Vers. 2.1
I have made this to mass approve pending links:
1. Insert this code into a blank page.
<?php
mysql_connect('localhost', 'my_username', 'my_password') or die(mysql_error());
mysql_select_db('my_db_name');
mysql_query("UPDATE PLD_LINK SET STATUS = 2, VALID = 2");
if(mysql_affected_rows() > 0){
echo 'All pending links are now approved';
}else{
echo 'Something went wrong, please check you settings';
}
?>
2. Save the file as approve.php
3. Upload the file into your admin dir.
4. Chmod the file to 777
5. Now write www yoursite.xxx/admin/approve.php
Thats all, now you can mass approve links from your site:p
Best regards
Michael, utlotto.org