Exemple #1
0
function foot()
{
    global $prefix, $user_prefix, $db, $index, $user, $cookie, $storynum, $user, $cookie, $Default_Theme, $foot1, $foot2, $foot3, $foot4, $home, $name, $admin, $commercial_license;
    if (defined('HOME_FILE')) {
        blocks("Down");
    }
    if (basename($_SERVER['PHP_SELF']) != "index.php" and defined('MODULE_FILE') and file_exists("modules/{$name}/copyright.php") && $commercial_license != 1) {
        $cpname = str_replace("_", " ", $name);
        echo "<div align=\"right\"><a href=\"javascript:openwindow()\">{$cpname} &copy;</a></div>";
    }
    if (basename($_SERVER['PHP_SELF']) != "index.php" and defined('MODULE_FILE') and file_exists("modules/{$name}/admin/panel.php") && is_admin($admin)) {
        echo "<br>";
        OpenTable();
        include "modules/{$name}/admin/panel.php";
        CloseTable();
    }
    themefooter();
    if (file_exists("includes/custom_files/custom_footer.php")) {
        include_secure("includes/custom_files/custom_footer.php");
    }
    echo "</body>\n</html>";
    ob_end_flush();
    die;
}
Exemple #2
0
/************************************************************************/
/* PHP-NUKE: Web Portal System                                          */
/* ===========================                                          */
/*                                                                      */
/* Copyright (c) 2007 by Francisco Burzi                                */
/* http://phpnuke.org                                                   */
/*                                                                      */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License.       */
/************************************************************************/
if (!defined('ADMIN_FILE')) {
    die("Access Denied");
}
$module_name = "Downloads";
include_secure("modules/{$module_name}/admin/language/lang-" . $currentlang . ".php");
switch ($op) {
    case "downloads":
    case "DownloadsDelNew":
    case "DownloadsAddCat":
    case "DownloadsAddSubCat":
    case "DownloadsAddDownload":
    case "DownloadsAddEditorial":
    case "DownloadsModEditorial":
    case "DownloadsDownloadCheck":
    case "DownloadsValidate":
    case "DownloadsDelEditorial":
    case "DownloadsCleanVotes":
    case "DownloadsListBrokenDownloads":
    case "DownloadsDelBrokenDownloads":
    case "DownloadsIgnoreBrokenDownloads":
Exemple #3
0
/* the Free Software Foundation; either version 2 of the License.       */
/************************************************************************/
if (!defined('MODULE_FILE')) {
    die("You can't access this file directly...");
}
if (isset($min)) {
    $min = intval($min);
}
if (isset($show)) {
    $show = intval($show);
}
require_once "mainfile.php";
$module_name = basename(dirname(__FILE__));
get_lang($module_name);
$pagetitle = "- " . _UDOWNLOADS . "";
include_secure("modules/{$module_name}/d_config.php");
define('INDEX_FILE', true);
// ALTERED BY PALADIN - 170102 - Start
function getparent($parentid, $title)
{
    global $prefix, $db;
    $parentid = intval($parentid);
    $sql = "SELECT cid, title, parentid FROM " . $prefix . "_downloads_categories WHERE cid='{$parentid}'";
    $result = $db->sql_query($sql);
    $row = $db->sql_fetchrow($result);
    $cid = intval($row[cid]);
    $ptitle = filter($row[title], "nohtml");
    $pparentid = intval($row[parentid]);
    if ($ptitle == "{$title}") {
        $title = $title;
    } elseif (!empty($ptitle)) {
Exemple #4
0
<?php

if (defined('INSIDE_MOD')) {
    @include_secure("mainfile.php");
} else {
    @(include_once "../../mainfile.php");
}
define('PHPBB_INSTALLED', true);
Exemple #5
0
function atExtraLoad($name)
{
    $globalconfig = atGetGlobalConfig();
    extract($globalconfig);
    $extra = atRunningGetVar("extra");
    $platform = atGetPlatform();
    $lang = atGetLang();
    if (@file_exists($atdir . "lang/{$lang}/{$name}.php")) {
        @include_secure($atdir . "lang/{$lang}/{$name}.php");
    } else {
        @include_secure($atdir . "lang/eng/{$name}.php");
    }
    if (@file_exists($extradir . $platform . "/{$name}.ext.php")) {
        @include_secure($extradir . $platform . "/{$name}.ext.php");
    } else {
        @include_secure($extradir . "{$name}.ext.php");
    }
    atRunningSetVar("extra", $extra);
    return $extra[$name];
}
Exemple #6
0
function get_lang($module)
{
    global $currentlang, $language;
    if ($module == "admin" and $module != "Forums") {
        if (file_exists("admin/language/lang-" . $currentlang . ".php")) {
            include_secure("admin/language/lang-" . $currentlang . ".php");
        } elseif (file_exists("admin/language/lang-" . $language . ".php")) {
            include_secure("admin/language/lang-" . $language . ".php");
        }
    } else {
        if (file_exists("modules/{$module}/language/lang-" . $currentlang . ".php")) {
            include_secure("modules/{$module}/language/lang-" . $currentlang . ".php");
        } elseif (file_exists("modules/{$module}/language/lang-" . $language . ".php")) {
            include_secure("modules/{$module}/language/lang-" . $language . ".php");
        }
    }
}
Exemple #7
0
 *   (at your option) any later version.
 *
 ***************************************************************************/
if (!defined('MODULE_FILE')) {
    die("You can't access this file directly...");
}
if (!isset($popup) or $popup != "1") {
    $module_name = basename(dirname(__FILE__));
    require "modules/Forums/nukebb.php";
} else {
    $phpbb_root_path = 'modules/Forums/';
}
define('IN_PHPBB', true);
include $phpbb_root_path . 'extension.inc';
include $phpbb_root_path . 'common.' . $phpEx;
include_secure("modules/Forums/includes/bbcode.php");
include "modules/Forums/includes/functions_post.php";
//
// Check and set various parameters
//
$params = array('submit' => 'post', 'preview' => 'preview', 'delete' => 'delete', 'poll_delete' => 'poll_delete', 'poll_add' => 'add_poll_option', 'poll_edit' => 'edit_poll_option', 'mode' => 'mode');
while (list($var, $param) = @each($params)) {
    if (!empty($HTTP_POST_VARS[$param]) || !empty($HTTP_GET_VARS[$param])) {
        ${$var} = !empty($HTTP_POST_VARS[$param]) ? htmlspecialchars($HTTP_POST_VARS[$param]) : htmlspecialchars($HTTP_GET_VARS[$param]);
    } else {
        ${$var} = '';
    }
}
$confirm = isset($HTTP_POST_VARS['confirm']) ? true : false;
$params = array('forum_id' => POST_FORUM_URL, 'topic_id' => POST_TOPIC_URL, 'post_id' => POST_POST_URL);
while (list($var, $param) = @each($params)) {
/***************************************************************************
 *
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version.
 *
 ***************************************************************************/
if (!defined('MODULE_FILE')) {
    die("You can't access this file directly...");
}
define('IN_PHPBB', true);
$phpbb_root_path = 'modules/Forums/';
include_secure($phpbb_root_path . 'extension.inc');
include_secure($phpbb_root_path . 'common.' . $phpEx);
include_secure('includes/bbcode.' . $phpEx);
//
// Start session management
//
$userdata = session_pagestart($user_ip, PAGE_INDEX, $nukeuser);
init_userprefs($userdata);
//
// End session management
//
// Note to potential users of this code ...
//
// Remember this is released under the _GPL_ and is subject
// to that licence. Do not incorporate this within software
// released or distributed in any way under a licence other
// than the GPL. We will be watching ... ;)
// Do we have an id? No, then just exit
Exemple #9
0
function head()
{
    global $slogan, $sitename, $banners, $nukeurl, $Version_Num, $artpage, $topic, $hlpfile, $user, $hr, $theme, $cookie, $bgcolor1, $bgcolor2, $bgcolor3, $bgcolor4, $textcolor1, $textcolor2, $forumpage, $adminpage, $userpage, $pagetitle;
    $ThemeSel = get_theme();
    include_secure("themes/{$ThemeSel}/theme.php");
    echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">';
    echo '<html xmlns="http://www.w3.org/1999/xhtml">';
    echo "<head>\n";
    echo "<title>{$sitename} {$pagetitle}</title>\n";
    echo '<meta name="google-site-verification" content="3y3xJYDHSYUitn7cbfFfI6C2BiK_q66dtRfykpzHW5w" />';
    ?>

    
    
    <!-- banner org_green -->
    
    		<!-- Attach our CSS -->
	  	<link rel="stylesheet" href="themes/<?php 
    echo $ThemeSel;
    ?>
/orbit-1.2.3.css">

	  	
		<!-- Attach necessary JS -->
		<script type="text/javascript" src="themes/<?php 
    echo $ThemeSel;
    ?>
/jquery-1.5.1.min.js"></script>
		<script type="text/javascript" src="themes/<?php 
    echo $ThemeSel;
    ?>
/jquery.orbit-1.2.3.min.js"></script>	
		
			<!--[if IE]>
			     <style type="text/css">
			         .timer { display: none !important; }
			         div.caption { background:transparent; filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#99000000,endColorstr=#99000000);zoom: 1; }
			    </style>
			<![endif]-->
		
		<!-- Run the plugin -->
		<script type="text/javascript">
			$(window).load(function() {
				$('#featured').orbit();
			});
		</script>

    
    <!-- end banner org_green -->
    



<!-- End Quantcast tag -->
	<?php 
    include "includes/meta.php";
    include "includes/javascript.php";
    if (file_exists("themes/{$ThemeSel}/images/favicon.ico")) {
        echo "<link REL=\"shortcut icon\" HREF=\"themes/{$ThemeSel}/images/favicon.ico\" TYPE=\"image/x-icon\">\n";
    }
    echo "<link rel=\"alternate\" type=\"application/rss+xml\" title=\"RSS\" href=\"backend.php\">\n";
    echo "<LINK REL=\"StyleSheet\" HREF=\"themes/{$ThemeSel}/style/style.css\" TYPE=\"text/css\">\n\n\n";
    if (file_exists("includes/custom_files/custom_head.php")) {
        include_secure("includes/custom_files/custom_head.php");
    }
    echo "\n\n\n</head>\n\n";
    if (file_exists("includes/custom_files/custom_header.php")) {
        include_secure("includes/custom_files/custom_header.php");
    }
    themeheader();
}