$output .= '/>';
}
return $output;
}
function build_link_list($list)
{
if ($list) {
foreach ($list as $key => $val) {
if ($val['img_path']) {
$img = '<img src="' . $val['img_path'] . '" alt="' . $val['title'] . '" /> ';
} else {
$img = '';
}
if (substr($val['url'], 0, 4) != 'http') {
$val['url'] = 'http://' . $val['url'];
}
$output .= '<li>' . build_hyperlink($val['url'], '', '', $img . $val['title']) . '</li>' . "\n";
}
}
return $output;
}
/* ! Load classes * * * * * * * */
require_once DIR_SYSTEM . 'MysqliDb.php';
$_db = new MysqliDb($setup['db_host'], $setup['db_user'], $setup['db_pswd'], $setup['db_name']);
$_db->setPrefix('grlx_');
if (!$_db) {
die('<h1>Holy null records, Batman! The database is missing!</h1><p>Even worse, Robin, the first-run installation script is gone. This is a critical error. <a href="http://twitter.com/grawlixcomix">Better call for backup</a>.</p>');
}
spl_autoload_register(null, false);
spl_autoload_extensions('.php');
spl_autoload_register('grlx_load');