Нет, не локалхост, провайдер.
Начало файла (честно говоря, как и посчитать-то жту строку 25, я не знаю) 8-(((((
<?php
if( !defined( '_VALID_MOS' ) && !defined( '_JEXEC' ) ) die( 'Direct Access to '.basename(__FILE__).' is not allowed.' );
/**
*
* @version $Id: admin.virtuemart.php 2285 2010-02-01 10:57:18Z soeren_nb $
* @package VirtueMart
* @subpackage core
* @copyright Copyright (C) 2004-2008 soeren - All rights reserved.
* @license
http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
* VirtueMart is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See /administrator/components/com_virtuemart/COPYRIGHT.php for copyright notices and details.
*
*
http://virtuemart.net*/
defined( '_VM_IS_BACKEND' ) or define( '_VM_IS_BACKEND', '1' );
include( dirname(__FILE__).'/compat.joomla1.5.php');
global $VM_LANG;
//* INSTALLER SECTION *
include( $mosConfig_absolute_path.'/administrator/components/com_virtuemart/install.virtuemart.php' );
// * END INSTALLER SECTION *
// Load the VirtueMart main parse code
require_once( $mosConfig_absolute_path.'/components/'.$option.'/virtuemart_parser.php' );
$task = vmGet( $_GET, 'task', null);
if( $task == 'extlayout') {
include( $mosConfig_absolute_path.'/components/'.$option.'/js/extlayout.js.php');
exit;
}
// Include The Version File
include_once( ADMINPATH. 'version.php' );
if( !isset( $VMVERSION ) || !is_object( $VMVERSION ) ) {
$VMVERSION = new vmVersion();
}
// Get the Layout Type from the Cookie
$vmLayout = vmGet( $_COOKIE, 'vmLayout', 'standard' );
// Change the Layout Type if it is provided through GET
if( !empty( $_GET['vmLayout'])) {
$vmLayout = $_GET['vmLayout'] == 'standard' ? $_GET['vmLayout'] : 'extended';
}
// Remember the Cookie for 1 Week
ob_get_level() or ob_start();
setcookie('vmLayout', $vmLayout, time()+604800);
// pages, which are called through index3.php are PopUps, they should not need a menu (but it can be overridden by $_REQUEST['no_menu'])
$no_menu_default = strstr( $_SERVER['SCRIPT_NAME'], 'index3.php')? 1 : 0;
$no_menu = $_REQUEST['no_menu'] = vmGet( $_REQUEST, 'no_menu', $no_menu_default );
// Display the toolbar?
$no_toolbar = vmGet( $_REQUEST, 'no_toolbar', 0 );
// Display just the naked page without toolbar, menu and footer?
$only_page_default = strstr( $_SERVER['SCRIPT_NAME'], 'index3.php')? 1 : 0;
$only_page = $_REQUEST['only_page'] = vmGet( $_REQUEST, 'only_page', $only_page_default );
if( empty( $page ) || empty( $_REQUEST['page'])) {
if( !empty($_REQUEST['amp;page'])) {
$page = $_REQUEST['amp;page'];
foreach( $_REQUEST as $key => $val ) {
if( strstr( $key, 'amp;')) {
$key = str_replace( 'amp;', '', $key );
$_REQUEST[$key] = $val;
}
}
}
else {
$page = vmget( $_SESSION, 'last_page', 'store.index' );
}
}
$limit = $vm_mainframe->getUserStateFromRequest( "viewlistlimit", 'limit', $mosConfig_list_limit );
$limitstart = $vm_mainframe->getUserStateFromRequest( "view{$page}{$product_id}{$category_id}limitstart", 'limitstart', 0 );
if (defined('_DONT_VIEW_PAGE') && !isset($install_type) ) {
echo "<script type=\"text/javascript\">alert('$error. Your permissions: ".$_SESSION['auth']['perms']."')</script>\n";
}