Imported AoWoW.
This version of AoWoW is based on https://github.com/udw/udwbase and is not yet usable. An initial amount of testing has been finished, and you can import the aowow.sql database into your world database, and create a local copy of config.php.in as config.php to test this version. FirePHP (http://firephp.org/) has been added for testing purposes. Signed-off-by: TheLuda <theluda@getmangos.com>
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* UDWBase: WOWDB Web Interface
|
||||
*
|
||||
* © UDW 2009-2011
|
||||
*
|
||||
* Released under the terms and conditions of the
|
||||
* GNU General Public License (http://gnu.org).
|
||||
*
|
||||
*/
|
||||
|
||||
// Загружаем новости
|
||||
$rows = @$DB->select('SELECT text_loc?d AS text FROM ?_aowow_news ORDER BY time DESC, id DESC LIMIT 5', $_SESSION['locale']);
|
||||
if ($rows)
|
||||
$smarty->assign('news', $rows);
|
||||
|
||||
$rows2 = @$DB->select('SELECT version AS text FROM ?_db_version LIMIT 1');
|
||||
if ($rows2)
|
||||
$smarty->assign('version', $rows2);
|
||||
|
||||
global $page;
|
||||
$smarty->assign('page', $page);
|
||||
$smarty->display('main.tpl');
|
||||
Reference in New Issue
Block a user