| http://www.pimped-fusion.net
+----------------------------------------------------------------------------+
| Filename: forum/includes/warning_info.php
| Version: Pimped Fusion v0.09.00
+----------------------------------------------------------------------------+
| Authors: slaughter, pirdani, emblinux
+----------------------------------------------------------------------------+
| This program is released as free software under the Affero GPL license.
| You can redistribute it and/or modify it under the terms of this license
| which you can read by viewing the included agpl.txt or online
| at www.gnu.org/licenses/agpl.html. Removal of this copyright header is
| strictly prohibited without written permission from the original author(s).
+---------------------------------------------------------------------------*/
require_once "../../maincore.php";
require_once TEMPLATES . "window_header.php";
require_once LOCALE . LOCALESET . "warning.php";
include_once INCLUDES . "warning.inc.php";
opentable($locale['WARN300']);
echo "<table width='100%' cellpadding='2' cellspacing='0' border='0' align='center'>\r\n\t<tr class='tbl2'>\r\n\t\t<td align='center' valign='top' colspan='3'><b>" . $locale['WARN326'] . "</b></td>\r\n\t</tr>\r\n\t<tr>\r\n\t\t<td colspan='3'>" . $locale['WARN301'] . "</td>\r\n\t</tr>\r\n\t<tr>\r\n\t\t<td align='center' valign='top' width='100'>" . show_warning_symbols(0) . "</td>\r\n\t\t<td align='left' valign='top' width='100'>" . $locale['WARN302'] . "</td>\r\n\t\t<td align='left' valign='top'>" . $locale['WARN311'] . "</td>\r\n\t</tr>\r\n\t<tr>\r\n\t\t<td align='center' valign='top'>" . show_warning_symbols(15) . "</td>\r\n\t\t<td align='left' valign='top'>" . $locale['WARN303'] . "</td>\r\n\t\t<td align='left' valign='top'>" . $locale['WARN312'] . "</td>\r\n\t</tr>\r\n\t<tr>\r\n\t\t<td align='center' valign='top'>" . show_warning_symbols(30) . "</td>\r\n\t\t<td align='left' valign='top'>" . $locale['WARN304'] . "</td>\r\n\t\t<td align='left' valign='top'>" . $locale['WARN313'] . "</td>\r\n\t</tr>\r\n\t<tr>\r\n\t\t<td align='center' valign='top'>" . show_warning_symbols(45) . "</td>\r\n\t\t<td align='left' valign='top'>" . $locale['WARN305'] . "</td>\r\n\t\t<td align='left' valign='top'>" . $locale['WARN314'] . "</td>\r\n\t</tr>\r\n\t<tr>\r\n\t\t<td align='center' valign='top'>" . show_warning_symbols(60) . "</td>\r\n\t\t<td align='left' valign='top'>" . $locale['WARN306'] . "</td>\r\n\t\t<td align='left' valign='top'>" . $locale['WARN315'] . "</td>\r\n\t</tr>\r\n\t<tr>\r\n\t\t<td align='center' valign='top'>" . show_warning_symbols(75) . "</td>\r\n\t\t<td align='left' valign='top'>" . $locale['WARN307'] . "</td>\r\n\t\t<td align='left' valign='top'>" . $locale['WARN316'] . "</td>\r\n\t</tr>\r\n\t<tr>\r\n\t\t<td align='center' valign='top'>" . show_warning_symbols(90) . "</td>\r\n\t\t<td align='left' valign='top'>" . $locale['WARN308'] . "</td>\r\n\t\t<td align='left' valign='top'>" . $locale['WARN317'] . "</td>\r\n\t</tr>\r\n\t<tr>\r\n\t\t<td align='center' valign='top'>" . show_warning_symbols(99) . "</td>\r\n\t\t<td align='left' valign='top'>" . $locale['WARN309'] . "</td>\r\n\t\t<td align='left' valign='top'>" . $locale['WARN318'] . "</td>\r\n\t</tr>\r\n\t<tr>\r\n\t\t<td align='center' valign='top' >" . show_warning_symbols(100) . "</td>\r\n\t\t<td align='left' valign='top'>" . $locale['WARN310'] . "</td>\r\n\t\t<td align='left' valign='top'>" . $locale['WARN319'] . "</td>\r\n\t</tr>";
$warning_catalog = dbquery("SELECT warn_point, warn_length, warn_subject FROM " . DB_WARNING_CATALOG . " ORDER BY warn_point, warn_length");
if (dbrows($warning_catalog)) {
    echo "\n\t<tr>\n\t\t<td colspan='3'>&nbsp;</td>\n\t</tr>\n\t<tr class='tbl2'>\n\t\t<td align='center' valign='top' colspan='3'><b>" . $locale['WARN320'] . "</b></td>\n\t</tr>\n\t<tr>\n\t\t<td align='center' valign='top' ><b>" . $locale['WARN321'] . "</b></td>\n\t\t<td align='center' valign='top'><b>" . $locale['WARN322'] . "</b></td>\n\t\t<td align='left' valign='top'><b>" . $locale['WARN323'] . "</b></td>\n\t</tr>";
    while ($data = dbarray($warning_catalog)) {
        echo "\n\t\t\t<tr>\r\n\t\t\t\t<td align='center' valign='top'>" . $data['warn_point'] . "</td>\r\n\t\t\t\t<td align='left' valign='top'>" . $data['warn_length'] . " " . $locale['WARN324'] . "</td>\r\n\t\t\t\t<td align='left' valign='top'>" . $data['warn_subject'] . "</td>\r\n\t\t\t</tr>";
    }
    echo "\t<tr>\n\t\t<td colspan='3'>&nbsp;</td>\n\t</tr>\n\t<tr>\n\t\t<td align='center' valign='top' colspan='3'>" . $locale['WARN325'] . "</td>\n\t</tr>";
}
echo "\r\n\t<tr>\r\n\t\t<td colspan='3'>&nbsp;</td>\r\n\t</tr>\r\n\t<tr class='tbl2'>\r\n\t\t<td align='center' valign='top' colspan='3'><b>" . $locale['WARN327'] . "</b></td>\r\n\t</tr>\r\n\t<tr>\r\n\t\t<td align='left' valign='top' colspan='3'>" . $locale['WARN328'] . "</td>\r\n\t</tr>\r\n</table>";
echo "<br />";
closetable();
require_once TEMPLATES . "window_footer.php";
function warning_profile_link($type, $id, $points, $class = '', $style = '')
{
    global $settings, $locale;
    $class = $class ? " class='" . $class . "'" : '';
    $style = $style ? " style='" . $style . "'" : '';
    $title = $points . " " . ($points == 1 ? $locale['WARN201'] : $locale['WARN202']);
    $url = $type == "1" ? "warning.php?lookup=" : "warning.php?postid=";
    if ($settings['warning_set_visible'] == "1" || iMEMBER) {
        $link = "<a href='" . BASEDIR . $url . $id . "' title='" . $title . "' " . $class . $style . ">" . show_warning_symbols($points) . "</a>";
    } else {
        $link = show_warning_symbols($points);
    }
    return $link;
}