Files
nexusphp/public/rules.php

31 lines
776 B
PHP
Raw Permalink Normal View History

2020-12-26 01:42:23 +08:00
<?php
2021-01-13 19:32:26 +08:00
require "../include/bittorrent.php";
2020-12-26 01:42:23 +08:00
dbconn();
require_once(get_langfile_path());
2022-02-10 22:30:26 +08:00
//loggedinorreturn();
2020-12-26 01:42:23 +08:00
stdhead($lang_rules['head_rules']);
$Cache->new_page('rules', 900, true);
if (!$Cache->get_page())
{
$Cache->add_whole_row();
//make_folder("cache/" , get_langfolder_cookie());
//cache_check ('rules');
begin_main_frame();
$lang_id = get_guest_lang_id();
$is_rulelang = get_single_value("language","rule_lang","WHERE id = ".sqlesc($lang_id));
if (!$is_rulelang){
$lang_id = 6; //English
}
$res = sql_query("SELECT * FROM rules WHERE lang_id = ".sqlesc($lang_id)." ORDER BY id");
while ($arr=mysql_fetch_assoc($res)){
2020-12-28 20:52:54 +08:00
begin_frame($arr['title'], false);
2020-12-26 01:42:23 +08:00
print(format_comment($arr["text"]));
end_frame();
}
end_main_frame();
}
//cache_save ('rules');
stdfoot();
?>