Bienvenido a datoweb.com!! En este foro podrás encontrar ayuda sobre diseño y desarrollo web en general. Si quieres formar parte de esta comunidad para pedir ayuda o colaborar ayudando a otros usuarios del foro solo tienes que registrarte desde el siguiente enlace: Registrarse en el Foro

Error en index.php [Solucionado]

Fatal error: Call to undefined function import_request_variables() in C:\xampp\htdocs\index.php on line 4

Aqui os pongo el index.php:
<?php

@session_start();
import_request_variables('gprc');
$time = time();
$COLOR=array('#b8e0b1', '#dae6d8');
define("blank", "N/A");
//define("bid_per_rate","1");

 // Included libraries.
include('.htinc/_mysql.inc');
include('.htinc/_general.inc');
include("class.phpmailer.php");
include ('.htinc/_function.inc');
include('./ip.php');
//include('./png_script.php');
include ('Thumbnail.class.php');

$dbh = new GenericDatabaseClass();
$functions = new auction_functions($dbh);


$qry="select * from general_setting";

$res=$dbh->query($qry);
$row=mysql_fetch_object($res);
$SITE_TITLE=stripslashes($row->site_title);
$SITE_URL=stripslashes($row->site_url);
$SITE_EMAIL=stripslashes($row->site_email);
$meta_description= stripslashes($row->meta_description);
$meta_keyword= stripslashes($row->meta_keyword);
$MAX=stripslashes($row->rows_per_page);
$footer=stripslashes($row->footer);
$History_Limit=stripslashes($row->num_bids);
$SMS_CODE=stripslashes($row->sms_code);
$SMS_KEYWORD=stripslashes($row->sms_keyword);
$SMS_RATE=stripslashes($row->sms_rate);
$INSTRUCTION=stripslashes($row->instruction);

$Time_Zone_Diff=$row->time_zone_diff;
$CURRENT_TIME=(time()+$Time_Zone_Diff);
$CURRENT_DATE=date("Y-m-d",$CURRENT_TIME);
$CURRENT_Time=date("Y-m-d H:i:s",$CURRENT_TIME);
$END_Time=date("d-m-Y H:i:s",$CURRENT_TIME);   
$Today_Time=date("H:i:s",$CURRENT_TIME);


if(strlen($INSTRUCTION)>300)
	{
	$INSTRUCTION =wordwrap(substr($INSTRUCTION, 0, 300), 20, "\n", 1);
	$INSTRUCTION = $INSTRUCTION."..."; 
	}
else
	$INSTRUCTION = wordwrap($INSTRUCTION, 20, "\n", 1);

$Small_box=stripslashes($row->small_box);
$Large_box=stripslashes($row->large_box);
$Address=stripslashes($row->address);
$Phone=stripslashes($row->phone);
$Fax=stripslashes($row->fax);
$Logo=stripslashes($row->logo);
$Paypal_Email=stripslashes($row->pay_email);
$bid_per_rate=stripslashes($row->decrease_bid);
$Friend_Bid=stripslashes($row->friend_bid);
$Authorize_Login_Id=stripslashes($row->authorize_login);

$Auc_del_time=stripslashes($row->auc_del_time);
$Bidbuddy_time=stripslashes($row->bidbuddy_time);
$First_purchase_bid=stripslashes($row->first_purchase_bid);
$Site_open_close_time=stripslashes($row->site_open_close_time);
$Site_off_msg=stripslashes($row->site_off_msg);
$Site_status=stripslashes($row->site_status);
$Signing_up=stripslashes($row->signing_up);
$Paypal_status=stripslashes($row->paypal_status);
$Authorize_status=stripslashes($row->authorize_status);
$Banner_text=stripslashes($row->banner_text);

$Small_box_left=stripslashes($row->small_box_left);
$Small_box_end=stripslashes($row->small_box_end);
$Timer_countdown=stripslashes($row->timer_countdown);
$Wait_time=stripslashes($row->wait_time);
$before_paid=stripslashes($row->before_paid);
$orderlist=stripslashes($row->orderlist);
$watermark=stripslashes($row->watermark);
$watermark_small=stripslashes($row->watermark_small);
$def_language = $row->def_language;
 
$Authorize_Transaction_Key=stripslashes($row->authorize_trans_key);
$Meta_tag='<meta name="description" content="'.$meta_description.'" >
				<meta name="keywords" content="'.$meta_keyword.'" >';
				
if($ltype)
$_SESSION['LANG']=$ltype;

if(!$_SESSION['LANG'])
	$_SESSION['LANG']=$def_language;

if($_SESSION['LANG']==1)
	$_SESSION['Lang_path']='lang_english';
