Ejemplo n.º 1
0
<?php

require 'config.php';
require $engine_path . "cls/auth/session_lite.php";
$page = "first";
$first_page = 1;
require "up.php";
require "left.php";
if ($er) {
    print "<div style=\"margin-left:15px;margin-bottom:10px\"><table border=0 cellspacing=4 cellpadding=0 width=100%><td>" . icon('error', $er) . "</td></table></div>";
}
if ($auth->user) {
    print "<div style=\"margin-left:15px;margin-bottom:10px\">";
    $q = select("select a.Message,u.GuildID,u.Login,u.GuildStatusID,u.UserID from ut_announcements a join ut_users u using(UserID) where a.Active=1 order by a.Date desc limit 0,1");
    if ($q[0]) {
        print "<table border=0 cellspacing=4 cellpadding=0 width=485px><td>" . icon('green', setTags($q[Message] . "<br><div align=right>" . username($q, 1) . "</div>"));
        print "</td></table><br>";
    }
    ?>

<!-- bof RedTram N4P -->   


<table border=0 width=485px cellspacing=0 cellpadding=0>
<td>
<font  style="text-decoration: none;font-weight:bold;font-size: 13px;margin-left:10px">Новое на форуме</font>
<img src=/images/hr2.gif width=180px height=10px>
<table border=0 width=240px cellspacing=0 cellpadding=0>
<?php 
    include "php/informer1.html";
    ?>
Ejemplo n.º 2
0
 function makeTemplate($id)
 {
     global $_POST, $site_path;
     if ($_POST['ParentID']) {
         recTemplate($_POST['ParentID']);
     }
     $f = fopen($site_path . "templates/" . $_POST['TemplateID'] . "up.php", "w");
     $_POST['Header'] = str_replace("<br />", "\r\n", $_POST['Header']);
     $_POST['Footer'] = str_replace("<br />", "\r\n", $_POST['Footer']);
     fputs($f, setTags($_POST['Header']));
     fclose($f);
     $f = fopen($site_path . "templates/" . $_POST['TemplateID'] . "bottom.php", "w");
     fputs($f, setTags($_POST['Footer']));
     fclose($f);
 }
		$content .= '<a href="' . zen_href_link(FILENAME_PRODUCTS_ALL) . '">';
		$content .= CATEGORIES_BOX_HEADING_PRODUCTS_ALL . '</a></li>' . "\n";
	}
}
$content .= '</ul>';
*/
$content .= "<ul class=\"categories\">\n";
for ($i = 0; $i < sizeof($box_categories_array); $i++) {
    $prevLevel = $currentLevel;
    $currentLevel = count(explode('_', $box_categories_array[$i]['path']));
    $nextLevel = count(explode('_', $box_categories_array[$i + 1]['path']));
    $diffLevelPrev = $currentLevel - $prevLevel;
    $diffLevelNext = $currentLevel - $nextLevel;
    $class = setStyle($box_categories_array[$i]);
    $count = showCount_is($box_categories_array[$i]['count']);
    $addStr = setTags($diffLevelPrev, $diffLevelNext);
    $content .= $addStr['preLine'] . '<li' . $class . '>';
    $content .= '<a href="' . zen_href_link(FILENAME_DEFAULT, $box_categories_array[$i]['path']) . '">';
    $content .= $box_categories_array[$i]['name'];
    $content .= $count . '</a>';
    $content .= $addStr['postLine'] . "";
}
$content .= "</ul>\n";
$content .= '</div>' . "\n";
function setStyle($box_categories_array)
{
    $top_is = $box_categories_array['top'];
    $has_sub_cat = $box_categories_array['has_sub_cat'];
    $current_is = $box_categories_array['current'];
    if ($top_is == 'true') {
        $class = '';
Ejemplo n.º 4
0
<?php

require 'config.php';
require $engine_path . "cls/auth/session_lite.php";
//unset($type);
if ($step && $type == "main/register") {
    $_POST['pwd'] = md5($_POST['Password'] . $secpass);
    $_POST['RealCode'] = substr(md5($_POST['SecretCode'] . "hgfjdj"), 0, 6);
}
if (($id != 1 || !$worker && !$partner) && $id != 7) {
    $pageres = select("select PageName_{$lang} as PageName,Content,TemplateID from en_menu where MenuID='{$id}'");
    $content = set_params(setTags($pageres[Content]));
    if (strstr($pageres[PageName], "\$")) {
        $form_title = set_params($pageres[PageName]);
    } else {
        $form_title = $pageres[PageName];
    }
}
if ($zak == 1) {
    $act = anketa;
    $id = 5;
}
if ($id == 3) {
    $typ = "products";
}
if ($id == 7) {
    $typ = "galleries";
}
if ($id == 5) {
    $typ = "zakaz";
}
Ejemplo n.º 5
0
function text($id)
{
    global $lang, $adm, $textmessage, $site_path;
    if (!file_exists($site_path . "lang/texts/")) {
        mkdir_r($site_path . "lang/texts/");
    }
    $fname = $site_path . "lang/texts/" . $lang . ".txt";
    include_once $fname;
    if ($textmessage[$id]) {
        return stripslashes($textmessage[$id]);
    } elseif (is_numeric($id)) {
        $q = selectall("lk_texts where TextID='{$id}'");
        $file = fopen($fname, "r");
        $str = fread($file, filesize($fname));
        fclose($file);
        $file = fopen($fname, "a");
        if (!strlen($str)) {
            fputs($file, "<?\r\n");
        }
        $q[$lang] = addslashes($q[$lang]);
        if (!strstr($str, "message[{$id}]")) {
            fputs($file, "\$textmessage[{$id}] = '" . setTags($q[$lang]) . "';\r\n");
        }
        fclose($file);
        $textmessage[$id] = stripslashes($q[$lang]);
        if ($adm) {
            return "[<a href=\"admin.php?act=update&id={$id}&type=messages\">{$q[$lang]}</a>]";
        } elseif ($q[$lang]) {
            return set_params(setTags($q[$lang]));
        } else {
            return $id;
        }
    } else {
        return $id;
    }
}
Ejemplo n.º 6
0
        print "<img src=\"{$img_url}?id={$r['NewsID']}&table=ut_news&record=23\" border=0 align=right>";
        print "</td>";
    }
    ?>

				</tr><tr><td></td><td>




<?php 
    print "<b><font color=#F5D59E>{$r['Name']}</font></b><br>";
    if ($id && $r[Message]) {
        print setTags($r[Message]);
    } else {
        print setTags($r[Headline]);
    }
    if ($r[Message] && !$id) {
        print " <a href=\"/xml/main/news.php?id={$r['NewsID']}\"><b>" . message(34) . "  »</b></a>";
    }
    ?>
				 </td>
                              </tr>

				<tr><td></td><td><img src="/images/hr.gif" height=10px></td>
                            </table></td>
                          </tr>

<?php 
}
?>