توجه ! این یک نسخه آرشیو شده میباشد و در این حالت شما عکسی را مشاهده نمیکنید برای مشاهده کامل متن و عکسها بر روی لینک مقابل کلیک کنید : مشكل در نمايش سايت
rapidman4002
06-11-2008, 12:06 PM
سلام و خسته نباشيد
مي شه لطفا يه نگاه به سايت من بندازيد و بگيد مشكل چيه؟
<b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b>
firoozmandan
06-11-2008, 01:21 PM
سلام
مشکل از قالب شماست
سرس صفحه رو ببینید ... آدرس هارو چک کنید .... همه روی forbidden.ir ست شده
این مورد رو در قالب اصلاح کنید
یا علی
rapidman4002
06-14-2008, 07:34 AM
اگر امكانش هست يه مقدار كامل تر توضيح بدهيد چون من زياد سر در نميارم.
firoozmandan
06-14-2008, 10:36 AM
سلام
شما index.php قالبی که نصب کردید رو اینجا قرار بدید تا دقیقا خدمتتون بگم ...
یا علی
rapidman4002
06-14-2008, 11:05 AM
من رو ببخشيد اينقدر سوال مي كنم چه طوري ميتونم قرار بدم در اينجا؟ من واقعا شرمندم.
rapidman4002
06-14-2008, 11:05 AM
<?php
/**
* @package Mambo
* @author Mambo Foundation Inc see README.php
* @copyright Mambo Foundation Inc.
* See COPYRIGHT.php for copyright notices and details.
* @license <b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b> GNU/GPL, see
* LICENSE.php
* Mambo 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; version 2 of the
* License.
*/
/** Set flag that this is a parent file */
if (!defined('_VALID_MOS')) define( '_VALID_MOS', 1 );
error_reporting(E_ALL);
$dir = isset($adminside)?"../":"";
if ( !file_exists($dir.'configuration.php' ) || filesize( $dir.'configuration.php' ) < 10 ) {
header("Location: ".$dir."installation/index.php");
exit();
}
$protects = array('_REQUEST', '_GET', '_POST', '_COOKIE', '_FILES', '_SERVER', '_ENV', 'GLOBALS', '_SESSION');
foreach ($protects as $protect) {
if ( in_array($protect , array_keys($_REQUEST)) ||
in_array($protect , array_keys($_GET)) ||
in_array($protect , array_keys($_POST)) ||
in_array($protect , array_keys($_COOKIE)) ||
in_array($protect , array_keys($_FILES))) {
die("Invalid Request.");
}
}
/**
* used to leave the input element without trim it
*/
define( "_MOS_NOTRIM", 0x0001 );
/**
* used to leave the input element with all HTML tags
*/
define( "_MOS_ALLOWHTML", 0x0002 );
/**
* used to leave the input element without convert it to numeric
*/
define( "_MOS_ALLOWRAW", 0x0004 );
/**
* used to leave the input element without slashes
*/
define( "_MOS_NOMAGIC", 0x0008 );
/**
* function to sanitize input values from arrays
*
* This function provides a way to sanitize inputs, should be used to obtain values from
* _POST, _GET, _COOKIES, etc; a default value can be passed to be used in case that not
* values are founded to the element, a binary mask can be passed to discard some of test,
*, this value is matched with _MOS_NOTRIM, _MOS_ALLOWHTML and, _MOS_ALLOWRAW, currently
* 3 test are do it, trim, strip html and convert the value to numeric when is possible.
*
* Example of use:
*
* To get task variable from the URL and select the view like default task, you can use:
*
* <code>$task = mosGetParam ($_GET,"task","view");</code>
*
* To get task variable from the URL, select the view like default task, allows HTML and
* without trim you can use :
*
* <code>$task = mosGetParam ($_GET,"task","view",_MOS_NOTRIM+_MOS_ALLOWHTML);</code>
*
* @acces public
* @param array &$arr reference to array which contains the value
* @param string $name name of element searched
* @param mixed $def default value to use if nothing is founded
* @param int $mask mask to select checks that will do it
* @return mixed value from the selected element or default value if nothing was found
*/
function mosGetParam( &$arr, $name, $def=null, $mask=0 ) {
if (isset( $arr[$name] )) {
if (is_array($arr[$name])) foreach ($arr[$name] as $key=>$element) $result[$key] = mosGetParam ($arr[$name], $key, $def, $mask);
else {
$result = $arr[$name];
if (!($mask&_MOS_NOTRIM)) $result = trim($result);
if (!is_numeric( $result)) {
if (!($mask&_MOS_ALLOWHTML)) $result = strip_tags($result);
if (!($mask&_MOS_ALLOWRAW)) {
if (is_numeric($def)) $result = intval($result);
}
}
if (!get_magic_quotes_gpc()) {
$result = addslashes( $result );
}
}
return $result;
} else {
return $def;
}
}
/**
* sets or returns the current side (frontend/backend)
*
* This function returns TRUE when the user are in the backend area; this is set to
* TRUE when are invocated /administrator/index.php, /administrator/index2.php
* or /administrator/index3.php, to set this value is not a normal use.
*
* @access public
* @param bool $val value used to set the adminSide value, not planned to be used by users
* @return bool TRUE when the user are in backend area, FALSE when are in frontend
*/
function adminSide($val='') {
static $adminside;
if (is_null($adminside)) {
$adminside = ($val == '') ? 0 : $val;
} else {
$adminside = ($val == '') ? $adminside : $val;
}
return $adminside;
}
/**
* sets or returns the index type
*
* This function returns 1, 2 or 3 depending of called file index.php, index2.php or index3.php.
*
* @access private
* @param int $val value used to set the indexType value, not planned to be used by users
* @return int return 1, 2 or 3 depending of called file
*/
function indexType($val='')
{
static $indextype;
if (is_null($indextype)) {
$indextype = ($val == '') ? 1 : $val;
} else {
$indextype = ($val == '') ? $indextype : $val;
}
return $indextype;
}
if (!isset($adminside)) $adminside = 0;
if (!isset($indextype)) $indextype = 1;
adminSide($adminside);
indexType($indextype);
$adminside = adminSide();
$indextype = indexType();
require_once (dirname(__FILE__).'/includes/date.php');
require_once (dirname(__FILE__).'/includes/database.php');
require_once(dirname(__FILE__).'/includes/core.classes.php');
$configuration =& mamboCore::getMamboCore();
$configuration->handleGlobals();
if (!$adminside) {
$urlerror = 0;
$sefcode = dirname(__FILE__).'/components/com_sef/sef.php';
if (file_exists($sefcode)) require_once($sefcode);
else require_once(dirname(__FILE__).'/includes/sef.php');
}
$configuration->fixLanguage();
require($configuration->rootPath().'/includes/version.php');
$_VERSION =& new version();
$version = $_VERSION->PRODUCT .' '. $_VERSION->RELEASE .'.'. $_VERSION->DEV_LEVEL .' '
. $_VERSION->DEV_STATUS
.' [ '.$_VERSION->CODENAME .' ] '. $_VERSION->RELDATE .' '
. $_VERSION->RELTIME .' '. $_VERSION->RELTZ;
if (phpversion() < '4.2.0') require_once( $configuration->rootPath() . '/includes/compat.php41x.php' );
if (phpversion() < '4.3.0') require_once( $configuration->rootPath() . '/includes/compat.php42x.php' );
if (phpversion() < '5.0.0') require_once( $configuration->rootPath() . '/includes/compat.php5xx.php' );
$local_backup_path = $configuration->rootPath().'/administrator/backups';
$media_path = $configuration->rootPath().'/media/';
$image_path = $configuration->rootPath().'/images/stories';
$lang_path = $configuration->rootPath().'/language';
$image_size = 100;
$database =& mamboDatabase::getInstance();
// Start NokKaew patch
$mosConfig_nok_content=0;
if (file_exists( $configuration->rootPath().'components/com_nokkaew/nokkaew.php' ) && !$adminside ) {
$mosConfig_nok_content=1; // can also go into the configuration - but this might be overwritten!
require_once( $configuration->rootPath()."administrator/components/com_nokkaew/nokkaew.class.php");
require_once( $configuration->rootPath()."components/com_nokkaew/classes/nokkaew.class.php");
}
if( $mosConfig_nok_content ) {
$database = new mlDatabase( $mosConfig_host, $mosConfig_user, $mosConfig_password, $mosConfig_db, $mosConfig_dbprefix );
}
if ($mosConfig_nok_content) {
$mosConfig_defaultLang = $mosConfig_locale; // Save the default language of the site
$iso_client_lang = NokKaew::discoverLanguage( $database );
$_NOKKAEW_MANAGER = new NokKaewManager();
}
// end NokKaew Patch
$database->debug(mamboCore::get('mosConfig_debug'));
/** retrieve some possible request string (or form) arguments */
$type = mosGetParam($_REQUEST, 'type', 1);
$act = mosGetParam( $_REQUEST, 'act', '' );
$do_pdf = mosGetParam( $_REQUEST, 'do_pdf', 0 );
$id = mosGetParam( $_REQUEST, 'id', 0 );
$task = mosGetParam($_REQUEST, 'task', '');
$act = strtolower(mosGetParam($_REQUEST, 'act', ''));
$section = mosGetParam($_REQUEST, 'section', '');
$no_html = strtolower(mosGetParam($_REQUEST, 'no_html', ''));
$cid = (array) mosGetParam( $_POST, 'cid', array() );
ini_set('session.use_trans_sid', 0);
ini_set('session.use_cookies', 1);
ini_set('session.use_only_cookies', 1);
/* initialize i18n */
$lang = $configuration->current_language->name;
$charset = $configuration->current_language->charset;
$gettext =& phpgettext();
$gettext->debug = $configuration->mosConfig_locale_debug;
$gettext->has_gettext = $configuration->mosConfig_locale_use_gettext;
$language = new mamboLanguage($lang);
$gettext->setlocale($lang, $language->getSystemLocale());
$gettext->bindtextdomain($lang, $configuration->rootPath().'/language');
$gettext->bind_textdomain_codeset($lang, $charset);
$gettext->textdomain($lang);
#$gettext =& phpgettext(); dump($gettext);
if ($adminside) {
// Start ACL
require_once($configuration->rootPath().'/includes/gacl.class.php' );
require_once($configuration->rootPath().'/includes/gacl_api.class.php' );
$acl = new gacl_api();
// Handle special admin side options
$option = strtolower(mosGetParam($_REQUEST,'option','com_adm in'));
$domain = substr($option, 4);
session_name(md5(mamboCore::get('mosConfig_live_si te')));
session_start();
// restore some session variables
$my = new mosUser();
$my->getSession();
if (mosSession::validate($my)) {
mosSession::purge();
} else {
mosSession::purge();
$my = null;
}
if (!$my AND $option == 'login') {
$option='admin';
require_once($configuration->rootPath().'/includes/authenticator.php');
$authenticator =& mamboAuthenticator::getInstance();
$my = $authenticator->loginAdmin($acl);
}
// Handle the remaining special options
elseif ($option == 'logout') {
require($configuration->rootPath().'/administrator/logout.php');
exit();
}
// We can now create the mainframe object
$mainframe =& new mosMainFrame($database, $option, '..', true);
// Provided $my is set, we have a valid admin side session and can include remaining code
if ($my) {
mamboCore::set('currentUser', $my);
if ($option == 'simple_mode') $admin_mode = 'on';
elseif ($option == 'advanced_mode') $admin_mode = 'off';
else $admin_mode = mosGetParam($_SESSION, 'simple_editing', '');
$_SESSION['simple_editing'] = mosGetParam($_POST, 'simple_editing', $admin_mode);
require_once($configuration->rootPath().'/administrator/includes/admin.php');
require_once( $configuration->rootPath().'/includes/mambo.php' );
require_once ($configuration->rootPath().'/includes/mambofunc.php');
require_once ($configuration->rootPath().'/includes/mamboHTML.php');
require_once( $configuration->rootPath().'/administrator/includes/mosAdminMenus.php');
require_once($configuration->rootPath().'/administrator/includes/admin.php');
require_once( $configuration->rootPath() . '/includes/cmtclasses.php' );
require_once( $configuration->rootPath() . '/components/com_content/content.class.php' );
$_MAMBOTS =& mosMambotHandler::getInstance();
// If no_html is set, we avoid starting the template, and go straight to the component
if ($no_html) {
if ($path = $mainframe->getPath( "admin" )) require $path;
exit();
}
$configuration->initGzip();
// When adminside = 3 we assume that HTML is being explicitly written and do nothing more
if ($adminside != 3) {
$path = $configuration->rootPath().'/administrator/templates/'.$mainframe->getTemplate().'/index.php';
require_once($path);
$configuration->doGzip();
}
else {
if (!isset($popup)) {
$pop = mosGetParam($_REQUEST, 'pop', '');
if ($pop) require($configuration->rootPath()."/administrator/popups/$pop");
else require($configuration->rootPath()."/administrator/popups/index3pop.php");
$configuration->doGzip();
}
}
}
// If $my was not set, the only possibility is to offer a login screen
else {
$configuration->initGzip();
$path = $configuration->rootPath().'/administrator/templates/'.$mainframe->getTemplate().'/login.php';
require_once( $path );
$configuration->doGzip();
}
}
// Finished admin side; the rest is user side code:
else {
$option = $configuration->determineOptionAndItemid();
$Itemid = $configuration->get('Itemid');
$mainframe =& new mosMainFrame($database, $option, '.');
if ($option == 'login') $configuration->handleLogin();
elseif ($option == 'logout') $configuration->handleLogout();
$session =& mosSession::getCurrent();
$my =& new mosUser();
$my->getSessionData();
mamboCore::set('currentUser',$my);
$configuration->offlineCheck($my, $database);
$gid = intval( $my->gid );
// gets template for page
$cur_template = $mainframe->getTemplate();
require_once( $configuration->rootPath().'/includes/frontend.php' );
require_once( $configuration->rootPath().'/includes/mambo.php' );
require_once ($configuration->rootPath().'/includes/mambofunc.php');
require_once ($configuration->rootPath().'/includes/mamboHTML.php');
if ($indextype == 2 AND $do_pdf == 1 ) {
include_once('includes/pdf.php');
exit();
}
/** detect first visit */
$mainframe->detect();
/** @global mosPlugin $_MAMBOTS */
$_MAMBOTS =& mosMambotHandler::getInstance();
require_once( $configuration->rootPath().'/editor/editor.php' );
require_once( $configuration->rootPath() . '/includes/gacl.class.php' );
require_once( $configuration->rootPath() . '/includes/gacl_api.class.php' );
require_once( $configuration->rootPath() . '/components/com_content/content.class.php' );
$acl = new gacl_api();
/** Get the component handler */
require_once( $configuration->rootPath() . '/includes/cmtclasses.php' );
$c_handler =& mosComponentHandler::getInstance();
$c_handler->startBuffer();
if (!$urlerror AND $path = $mainframe->getPath( 'front' )) {
$menuhandler =& mosMenuHandler::getInstance();
$ret = $menuhandler->menuCheck($Itemid, $option, $task, $gid);
$menuhandler->setPathway($Itemid);
if ($ret) {
require ($path);
}
else mosNotAuth();
}
else {
header ('<b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b> 404 Not Found');
$mainframe->setPageTitle(T_('404 Error - page not found'));
include ($configuration->rootPath().'/page404.php');
}
$c_handler->endBuffer();
$configuration->initGzip();
$configuration->standardHeaders();
if (mosGetParam($_GET, 'syndstyle', '') == 'yes') mosMainBody();
elseif ($indextype == 1) {
// loads template file
if ( !file_exists( 'templates/'. $cur_template .'/index.php' ) ) {
echo '<font color=\"red\"><b>'.T_('Template File Not Found! Looking for template').'</b></font>'.$cur_template;
} else {
require_once( 'templates/'. $cur_template .'/index.php' );
$mambothandler =& mosMambotHandler::getInstance();
$mambothandler->loadBotGroup('system');
$mambothandler->trigger('afterTemplate', array($configuration));
echo "<!-- ".time()." -->";
}
}
elseif ($indextype == 2) {
if ( $no_html == 0 ) {
// needed to seperate the ISO number from the language file constant _ISO
$iso = split( '=', _ISO );
// xml prolog
echo '<?xml version="1.0" encoding="'. $iso[1] .'"?' .'>';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "<b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b>
<html xmlns="<b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b>
<head>
<link rel="stylesheet" href="templates/<?php echo $cur_template;?>/css/template_css.css" type="text/css" />
<meta <b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b> content="text/html; <?php echo _ISO; ?>" />
<meta name="robots" content="noindex, nofollow">
</head>
<body class="contentpane">
<?php mosMainBody(); ?>
</body>
</html>
<?php
} else {
mosMainBody();
}
}
$configuration->doGzip();
}
// displays queries performed for page
if ($configuration->get('mosConfig_debug') AND $adminside != 3) $database->displayLogged();
?>
majd66
06-14-2008, 12:16 PM
سلام آقا محسن وآقای ساعدی عزیز
آقای ساعدی راه گم کردید (شوخی)
الان مشکل سر فایل CSS قالب که قالب نمی تونه استفاده کنه و فقط عکس ومتن نمایش داده می شه
شاید نام فایل یا مسیر css تغییر دادید و الان نمیتونه پیداش کنه
شما اگر قالبتون اختصاصی نیست پاکش کنید ودوباره نصبش کنید
البته آقا محسن بهتر میدونه ولی یه خورده سرش شلوغه اگه صبر کنید ایشون جوابتون سوالتون بهتر میده
موفق باشید
rapidman4002
06-14-2008, 02:32 PM
نه من هيچ تغييري در سي اس اس ندادم.
اگه چاره اي نيست دوباره نصب مي ميكنم.
براي نصب دوباره همه اطلاعات از بين ميره؟
firoozmandan
06-14-2008, 03:41 PM
سلام
همینطور که گفتم مشکل از index.php قالب هست نه CSS
مجید جان لطفا سرس قالب رو دوباره با دقت هر چه بیشتر ببین :
<link rel="alternate" type="application/rss+xml" title="ساخته شده توسط مامبو" href="<b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b> />
<link rel="shortcut icon" href="<b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b> />
<meta <b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b> content="text/html; charset=utf-8" />
<meta <b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b> content="text/css" />
<script language="javascript" type="text/javascript" src="<b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b>
<!--[if lte IE 6]>
<style type="text/css">
.clearfix { height: 1%;}
</style>
<![endif]-->
<!--[if gte IE 7.0]>
<style type="text/css">
.clearfix { display: inline-block;}
</style>
<![endif]-->
<link href="<b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b> rel="stylesheet" type="text/css" media="screen" />
<link href="<b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b> rel="stylesheet" type="text/css" media="screen" />
<link href="<b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b> rel="stylesheet" type="text/css" media="screen" />
<link href="<b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b> rel="stylesheet" type="text/css" media="screen" />
این یه تیکه از سرس هست ... همینطور که میبینید لینک میشن به forbidden ...
به عنوان مثال <b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b> و یا <b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b>
که اصلا وجود خارجی نداره !!!
سامان عزیز شما سرس فایل index.php رو گذاشتید اما این فایل مربوط به قالب نیست .
وارد پوشه templates بشید سپس وارد فولدر قالب مربوطه بشید و سرس فایل index.php رو اینجا قرار بدید
یا علی
majd66
06-14-2008, 04:36 PM
سامان جان شما قالب رو عوض کنید اینطوری اطلاعات از بین نمیره چون اطلاعات شما توی بانک اطلاعاتی(نیاز به نصب مجدد مامبو نیست)
ولی همونطور که آقا محسن گفت شما بردید توی پوشه templates و فایل index.php قالبتون اینجا بزارید .
موفق باشید
rapidman4002
06-16-2008, 09:57 AM
اينم فايل ايندكس قالب:
<?php
/*------------------------------------------------------------------------
# JA Sabina - June, 2007
# ------------------------------------------------------------------------
# Copyright (C) 2004-2007 Saman Saedi
# Saman Saedi
# Author: WebData Disegn
# Websites: <b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b> - <b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b>
-------------------------------------------------------------------------*/
defined( '_VALID_MOS' ) or die( 'Restricted access' );
$iso = split( '=', _ISO );
$ja_template_name = 'ja_sabina';
$ja_template_path = $mosConfig_live_site.'/templates/'.$ja_template_name;
$ja_template_absolute_path = $mosConfig_absolute_path.'/templates/'.$ja_template_name;
require($ja_template_absolute_path."/ja_splitmenu.php");
$topnav = ja_topNav('منوی بالا', array('default'));
$subnav = ja_subNav('منوی بالا');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "<b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b>
<html xmlns="<b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b>
<head>
<?php mosShowHead(); ?>
<meta <b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b> content="text/html; charset=utf-8" />
<meta <b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b> content="text/css" />
<script language="javascript" type="text/javascript" src="<?php echo $ja_template_path;?>/scripts/ja.script.js"></script>
<!--[if lte IE 6]>
<style type="text/css">
.clearfix { height: 1%;}
</style>
<![endif]-->
<!--[if gte IE 7.0]>
<style type="text/css">
.clearfix { display: inline-block;}
</style>
<![endif]-->
<link href="<?php echo $ja_template_path;?>/css/template_css.css" rel="stylesheet" type="text/css" media="screen" />
<link href="<?php echo $ja_template_path;?>/css/layout.css" rel="stylesheet" type="text/css" media="screen" />
<link href="<?php echo $ja_template_path;?>/css/mambo.css" rel="stylesheet" type="text/css" media="screen" />
<link href="<?php echo $ja_template_path;?>/ja_splitmenu/ja-splitmenu.css" rel="stylesheet" type="text/css" media="screen" />
<title>سایت تخصصی ماشین</title>
</head>
<body id="bd" bgcolor="#000000">
<div id="ja-wrapper">
<div id="ja-wrapper2">
<!-- BEGIN: HEADER -->
<div id="ja-headerwrap">
<div id="ja-header" class="clearfix">
<h1>
<a href="index.php">
<img src="<?php echo $ja_template_path;?>/images/god.jpg" width="0" height="0" border="0" alt="بسم الله الرحمن رحیم"/>
</a>
</h1>
</div>
<?php if ( mosCountModules( 'user4') ) { ?>
<div id="ja-search">
<?php mosLoadModules ( 'user4', -1 ); ?>
</div>
<?php } ?>
</div>
<!-- END: HEADER -->
<!-- BEGIN: MAIN NAVIGATION -->
<div id="ja-mainnavwrap1">
<div id="ja-mainnavwrap2">
<div id="ja-mainnav" class="clearfix">
<?php
echo $topnav;
?>
</div>
</div>
</div>
<!-- END: MAIN NAVIGATION -->
<!-- BEGIN: SUBNAV -->
<?php if ($subnav) { ?>
<div id="ja-subnavwrap" class="clearfix">
<div id="ja-subnav">
<?php echo $subnav; ?>
</div>
</div>
<?php } ?>
<!-- END: SUBNAV -->
<div id="ja-containerwrap">
<div id="ja-container" class="clearfix">
<!-- BEGIN: TOP SPOTLIGHT -->
<div id="ja-mainheadwrap">
<div id="ja-mainhead" class="clearfix">
<div id="ja-lefthead">
<?php if ( mosCountModules('top') ) { ?>
<?php //mosLoadModules('top',-2); ?>
<?php } ?>
</div>
<?php if ( mosCountModules('user6') ) { ?>
<div id="ja-righthead">
<?php mosLoadModules('user6',-2); ?>
</div>
<?php } ?>
</div>
</div>
<!-- END: TOP SPOTLIGHT -->
<!-- BEGIN: CONTENT -->
<div id="ja-content">
<div class="innerpad">
<div id="ja-pathway">
<strong>شما در حال بازدید از &nbsp;</strong><?php mosPathway(); ?>
<strong> می باشید.</strong></div>
<div id="ja-current-content">
<?php mosLoadModules('banner',-2); ?>
<?php mosMainBody(); ?>
</div>
</div>
</div>
<!-- END: CONTENT -->
<!-- BEGIN: RIGHT COLUMNS -->
<div id="ja-colwrap">
<div id="ja-rightcol">
<?php mosLoadModules('right',-2); ?>
<?php mosLoadModules('left',-2); ?>
</div>
</div><br />
<!-- END: RIGHT COLUMNS -->
</div>
</div>
<!-- BEGIN: BOTTOM SPOTLIGHT -->
<div id="ja-botslwrap">
<div id="ja-botsl" class="clearfix">
<?php if ( mosCountModules('user1') ) { ?>
<div class="ja-box">
<div class="ja-box-inner">
<?php mosLoadModules('user1',-2); ?>
</div>
</div>
<?php } ?>
<?php if ( mosCountModules('user2') ) { ?>
<div class="ja-box">
<div class="ja-box-inner">
<?php mosLoadModules('user2',-2); ?>
</div>
</div>
<?php } ?>
<?php if ( mosCountModules('user3') ) { ?>
<div class="ja-box">
<div class="ja-box-inner">
<?php mosLoadModules('user3',-2); ?>
</div>
</div>
<?php } ?>
</div>
</div>
<!-- END: BOTTOM SPOTLIGHT -->
<!-- BEGIN: FOOTER -->
<div id="ja-footerwrap">
<div id="footer">
<span id="siteinfo">
<a href="<b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b> target="_blank" title="Our site is valid XHTML 1.0 Transitional"><img src="<?php echo $ja_template_path;?>/images/buttonXHTML.gif" border="0" alt="Our site is valid XHTML Transitional" /></a>
<a href="<b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b> echo $mosConfig_live_site;?>" target="_blank" title="Our site is valid CSS"><img src="<?php echo $ja_template_path;?>/images/buttonCSS.gif" border="0" alt="Our site is valid CSS" /></a>
<a href="<?php echo $mosConfig_live_site;?>/index2.php?option=com_rss&amp;feed=RSS2.0&amp;no_h tml=1" target="_blank" title="We use RSS 2.0"><img src="<?php echo $ja_template_path;?>/images/buttonRSS.gif" border="0" alt="We use RSS 2.0" /></a>
</span>
<?php mosLoadModules('bottom', -1); ?>
<div id="copyright">
<?php include_once( $mosConfig_absolute_path.'/includes/footer.php' ); ?>
</div>
</div>
</div>
<!-- END: FOOTER -->
</div>
</div><!-- PersianStat -->
<!-- URL: <b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b> -->
<script language='javascript' type='text/javascript' src='<b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b>;></script>
<script language='javascript' type='text/javascript'>
persianstat(10039423, 0);
</script>
<!-- /PersianStat -->
</body>
</html>
firoozmandan
06-22-2008, 06:21 AM
سلام
کد زیر رو جایگزین index.php قالب کنید و چک کنید :
<?php
/*------------------------------------------------------------------------
# JA Sabina - June, 2007
# ------------------------------------------------------------------------
# Copyright (C) 2004-2007 Saman Saedi
# Saman Saedi
# Author: WebData Disegn
# Websites: <b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b> - <b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b>
-------------------------------------------------------------------------*/
defined( '_VALID_MOS' ) or die( 'Restricted access' );
$iso = split( '=', _ISO );
$ja_template_name = 'ja_sabina';
$ja_template_path = $mosConfig_live_site.'/templates/'.$ja_template_name;
$ja_template_absolute_path = $mosConfig_absolute_path.'/templates/'.$ja_template_name;
require($ja_template_absolute_path."/ja_splitmenu.php");
$topnav = ja_topNav('منوی بالا', array('default'));
$subnav = ja_subNav('منوی بالا');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "<b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b>
<html xmlns="<b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b>
<head>
<?php mosShowHead(); ?>
<meta <b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b> content="text/html; charset=utf-8" />
<meta <b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b> content="text/css" />
<script language="javascript" type="text/javascript" src="<?php echo $mosConfig_live_site; ?>/templates/ja_sabina/scripts/ja.script.js"></script>
<!--[if lte IE 6]>
<style type="text/css">
.clearfix { height: 1%;}
</style>
<![endif]-->
<!--[if gte IE 7.0]>
<style type="text/css">
.clearfix { display: inline-block;}
</style>
<![endif]-->
<link href="<?php echo $mosConfig_live_site; ?>/templates/ja_sabina/css/template_css.css" rel="stylesheet" type="text/css" media="screen" />
<link href="<?php echo $mosConfig_live_site; ?>/templates/ja_sabina/css/layout.css" rel="stylesheet" type="text/css" media="screen" />
<link href="<?php echo $mosConfig_live_site; ?>/templates/ja_sabina/css/mambo.css" rel="stylesheet" type="text/css" media="screen" />
<link href="<?php echo $mosConfig_live_site; ?>/templates/ja_sabina/ja_splitmenu/ja-splitmenu.css" rel="stylesheet" type="text/css" media="screen" />
<title>سایت تخصصی ماشین</title>
</head>
<body id="bd" bgcolor="#000000">
<div id="ja-wrapper">
<div id="ja-wrapper2">
<!-- BEGIN: HEADER -->
<div id="ja-headerwrap">
<div id="ja-header" class="clearfix">
<h1>
<a href="index.php">
<img src="<?php echo $mosConfig_live_site; ?>/templates/ja_sabina/images/god.jpg" width="0" height="0" border="0" alt="بسم الله الرحمن رحیم"/>
</a>
</h1>
</div>
<?php if ( mosCountModules( 'user4') ) { ?>
<div id="ja-search">
<?php mosLoadModules ( 'user4', -1 ); ?>
</div>
<?php } ?>
</div>
<!-- END: HEADER -->
<!-- BEGIN: MAIN NAVIGATION -->
<div id="ja-mainnavwrap1">
<div id="ja-mainnavwrap2">
<div id="ja-mainnav" class="clearfix">
<?php
echo $topnav;
?>
</div>
</div>
</div>
<!-- END: MAIN NAVIGATION -->
<!-- BEGIN: SUBNAV -->
<?php if ($subnav) { ?>
<div id="ja-subnavwrap" class="clearfix">
<div id="ja-subnav">
<?php echo $subnav; ?>
</div>
</div>
<?php } ?>
<!-- END: SUBNAV -->
<div id="ja-containerwrap">
<div id="ja-container" class="clearfix">
<!-- BEGIN: TOP SPOTLIGHT -->
<div id="ja-mainheadwrap">
<div id="ja-mainhead" class="clearfix">
<div id="ja-lefthead">
<?php if ( mosCountModules('top') ) { ?>
<?php //mosLoadModules('top',-2); ?>
<?php } ?>
</div>
<?php if ( mosCountModules('user6') ) { ?>
<div id="ja-righthead">
<?php mosLoadModules('user6',-2); ?>
</div>
<?php } ?>
</div>
</div>
<!-- END: TOP SPOTLIGHT -->
<!-- BEGIN: CONTENT -->
<div id="ja-content">
<div class="innerpad">
<div id="ja-pathway">
<strong>شما در حال بازدید از &nbsp;</strong><?php mosPathway(); ?>
<strong> می باشید.</strong></div>
<div id="ja-current-content">
<?php mosLoadModules('banner',-2); ?>
<?php mosMainBody(); ?>
</div>
</div>
</div>
<!-- END: CONTENT -->
<!-- BEGIN: RIGHT COLUMNS -->
<div id="ja-colwrap">
<div id="ja-rightcol">
<?php mosLoadModules('right',-2); ?>
<?php mosLoadModules('left',-2); ?>
</div>
</div><br />
<!-- END: RIGHT COLUMNS -->
</div>
</div>
<!-- BEGIN: BOTTOM SPOTLIGHT -->
<div id="ja-botslwrap">
<div id="ja-botsl" class="clearfix">
<?php if ( mosCountModules('user1') ) { ?>
<div class="ja-box">
<div class="ja-box-inner">
<?php mosLoadModules('user1',-2); ?>
</div>
</div>
<?php } ?>
<?php if ( mosCountModules('user2') ) { ?>
<div class="ja-box">
<div class="ja-box-inner">
<?php mosLoadModules('user2',-2); ?>
</div>
</div>
<?php } ?>
<?php if ( mosCountModules('user3') ) { ?>
<div class="ja-box">
<div class="ja-box-inner">
<?php mosLoadModules('user3',-2); ?>
</div>
</div>
<?php } ?>
</div>
</div>
<!-- END: BOTTOM SPOTLIGHT -->
<!-- BEGIN: FOOTER -->
<div id="ja-footerwrap">
<div id="footer">
<span id="siteinfo">
<a href="<b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b> target="_blank" title="Our site is valid XHTML 1.0 Transitional"><img src="<?php echo $mosConfig_live_site; ?>/templates/ja_sabina/images/buttonXHTML.gif" border="0" alt="Our site is valid XHTML Transitional" /></a>
<a href="<b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b> echo $mosConfig_live_site;?>" target="_blank" title="Our site is valid CSS"><img src="<?php echo $mosConfig_live_site; ?>/templates/ja_sabina/images/buttonCSS.gif" border="0" alt="Our site is valid CSS" /></a>
<a href="<?php echo $mosConfig_live_site;?>/index2.php?option=com_rss&amp;feed=RSS2.0&amp;no_h tml=1" target="_blank" title="We use RSS 2.0"><img src="<?php echo $mosConfig_live_site; ?>/templates/ja_sabina/images/buttonRSS.gif" border="0" alt="We use RSS 2.0" /></a>
</span>
<?php mosLoadModules('bottom', -1); ?>
<div id="copyright">
<?php include_once( $mosConfig_absolute_path.'/includes/footer.php' ); ?>
</div>
</div>
</div>
<!-- END: FOOTER -->
</div>
</div><!-- PersianStat -->
<!-- URL: <b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b> -->
<script language='javascript' type='text/javascript' src='<b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b>;></script>
<script language='javascript' type='text/javascript'>
persianstat(10039423, 0);
</script>
<!-- /PersianStat -->
</body>
</html>
یا علی
vBulletin® v4.2.5, Copyright ©2000-2026, Jelsoft Enterprises Ltd.