Zeile 6 | Zeile 6 |
---|
* Website: http://www.mybboard.net * License: http://www.mybboard.net/about/license *
|
* Website: http://www.mybboard.net * License: http://www.mybboard.net/about/license *
|
* $Id: misc.php 4081 2008-08-08 01:47:02Z Tikitiki $
| * $Id: misc.php 4276 2008-11-23 03:01:33Z Tikitiki $
|
*/
define("IN_MYBB", 1);
| */
define("IN_MYBB", 1);
|
Zeile 185 | Zeile 185 |
---|
if($lang->$langdocvar) { $helpdoc['document'] = $lang->$langdocvar;
|
if($lang->$langdocvar) { $helpdoc['document'] = $lang->$langdocvar;
|
| if($langdocvar == "d3_document") { $helpdoc['document'] = $lang->sprintf($helpdoc['document'], $mybb->user['logoutkey']); }
|
} } add_breadcrumb($helpdoc['name']);
| } } add_breadcrumb($helpdoc['name']);
|
Zeile 214 | Zeile 219 |
---|
while($section = $db->fetch_array($query)) { if($section['usetranslation'] == 1)
|
while($section = $db->fetch_array($query)) { if($section['usetranslation'] == 1)
|
{
| {
|
$langnamevar = "s".$section['sid']."_name"; $langdescvar = "s".$section['sid']."_desc"; if($lang->$langnamevar)
| $langnamevar = "s".$section['sid']."_name"; $langdescvar = "s".$section['sid']."_desc"; if($lang->$langnamevar)
|
Zeile 236 | Zeile 241 |
---|
$scollapse[$section['sid']] = ''; } elseif($mybb->input['action'] == "collapse")
|
$scollapse[$section['sid']] = ''; } elseif($mybb->input['action'] == "collapse")
|
{
| {
|
my_setcookie("fcollapse[{$section['sid']}]", "y"); $scollapse[$section['sid']] = "y"; } foreach($helpdocs[$section['sid']] as $key => $bit) { foreach($bit as $key => $helpdoc)
|
my_setcookie("fcollapse[{$section['sid']}]", "y"); $scollapse[$section['sid']] = "y"; } foreach($helpdocs[$section['sid']] as $key => $bit) { foreach($bit as $key => $helpdoc)
|
{
| {
|
if($helpdoc['enabled'] != 0) { if($helpdoc['usetranslation'] == 1)
| if($helpdoc['enabled'] != 0) { if($helpdoc['usetranslation'] == 1)
|
Zeile 251 | Zeile 256 |
---|
$langnamevar = "d".$helpdoc['hid'].'_name'; $langdescvar = "d".$helpdoc['hid'].'_desc'; if($lang->$langnamevar)
|
$langnamevar = "d".$helpdoc['hid'].'_name'; $langdescvar = "d".$helpdoc['hid'].'_desc'; if($lang->$langnamevar)
|
{
| {
|
$helpdoc['name'] = $lang->$langnamevar; } if($lang->$langdescvar)
| $helpdoc['name'] = $lang->$langnamevar; } if($lang->$langdescvar)
|
Zeile 266 | Zeile 271 |
---|
$expdisplay = ''; $sname = "sid_".$section['sid']."_c"; if($collapsed[$sname] == "display: show;")
|
$expdisplay = ''; $sname = "sid_".$section['sid']."_c"; if($collapsed[$sname] == "display: show;")
|
{
| {
|
$expcolimage = "collapse_collapsed.gif"; $expdisplay = "display: none;"; }
| $expcolimage = "collapse_collapsed.gif"; $expdisplay = "display: none;"; }
|
Zeile 280 | Zeile 285 |
---|
}
$plugins->run_hooks("misc_help_section_end");
|
}
$plugins->run_hooks("misc_help_section_end");
|
|
|
eval("\$help = \"".$templates->get("misc_help")."\";"); output_page($help); }
| eval("\$help = \"".$templates->get("misc_help")."\";"); output_page($help); }
|
Zeile 302 | Zeile 307 |
---|
foreach($namesarray as $key => $buddyid) { if($buddyid == $mybb->input['removebuddy'])
|
foreach($namesarray as $key => $buddyid) { if($buddyid == $mybb->input['removebuddy'])
|
{
| {
|
unset($namesarray[$key]); } }
| unset($namesarray[$key]); } }
|
Zeile 417 | Zeile 422 |
---|
if($mybb->input['sort'] != 'username') { $sortsql = ' ORDER BY posts DESC';
|
if($mybb->input['sort'] != 'username') { $sortsql = ' ORDER BY posts DESC';
|
} else {
| } else {
|
$sortsql = ' ORDER BY p.username ASC'; } $query = $db->query("
| $sortsql = ' ORDER BY p.username ASC'; } $query = $db->query("
|
Zeile 477 | Zeile 482 |
---|
} } if($e == 2)
|
} } if($e == 2)
|
{ $smilies .= "<td colspan=\"2\" class=\"$class\"> </td>";
| { $smilies .= "<td colspan=\"2\" class=\"$class\"> </td>";
|
} eval("\$smiliespage = \"".$templates->get("misc_smilies_popup")."\";"); output_page($smiliespage);
| } eval("\$smiliespage = \"".$templates->get("misc_smilies_popup")."\";"); output_page($smiliespage);
|
Zeile 592 | Zeile 597 |
---|
// If the version is not RSS2.0, set the type to Atom1.0. if($version != "rss2.0")
|
// If the version is not RSS2.0, set the type to Atom1.0. if($version != "rss2.0")
|
{ if(!$add) { $url .= "?"; }
| { if(!$add) { $url .= "?"; }
|
else { $url .= "&";
| else { $url .= "&";
|
Zeile 611 | Zeile 616 |
---|
$limit = 100; } if(!$add)
|
$limit = 100; } if(!$add)
|
{
| {
|
$url .= "?"; } else
| $url .= "?"; } else
|
Zeile 625 | Zeile 630 |
---|
} $limit = intval($_POST['limit']); eval("\$feedurl = \"".$templates->get("misc_syndication_feedurl")."\";");
|
} $limit = intval($_POST['limit']); eval("\$feedurl = \"".$templates->get("misc_syndication_feedurl")."\";");
|
}
| }
|
unset($GLOBALS['forumcache']); if(!$limit || !is_numeric($limit)) {
| unset($GLOBALS['forumcache']); if(!$limit || !is_numeric($limit)) {
|
Zeile 650 | Zeile 655 |
---|
eval("\$syndication = \"".$templates->get("misc_syndication")."\";"); output_page($syndication); }
|
eval("\$syndication = \"".$templates->get("misc_syndication")."\";"); output_page($syndication); }
|
| |
if($mybb->input['action'] == "clearcookies") { $plugins->run_hooks("misc_clearcookies");
|
if($mybb->input['action'] == "clearcookies") { $plugins->run_hooks("misc_clearcookies");
|
| if($mybb->input['key'] != $mybb->user['logoutkey']) { error($lang->error_invalidkey); }
|
$remove_cookies = array('mybb', 'mybbuser', 'mybb[password]', 'mybb[lastvisit]', 'mybb[lastactive]', 'collapsed', 'mybb[forumread]', 'mybb[threadsread]', 'mybbadmin');
| $remove_cookies = array('mybb', 'mybbuser', 'mybb[password]', 'mybb[lastvisit]', 'mybb[lastactive]', 'collapsed', 'mybb[forumread]', 'mybb[threadsread]', 'mybbadmin');
|