Warning: Use of undefined constant member - assumed 'member' (this will throw an Error in a future version of PHP) in /global.php(343) : eval()'d code on line 76
Warning: Use of undefined constant showthread - assumed 'showthread' (this will throw an Error in a future version of PHP) in /global.php(343) : eval()'d code on line 85
Warning: Use of undefined constant showpost - assumed 'showpost' (this will throw an Error in a future version of PHP) in /global.php(343) : eval()'d code on line 85
Warning: Use of undefined constant post_welcomes - assumed 'post_welcomes' (this will throw an Error in a future version of PHP) in /global.php(343) : eval()'d code on line 85
Warning: Use of undefined constant member - assumed 'member' (this will throw an Error in a future version of PHP) in /global.php(343) : eval()'d code on line 174
Warning: Use of undefined constant showthread - assumed 'showthread' (this will throw an Error in a future version of PHP) in /global.php(343) : eval()'d code on line 183
Warning: Use of undefined constant showpost - assumed 'showpost' (this will throw an Error in a future version of PHP) in /global.php(343) : eval()'d code on line 183
Warning: Use of undefined constant post_thanks - assumed 'post_thanks' (this will throw an Error in a future version of PHP) in /global.php(343) : eval()'d code on line 183
Warning: Use of undefined constant wlhon - assumed 'wlhon' (this will throw an Error in a future version of PHP) in /global.php(556) : eval()'d code(12) : eval()'d code on line 5
Warning: Use of undefined constant wlhcookie - assumed 'wlhcookie' (this will throw an Error in a future version of PHP) in /global.php(556) : eval()'d code(12) : eval()'d code on line 6
Warning: Use of undefined constant wlhguest - assumed 'wlhguest' (this will throw an Error in a future version of PHP) in /global.php(556) : eval()'d code(12) : eval()'d code on line 8
Warning: Use of undefined constant posts - assumed 'posts' (this will throw an Error in a future version of PHP) in /global.php(556) : eval()'d code(12) : eval()'d code on line 34
Warning: Use of undefined constant wlhneverposetd - assumed 'wlhneverposetd' (this will throw an Error in a future version of PHP) in /global.php(556) : eval()'d code(12) : eval()'d code on line 34
Warning: Use of undefined constant lastpost - assumed 'lastpost' (this will throw an Error in a future version of PHP) in /global.php(556) : eval()'d code(12) : eval()'d code on line 47
Warning: Use of undefined constant wlhpostmoreoften - assumed 'wlhpostmoreoften' (this will throw an Error in a future version of PHP) in /global.php(556) : eval()'d code(12) : eval()'d code on line 47
Warning: Use of undefined constant wlhglobal - assumed 'wlhglobal' (this will throw an Error in a future version of PHP) in /global.php(556) : eval()'d code(12) : eval()'d code on line 60
Warning: Use of undefined constant navbar_search_menu - assumed 'navbar_search_menu' (this will throw an Error in a future version of PHP) in /global.php(790) : eval()'d code(1) : eval()'d code on line 1
Warning: Use of undefined constant navbar_search_menu - assumed 'navbar_search_menu' (this will throw an Error in a future version of PHP) in /global.php(790) : eval()'d code(2) : eval()'d code on line 1
Warning: session_start(): Cannot start session when headers already sent in /includes/facebook/facebook.php on line 37
Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/bananas.org/includes/class_core.php:3081) in /cron.php on line 49
Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/bananas.org/includes/class_core.php:3081) in /cron.php on line 53
Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/bananas.org/includes/class_core.php:3081) in /cron.php on line 54
GIF89a € ÀÀÀ !ù , D ;
///////////////////////////////////////////////////////
// //
// Photopost links modified by Blue (iRO Wiki) //
// //
// Limited support given at vbulletin.org //
// www.vbulletin.org/forum/showthread.php?t=169304 //
// //
// MAKE SURE YOU EDIT THIS WHERE STATED //
// Then upload to /includes/cron/ //
// //
///////////////////////////////////////////////////////
// Edit - Make sure this is correct
// define('FILE_VERSION', '3.6.8'); // this should match install.php
error_reporting(E_ALL & ~E_NOTICE);
// if (!is_object($vbulletin->db))
// {
// exit;
// }
// REPLACE THE PROPER ENTRIES WITH YOUR PHOTOPOST AND VB MYSQL DETAILS.
$link = mysql_connect ('localhost', 'bana0a1_forumbot','bot1') or die('I cannot connect to the database. Gallery');
mysql_select_db ("bana0a1_forum") or die('Could not connect: ' . mysql_error());
$result = mysql_query("Select userid, user, Count(*) AS num FROM pp_photos Group BY userid;")
or die(mysql_error());
$link2 = mysql_connect ('localhost', 'bana0a1_forumbot', 'bot1') or die ('I cannot connect to the database. Forum');
mysql_select_db ("bana0a1_forum") or die ('could not connect: ' .mysql_error());
mysql_query("Update vb_user SET photos = '0';");
while($row = mysql_fetch_array( $result ))
{
$userid = $row['userid'];
$num = $row['num'];
$result2 = mysql_query("Update user SET photos = '$num' Where userid = '$userid';")
or die(mysql_error());
}
// log_cron_action("gallery task updated", $nextitem);
?>