Чтение RSS каналов

Форум

Открыть Ответить

Ошибка при заходе на сайт

1

1
1
05.05.2009 11:43:10
При заходе на сайт возникает след. сообщение. Стоит OpenSlaed.

<?php
# Copyright &#65533; 2005 - 2008 SLAED
# Website: http://www.slaed.net

define(&quot;MODULE_FILE&quot;, true);
$start_time = array_sum(explode(&quot; &quot;, microtime()));
include(&quot;function/function.php&quot;);
$name = (isset($_POST['name'])) ? ((isset($_POST['name'])) ? analyze($_POST['name']) : &quot;&quot;) : ((isset($_GET['name'])) ? analyze($_GET['name']) : &quot;&quot;);
$op = (isset($_POST['op'])) ? ((isset($_POST['op'])) ? analyze($_POST['op']) : &quot;&quot;) : ((isset($_GET['op'])) ? analyze($_GET['op']) : &quot;&quot;);
$file = (isset($_POST['file'])) ? ((isset($_POST['file'])) ? analyze($_POST['file']) : &quot;&quot;) : ((isset($_GET['file'])) ? analyze($_GET['file']) : &quot;&quot;);
$file = ($file) ? $file : &quot;index&quot;;
if ($name) {
$conf['name'] = $name;
$conf['style'] = strtolower($name);
$module = 1;
list($mod_active, $view, $blocks, $blocks_c) = $db->sql_fetchrow($db->sql_query(&quot;SELECT active, view, blocks, blocks_c FROM &quot;.$prefix.&quot;_modules WHERE title='$name'&quot;));
if (intval($mod_active) || is_moder($name)) {
$ThemeSel = get_theme();
if ($view == 0 && file_exists(&quot;modules/&quot;.$name.&quot;/&quot;.$file.&quot;.php&quot;)) {
include(&quot;modules/&quot;.$name.&quot;/&quot;.$file.&quot;.php&quot;);
} else if (($view == 1 && (is_user() && is_group($name)) || is_moder($name)) && file_exists(&quot;modules/&quot;.$name.&quot;/&quot;.$file.&quot;.php&quot;)) {
include(&quot;modules/&quot;.$name.&quot;/&quot;.$file.&quot;.php&quot;);
} elseif ($view == 1 && !is_moder($name)) {
$pagetitle = &quot;&quot;.$conf['defis'].&quot; &quot;._ACCESSDENIED.&quot;&quot;;
head();
title(&quot;&quot;._ACCESSDENIED.&quot;&quot;);
if (!is_user()) $infotext = &quot;&quot;._MODULEUSERS.&quot; &quot;;
list($gname) = $db->sql_fetchrow($db->sql_query(&quot;SELECT name FROM &quot;.$prefix.&quot;_modules LEFT JOIN &quot;.$prefix.&quot;_groups ON (mod_group=id) WHERE title='$name'&quot;));
if ($gname) $infotext .= &quot;&quot;._ADDITIONALYGRP.&quot;: &quot;.$gname.&quot;&quot;;
warning($infotext, &quot;?name=account&op=newuser&quot;, 15, 2);
foot();
exit;
} else if ($view == 2 && is_moder($name) && file_exists(&quot;modules/&quot;.$name.&quot;/&quot;.$file.&quot;.php&quot;)) {
include(&quot;modules/&quot;.$name.&quot;/&quot;.$file.&quot;.php&quot;);
} elseif ($view == 2 && !is_moder($name)) {
$pagetitle = &quot;&quot;.$conf['defis'].&quot; &quot;._ACCESSDENIED.&quot;&quot;;
head();
title(&quot;&quot;._ACCESSDENIED.&quot;&quot;);
warning(&quot;&quot;._MODULESADMINS.&quot;&quot;, &quot;&quot;, 5, 2);
foot();
exit;
} else {
Header(&quot;Location: index.php&quot;);
exit;
}
} else {
Header(&quot;Location: index.php&quot;);
exit;
}
} else {
$home = 1;
$name = $conf['module'];
$conf['name'] = $name;
$ThemeSel = get_theme();
if (file_exists(&quot;modules/&quot;.$name.&quot;/&quot;.$file.&quot;.php&quot;)) {
include(&quot;modules/&quot;.$name.&quot;/&quot;.$file.&quot;.php&quot;);
} else {
head();
warning(&quot;&quot;._HOMEPROBLEMUSER.&quot;&quot;, &quot;&quot;, &quot;&quot;, 1);
foot();
}
}
?>

Как сделать, чтобы все работла нормально?


Версия системы: Open SLAED 1.*
Версия PHP: PHP 5
Сервер: Сервер в интернете
2
05.05.2009 16:08:25
так какая ошибка то ?
3.91

3.91
3
05.05.2009 19:43:21
Вместо страницы, отображается выше описанный код:

<?php
# Copyright &#65533; 2005 - 2008 SLAED
# Website: http://www.slaed.net

