1
0
mirror of https://github.com/cydrobolt/polr.git synced 2024-11-09 19:52:28 +01:00

Remove external calls to GH raw, replace with something better lataer

This commit is contained in:
Chaoyi Zha 2015-06-30 23:32:44 -04:00
parent 26c6ad2b7a
commit aac03e81ea

View File

@ -208,7 +208,7 @@ if (!is_array($auth->islogged())) {
$linksadmin .= paginate_table($admin_links_page, $admin_links_total_pages, "alpage", "adminpanel");
$status = file_get_contents('https://raw.githubusercontent.com/Cydrobolt/polr/notices/anotices'); // fetch notices from Github
$status = "";// file_get_contents('https://raw.githubusercontent.com/Cydrobolt/polr/notices/anotices'); // fetch notices from Github
if (strlen($status)<30) {
$msges = '<div class="tab-pane" id="messages"><br><b>There are <span style="color:green">no new messages</span>.</b></div>';
}
@ -218,7 +218,7 @@ if (!is_array($auth->islogged())) {
}
else {
// Shown to users
$status = file_get_contents('https://raw.githubusercontent.com/Cydrobolt/polr/notices/unotices'); // fetch notices from Github
$status = "";// file_get_contents('https://raw.githubusercontent.com/Cydrobolt/polr/notices/unotices'); // fetch notices from Github
if (strlen($status)<30) {
$msges = '<div class="tab-pane" id="messages"><br><b>There are <span style="color:green">no new messages</span>.</b></div>';
}