else if($_SESSION['LANG']==2)
	$_SESSION['Lang_path']='lang_german';
else if($_SESSION['LANG']==3)
	$_SESSION['Lang_path']='lang_spanish';
else if($_SESSION['LANG']==4)
	$_SESSION['Lang_path']='lang_france';
else if($_SESSION['LANG']==5)
	$_SESSION['Lang_path']='lang_korea';
else if($_SESSION['LANG']==6)
	$_SESSION['Lang_path']='lang_japan';				
else if($_SESSION['LANG']==7)
	$_SESSION['Lang_path']='lang_russian';
else if($_SESSION['LANG']==8)
	$_SESSION['Lang_path']='lang_china';

$FetchInfo=@mysql_fetch_object($dbh->query("select * from language_setting where id='".$_SESSION['LANG']."'"));
$Char_set=$FetchInfo->language_characterset;

	

include('./language/'.$_SESSION['Lang_path'].'/lang_main.php');	

if(!$ltype)
	{
	$Resquet_Url=explode("?",$_SERVER['REQUEST_URI']);
	$Link_url=$Resquet_Url[1];
	}
else
	{
	$Resquet_Url=explode("?",$_SERVER['REQUEST_URI']);
	$Resquet_Url=explode("&ltype",$Resquet_Url[1]);
	$Link_url=$Resquet_Url[0];
	}
	
$Get_flags=$functions->Get_flags($Link_url);
$get_banner=$functions->get_banner($SITE_URL);
$register_form=$functions->register_form($SITE_URL);
$edit_form=$functions->edit_form($show);
$header=$functions->header($Link_url,$SITE_TITLE,$register_form,$edit_form,$Logo,$SITE_URL);
$left_menu=$functions->left_menu($INSTRUCTION,$SITE_URL);
$bottom_auction=$functions->bottom_auction($SITE_URL);
$left_category=$functions->left_category($SITE_URL);
$left_auction=$functions->left_auction($SITE_URL);
$footer=$functions->footer($SITE_URL);
$left_news=$functions->left_news();
$Curr_sign = $functions->get_currency($row->currency);



if($divert!=1)
{
	$ipMsg="Your ip has been blocked for personal account.";
	$functions->whole_site();
}
else
	$ipMsg="Your ip has been blocked for this whole site.";



if($_SESSION['SESSIONUSERID'])
{
	 $functions->Get_blank_password();
	 $unpaid_auction_id=$functions->Get_unpaid_win_auction();
	 $arr_unpaid_auction_id=explode(',',$unpaid_auction_id);
	 $unpaid_count=count($arr_unpaid_auction_id);
	 if($before_paid<$unpaid_count)
	 	$functions->Get_unpaid_user_block();
	 else
		$functions->Get_unpaid_user_unblock();
}


// What page are we to show?
if($Site_status=='Y')
{
if(!$show) $show = "index"; 
}
else if($Site_status=='N')
{
$show = "index_off"; 
}
$page = "$show.html";

// If the page is the index frameset, then just show that - no parsing!
// The index frameset is used to protect the URLs from display within the location bar of the browser,
// as well as to control the size of the display area; if this is not needed, then simply remove
// the following code.
// If there is a page-specific include file, then use it.

$my_include_file = "./.htinc/$show.inc"; if(file_exists($my_include_file)) @include("$my_include_file");

// All pages are constructed of a header and footer (located in the _html_templates.inc file)
// and then the page content which will be in .html/$skin/$page
//
// First we parse the page content for DATA_ tags which are then eval'd to replace them
// with dynamic content, and the entire structure is the sent to the browser.

$returned_page = GSL_ParseHTML($returned_page,$page);
$returned_page .= $html_config["footer"];

eval("\$returned_page = \"$returned_page\";");
echo $returned_page;

?>


Editado
0
Puntos
2093
Visitas
3
Resp
Por torquier hace 103 meses
Principiante
Respuesta #1
Arreglado por mi mismo! PAra quuien quiera saber el error Supuesta mente esa funcion solo esta disponible para versiones php 5.4 para abajo puse la verison 5.3 y listo!
1
Puntos
Por torquier hace 103 meses
Principiante
Respuesta #2
felicidades por su pagina, son de gran ayuda, gracias.
0
Puntos
Por Kavm_99 hace 103 meses
Principiante
Respuesta #3
muy bueno estas publicaciones, excelente cada día se aprende un poco mas. muy bueno ay que tomarlo en cuenta para poder realizarlo
0
Puntos
Por soraida rojas hace 103 meses
Principiante
Compartir en facebook
Compartir en twitter
Compartir
Para comentar Inicia sesión o Registrate