Functions for the new threas table, script for updating this table

This commit is contained in:
Michael Vogel 2014-03-16 18:19:19 +01:00
parent b4fb951bf9
commit 69b7ad2450
2 changed files with 122 additions and 0 deletions

23
include/threadupdate.php Normal file
View file

@ -0,0 +1,23 @@
<?php
require_once("boot.php");
require_once("include/threads.php");
global $a, $db;
if(is_null($a))
$a = new App;
if(is_null($db)) {
@include(".htconfig.php");
require_once("include/dba.php");
$db = new dba($db_host, $db_user, $db_pass, $db_data);
unset($db_host, $db_user, $db_pass, $db_data);
}
load_config('config');
load_config('system');
update_threads();
update_threads_mention();
killme();
?>