Файл: RootPanel 1.7.0 FreeCode/RootPanel 1.7.0 FreeCode/sites.php
Строк: 31
<?
session_set_cookie_params(86400);
session_start();
$full_home_path = dirname(__FILE__);
require_once($full_home_path."/_rootload.php");
mconnect();
validateUser();
if (!EnableLanguages()) { error("Can not load languages."); mclose(); exit; }
if (!GetCurrentCurrency()) { print $_lang[ErrorGetCurrentCurrency]; mclose(); exit; }
head('utf-8',$_lang[SitesTitle]);
print "<H1 class=pagetitle>".$_lang[SitesTitle]."</H1><hr class=hr>";
if (GetSetting("catalog_enable")) {
$r = @mysql_query("select * from catalog order by id desc") or die("File: ".__FILE__."<BR>Line: ".__LINE__."<BR>MySQL Error: ".mysql_error());
while ($rr = @mysql_fetch_object($r)) {
print "<a class=rootlink href='http://$rr->url' target=_blank>$rr->title</a><br>";
print "$rr->opisanie<br><br>";
}
} else { print $_lang[SitesCatalogDisabled]; }
foot('utf-8');
mclose();
?>