Witam może zile się wyraziłem że nie pykło bo grafikę mi dodało ale nie zmienia się po dodaniu nowego wpisu a konsola generuje błąd w tych liniach
$forum_match = "\|".$data['forum_lastpost']."\|".$data['forum_id'];
if ($data['forum_lastpost'] > $lastvisited) {
napąkne jeszcze że dodaje to w user_info_panel
<?php
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) 2002 - 2011 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: user_info_panel.php
| Author: Nick Jones (Digitanium)
+--------------------------------------------------------+
| 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 http://www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
if (!defined("IN_FUSION")) { die("Access Denied"); }
if (iMEMBER) {
$msg_count = dbcount("(message_id)", DB_MESSAGES, "message_to='".$userdata['user_id']."' AND message_read='0' AND message_folder='0'");
echo THEME_BULLET." <a href='".BASEDIR."edit_profile.php' class='side'>".$locale['global_120']."</a><br />\n";
if ($settings['enable_terms1'] == 1) {
if ($userdata['user_rules_date1'] <> $settings['license_lastupdate1']) {
echo "<span class='small'>Aktualizowano regulamin<br>".ucfirst(showdate("longdate", $settings['license_lastupdate1']))."</span><br>";
echo THEME_BULLET."<a href='".BASEDIR."rules1.php' class='side'>Akceptuj Regulamin DJ</a><br />\n";
} else {
echo THEME_BULLET." <a href='".INFUSIONS."ramowka/admin/ramowkaadmin.php".$aidlink."' class='side'>Ramówka</a><br />\n";
echo THEME_BULLET." <a href='".BASEDIR."forum/index.php' class='side'>Forum Prezenterów</a>";
$forum_match = "\|".$data['forum_lastpost']."\|".$data['forum_id'];
if ($data['forum_lastpost'] > $lastvisited) {
if (iMEMBER && ($data['forum_lastuser'] == $userdata['user_id'] || preg_match("({$forum_match}\.|{$forum_match}$)", $userdata['user_threads']))) {
$fim = "<img src='".get_image("folder")."' width='10px'>";
} else {
$fim = "<img src='".get_image("foldernew")."' width='10px'>";
}
} else {
$fim = "<img src='".get_image("folder")."' width='10px'>";
}
echo $fim;
echo "<br />\n";
echo THEME_BULLET." <a target='_blank' href='".BASEDIR."paneldj/admin/index.php' class='side'>Konsola Pozdrowień</a><br />\n";
}}
if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
echo THEME_BULLET." <a href='".INFUSIONS."gr_member_charts_panel/gr_member_charts_admin.php".$aidlink."' class='side'>TOP 10</a><br />\n";
echo THEME_BULLET." <a href='".INFUSIONS."articles_widget_panel/articles_widget_admin.php".$aidlink."' class='side'>Włącz Artykuły</a><br />\n";
echo THEME_BULLET." <a href='".ADMIN."index.php".$aidlink."' class='side'>".$locale['global_123']."</a><br />\n";
}
echo THEME_BULLET." <a href='".BASEDIR."index.php?logout=yes' class='side'>".$locale['global_124']."</a>\n";
if ($msg_count) {
echo "<div style='text-align:center;margin-top:15px;'>\n";
echo "<strong><a href='".BASEDIR."messages.php' class='side'>".sprintf($locale['global_125'], $msg_count);
echo ($msg_count == 1 ? $locale['global_126'] : $locale['global_127'])."</a></strong>\n";
echo "</div>\n";
}
if (iADMIN && checkrights("SU")) {
$subm_count = dbcount("(submit_id)", DB_SUBMISSIONS);
if ($subm_count) {
echo "<div style='text-align:center;margin-top:15px;'>\n";
echo "<strong><a href='".ADMIN."submissions.php".$aidlink."' class='side'>".sprintf($locale['global_125'], $subm_count);
echo ($subm_count == 1 ? $locale['global_128'] : $locale['global_129'])."</a></strong>\n";
echo "</div>\n";
}
}
} else {
if (!preg_match('/login.php/i',FUSION_SELF)) {
$action_url = FUSION_SELF.(FUSION_QUERY ? "?".FUSION_QUERY : "");
if (isset($_GET['redirect']) && strstr($_GET['redirect'], "/")) {
$action_url = cleanurl(urldecode($_GET['redirect']));
}
openside($locale['global_100']);
echo "<div style='text-align:center'>\n";
echo "<form name='loginform' method='post' action='".$action_url."'>\n";
echo $locale['global_101']."<br />\n<input type='text' name='user_name' class='textbox' style='width:100px' /><br />\n";
echo $locale['global_102']."<br />\n<input type='password' name='user_pass' class='textbox' style='width:100px' /><br />\n";
echo "<label><input type='checkbox' name='remember_me' value='y' title='".$locale['global_103']."' style='vertical-align:middle;' /></label>\n";
echo "<input type='submit' name='login' value='".$locale['global_104']."' class='button' /><br />\n";
echo "</form>\n<br />\n";
if ($settings['enable_registration']) {
echo $locale['global_105']."<br /><br />\n";
}
echo $locale['global_106']."\n</div>\n";
closeside();
}
}
?>
Pozdrawiam
popraw sobie tą stopkę
|