function error_head($class) { global $ModPath, $ModStart; include "header.php"; $mainlink = 'ad_l'; menu($mainlink); SearchForm(); echo ' <div class="alert ' . $class . '" role="alert" align="center">'; }
</TR> <TR> <TD valign="top" style="padding-top: 0px; padding-left: 3px;"> <!-- Page Content // --> <div class="fixed_height_menu_tab_page" style="padding: 3px 7px 0px 7px;"> <TABLE cellSpacing=0 cellPadding=5 width="100%" border=0> <TR class="title"> <TD><span style="padding-left: 6px;"><?php Msg('CTLG_TAB_SEARCH_MENU_TITLE'); ?> </span></td> </TR> <TR> <TD vAlign=top style="padding-top: 3px;"> <p><?php SearchForm(); ?> </p> </TD> </TR> <TR> <TD vAlign=top style="padding-top: 3px;"> <p><?php SearchResult(); ?> </p> </TD> </TR> </TABLE> </div> <!-- // Page Content -->
function index() { global $ModPath, $ModStart, $links_DB; $lili = $links_DB; include "modules/{$ModPath}/links.conf.php"; include "header.php"; // Include cache manager global $SuperCache; if ($SuperCache) { $cache_obj = new cacheManager(); $cache_obj->startCachingPage(); } else { $cache_obj = new SuperCacheEmpty(); } if ($cache_obj->genereting_output == 1 or $cache_obj->genereting_output == -1 or !$SuperCache) { $mainlink = 'in_l'; menu($mainlink); SearchForm(); $filen = "modules/{$ModPath}/links.ban_01.php"; if (file_exists($filen)) { include $filen; } echo $lili . ' <table class="table table-bordered table-striped table-hover">'; $result = sql_query("SELECT cid, title, cdescription FROM " . $links_DB . "links_categories ORDER BY title"); if ($result) { while (list($cid, $title, $cdescription) = sql_fetch_row($result)) { $cresult = sql_query("SELECT lid FROM " . $links_DB . "links_links WHERE cid='{$cid}'"); $cnumrows = sql_num_rows($cresult); echo ' <tr> <td> <h4><a href="modules.php?ModStart=' . $ModStart . '&ModPath=' . $ModPath . '&op=viewlink&cid=' . $cid . '">' . aff_langue($title) . '</a> <span class="tag tag-default pull-right">' . $cnumrows . '</span></h4>'; categorynewlinkgraphic($cid); if ($cdescription) { echo ' <p>' . aff_langue($cdescription) . '</p>'; } $result2 = sql_query("SELECT sid, title FROM " . $links_DB . "links_subcategories WHERE cid='{$cid}' ORDER BY title {$subcat_limit}"); while (list($sid, $stitle) = sql_fetch_row($result2)) { $cresult3 = sql_query("SELECT lid FROM " . $links_DB . "links_links WHERE sid='{$sid}'"); $cnumrows = sql_num_rows($cresult3); echo ' <h5><a href="modules.php?ModStart=' . $ModStart . '&ModPath=' . $ModPath . '&op=viewslink&sid=' . $sid . '">' . aff_langue($stitle) . '</a> <span class="tag tag-default pull-right">' . $cnumrows . '</span></h5>'; } echo ' </td> </tr>'; } } echo ' </table>'; $result = sql_query("SELECT lid from " . $links_DB . "links_links"); if ($result) { $numrows = sql_num_rows($result); echo ' <p class="lead" align="center"><span>' . translate("There are") . ' <b>' . $numrows . '</b> ' . translate("Links in our Database") . ' <span class="btn btn-danger btn-sm" title="' . translate("New Links in this Category Added Today") . '" data-toggle="tooltip" >N</span> <span class="btn btn-success btn-sm" title="' . translate("New Links in this Category Added in the last 3 days") . '" data-toggle="tooltip" >N</span> <span class="btn btn-primary btn-sm" title="' . translate("New Links in this Category Added this week") . '" data-toggle="tooltip" >N</span> </p>'; } } if ($SuperCache) { $cache_obj->endCachingPage(); } global $admin; if ($admin) { $result = sql_query("SELECT requestid FROM " . $links_DB . "links_modrequest WHERE brokenlink=1"); if ($result) { $totalbrokenlinks = sql_num_rows($result); $result2 = sql_query("SELECT requestid FROM " . $links_DB . "links_modrequest WHERE brokenlink=0"); $totalmodrequests = sql_num_rows($result2); $result = sql_query("SELECT lid FROM " . $links_DB . "links_newlink"); $num = sql_num_rows($result); echo ' <div class="card card-block"> <a href="modules.php?ModStart=' . $ModStart . '&ModPath=' . $ModPath . '/admin"><i class="fa fa-cogs fa-2x" title="Admin" data-toggle="tooltip"></i></a> ' . translate("Waiting Links") . ' : <span class="tag tag-danger" title="' . translate("Links Waiting for Validation") . '" data-toggle="tooltip">' . $num . '</span> <span class="tag tag-danger" title="' . translate("User Reported Broken Links") . '" data-toggle="tooltip">' . $totalbrokenlinks . '</span> <span class="tag tag-danger" title="' . translate("Request Link Modification") . '" data-toggle="tooltip">' . $totalmodrequests . '</span> '; if ($links_DB != '') { echo 'Ref Tables => <strong>' . $links_DB . '</strong>'; } echo ' </div>'; } else { echo "<p align=\"center\"><span> -: [ <a href=\"modules.php?ModStart=create_tables&ModPath={$ModPath}/admin/\">" . translate("Create") . "</a> Tables : {$links_DB} ] :-</span></p>"; } } include "footer.php"; }