MOON
Server: Apache/2.2.34 (Unix) mod_ssl/2.2.34 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4 FrontPage/5.0.2.2635
System: Linux server.asjudinet.com 2.6.32-042stab141.3 #1 SMP Fri Nov 15 22:45:34 MSK 2019 i686
User: asjudine (504)
PHP: 5.2.17
Disabled: NONE
Upload Files
File: /home/asjudine/public_html/corporativa.php
<?php

global $section;

$index = 0;
require_once("mainfile.php");

function theindex() {
    global $section, $dbi, $storyhome, $httpref, $httprefmax, $topicname, $topicimage, $topictext, $datetime, $user, $cookie, $nukeurl, $prefix, $multilingual, $currentlang, $articlecomm;
    if ($multilingual == 1) {
	$querylang = "AND (alanguage='$currentlang' OR alanguage='')";
    } else {
	$querylang = "";
    }

	$section="prepago";

    include("header.php");
    automated_news();
//    message_box();

	$storynum = 1;

    $result = sql_query("SELECT sid, catid, aid, title, time, hometext, bodytext, comments, counter, topic, informant, notes, acomm FROM $prefix"._stories." WHERE (topic='15') $querylang ORDER BY sid DESC limit $storynum", $dbi);
    while (list($s_sid, $catid, $aid, $title, $time, $hometext, $bodytext, $comments, $counter, $topic, $informant, $notes, $acomm) = sql_fetch_row($result, $dbi)) {
	if ($catid > 0) {
	    list($cattitle) = sql_fetch_row(sql_query("select title from $prefix"._stories_cat." where catid='$catid'", $dbi), $dbi);
	}
	$printP = "<a href=\"print.php?sid=$s_sid\"><img src=\"images/print.gif\" border=0 Alt=\""._PRINTER."\" width=\"15\" height=\"11\"></a>&nbsp;";
	$sendF = "<a href=\"friend.php?op=FriendSend&amp;sid=$s_sid\"><img src=\"images/friend.gif\" border=0 Alt=\""._FRIEND."\" width=\"15\" height=\"11\"></a>";
	getTopics($s_sid);
	formatTimestamp($time);
	$subject = stripslashes($subject);
	$hometext = stripslashes($hometext);
	$notes = stripslashes($notes);
	$introcount = strlen($hometext);
	$fullcount = strlen($bodytext);
	$totalcount = $introcount + $fullcount;
	$c_count = $comments;
	$r_options = "";

	$story_link = "<a href=\"article.php?sid=$s_sid$options\">";

	themeindex($aid, $informant, $datetime, $title, $counter, $topic, $hometext, $notes, $morelink, $topicname, $topicimage, $topictext);
    }
    if ($httpref==1) {
	$referer = getenv("HTTP_REFERER");
	if ($referer=="" OR eregi("^unknown", $referer) OR substr("$referer",0,strlen($nukeurl))==$nukeurl OR eregi("^bookmark",$referer)) {
	} else {
    	    sql_query("insert into $prefix"._referer." values (NULL, '$referer')", $dbi);
	}
	$result = sql_query("select * from $prefix"._referer."", $dbi);
	$numrows = sql_num_rows($result, $dbi);
	if($numrows>=$httprefmax) {
    	    sql_query("delete from $prefix"._referer."", $dbi);
	}
    }
	echo "</td>
    <td width=\"100\" valign=\"top\" align=\"center\" bgcolor=\"#FFFFFF\"><br>";

//	include("barder_nada.php");



    include("footer.php");
}



if ($file != "") {
    $index = 0;
    include("header.php?section=prepago");
    OpenTable();
    $file2 = substr($file,0,2);
    if (ereg("\.\.", $file2)) {
	$file = ereg_replace("\.\.", "", $file);
    }
    $file2 = substr($file,0,1);
    if ($file2 == "/") {
	$file = ereg_replace("/", "", $file);
    }
    if (!@file($file) OR (eregi("\.\.",$file))) {
	echo "<center><font class=\"title\">$sitename</font><br><br>"
	    ."<font class=\"content\">"._FILENOTEXIST."</font><br><br>"
	    .""._GOBACK."</center>";
    } else {
	include("counter.php");
	include("$file");
    }
    CloseTable();
    include("footer.php");
    die();
}

switch ($op) {

    default:
    theindex();

}

?>