define(&quot;MODULE_FILE&quot;, true);
$start_time = array_sum(explode(&quot; &quot;, microtime()));
include(&quot;function/function.php&quot;);
$name = (isset($_POST['name'])) ? ((isset($_POST['name'])) ? analyze($_POST['name']) : &quot;&quot;) : ((isset($_GET['name'])) ? analyze($_GET['name']) : &quot;&quot;);
$op = (isset($_POST['op'])) ? ((isset($_POST['op'])) ? analyze($_POST['op']) : &quot;&quot;) : ((isset($_GET['op'])) ? analyze($_GET['op']) : &quot;&quot;);
$file = (isset($_POST['file'])) ? ((isset($_POST['file'])) ? analyze($_POST['file']) : &quot;&quot;) : ((isset($_GET['file'])) ? analyze($_GET['file']) : &quot;&quot;);
$file = ($file) ? $file : &quot;index&quot;;
if ($name) {
$conf['name'] = $name;
$conf['style'] = strtolower($name);
$module = 1;
list($mod_active, $view, $blocks, $blocks_c) = $db->sql_fetchrow($db->sql_query(&quot;SELECT active, view, blocks, blocks_c FROM &quot;.$prefix.&quot;_modules WHERE title='$name'&quot;));
if (intval($mod_active) || is_moder($name)) {
$ThemeSel = get_theme();
if ($view == 0 && file_exists(&quot;modules/&quot;.$name.&quot;/&quot;.$file.&quot;.php&quot;)) {
include(&quot;modules/&quot;.$name.&quot;/&quot;.$file.&quot;.php&quot;);
} else if (($view == 1 && (is_user() && is_group($name)) || is_moder($name)) && file_exists(&quot;modules/&quot;.$name.&quot;/&quot;.$file.&quot;.php&quot;)) {
include(&quot;modules/&quot;.$name.&quot;/&quot;.$file.&quot;.php&quot;);
} elseif ($view == 1 && !is_moder($name)) {
$pagetitle = &quot;&quot;.$conf['defis'].&quot; &quot;._ACCESSDENIED.&quot;&quot;;
head();
title(&quot;&quot;._ACCESSDENIED.&quot;&quot;);
if (!is_user()) $infotext = &quot;&quot;._MODULEUSERS.&quot; &quot;;
list($gname) = $db->sql_fetchrow($db->sql_query(&quot;SELECT name FROM &quot;.$prefix.&quot;_modules LEFT JOIN &quot;.$prefix.&quot;_groups ON (mod_group=id) WHERE title='$name'&quot;));
if ($gname) $infotext .= &quot;&quot;._ADDITIONALYGRP.&quot;: &quot;.$gname.&quot;&quot;;
warning($infotext, &quot;?name=account&op=newuser&quot;, 15, 2);
foot();
exit;
} else if ($view == 2 && is_moder($name) && file_exists(&quot;modules/&quot;.$name.&quot;/&quot;.$file.&quot;.php&quot;)) {
include(&quot;modules/&quot;.$name.&quot;/&quot;.$file.&quot;.php&quot;);
} elseif ($view == 2 && !is_moder($name)) {
$pagetitle = &quot;&quot;.$conf['defis'].&quot; &quot;._ACCESSDENIED.&quot;&quot;;
head();
title(&quot;&quot;._ACCESSDENIED.&quot;&quot;);
warning(&quot;&quot;._MODULESADMINS.&quot;&quot;, &quot;&quot;, 5, 2);
foot();
exit;
} else {
Header(&quot;Location: index.php&quot;);
exit;
}
} else {
Header(&quot;Location: index.php&quot;);
exit;
}
} else {
$home = 1;
$name = $conf['module'];
$conf['name'] = $name;
$ThemeSel = get_theme();
if (file_exists(&quot;modules/&quot;.$name.&quot;/&quot;.$file.&quot;.php&quot;)) {
include(&quot;modules/&quot;.$name.&quot;/&quot;.$file.&quot;.php&quot;);
} else {
head();
warning(&quot;&quot;._HOMEPROBLEMUSER.&quot;&quot;, &quot;&quot;, &quot;&quot;, 1);
foot();
}
}
?>
4
05.05.2009 19:58:47
Disman, чет фигня какая-то, такое может быть только если РНР на хостинге не поддерживается. Где тестите то?
3.97

3.97
5
05.05.2009 20:55:25
ага, тут , явно проблемс на сервере
3.91

3.91
6
06.05.2009 13:33:14
бесплатный хост... http://ho-sting.ru
7
06.05.2009 13:35:2406.05.2009 13:35:47
Disman, в поддержку стукни...
создай тестовый php файл типа

<?
echo '12345';
?>
и проверь, если аналогично, то к саппорту хоста
3.91

3.91
Открыть Ответить
Хотите опробовать SLAED CMS в действии?

Технологии

PHP MySQL HTML 5 CSS 3 jQuery jQuery UI

Контакты

  • D-49179, Deutschland
    Ostercappeln, Im Siek 6
  • +49 176 61966679

  • https://slaed.net
Идеи и предложения
Обратная связь