PHP eroare: Call to undefined function
Scris: Sâm Oct 03, 2015
salut, am instalat un script de upload fisere, toate bune si frumoase, cand intru in index pagini
imi da erroare :
La Index.php 103 :
Cod index.php
imi da erroare :
Cod: Selectaţi tot
Fatal error: Call to undefined function _l() in /home/rohostin/public_html/index.php on line 103
Cod: Selectaţi tot
<li><a href="<?php echo $_CONFIG['site_url']; ?>/page/login" class="create-account"><?php echo _L("Create account:"); ?></a></li>
Cod: Selectaţi tot
<?php
session_start();
// basic config start
include('config.php');
// check user to set maxfileupload limit!
if ($_SESSION['user_logged'] === 1 && $_SESSION['user_id'] != "") {
$getuserlevel = mycustomdb()->query("select user_plan from users where id='".$_SESSION['user_id']."' LIMIT 1");
$getuserlevel = $getuserlevel->fetch(PDO::FETCH_ASSOC);
$getuserlevel = $getuserlevel['user_plan'];
switch ($getuserlevel) {
case '0':
$upconfig = 1073741824;
break;
case 'Premium Free':
$upconfig = 11811160064;
break;
case (substr($getuserlevel, 0, 2) == '1|'):
$upconfig = 11811160064;
break;
case (substr($getuserlevel, 0, 2) == '6|'):
$upconfig = 11811160064;
break;
case (substr($getuserlevel, 0, 3) == '12|'):
$upconfig = 11811160064;
break;
}
} else { $upconfig = 1073741824; }
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<?php echo "<!--\n\x20\x20 \x20\x20\x20\x20 \x20\x20\x20\x2e_\x5f\x20 .\x5f\x5f\x20 \x20_\x5f_\x5f_\x2e_\x5f\x20 \x20\x20\x20 \x20\x20 \x20 \x20 \x20\x20 \x20\x20 \x20\x20 \x20\n \x20____\x20 __ \x5f\x5f| | \x7c\x20 |\x5f\x2f\x20\x5f_\x5f_\x5c_\x5f\x7c_\x5f \x20\x5f__ \x20\x5f\x5f\x5f_\x20\x20_\x5f\x5f\x5f ___\x5f_\x20 \n\x20/ \x5c| \x20|\x20\x20\x5c \x20\x7c \x7c\x20 \x7c\\\x20 _\x5f\\\x7c \\ \\/\x20\x20/\x20_/\x20_\x5f\x5f\x5c/\x20\x20_ \\ /\x20\x20\x20\x20 \\ \n\x7c \x20 \x7c\x20 \\ |\x20\x20\x2f\x20\x20|\x5f\x7c\x20\x20|_|\x20\x20\x7c\x20\x20|\x20 \x7c\x3e \x20\x20 <\x20 \x5c \x20\\__( \x20\x3c\x5f> \x29\x20\x20Y \x59 \x5c\n\x7c_\x5f_\x7c\x20 \x2f___\x5f/\x7c____/\x5f\x5f__\x2f__|\x20\x20\x7c__/__\x2f\x5c\x5f \x5c /\x5c__\x5f\x20\x20>\x5f_\x5f_/|_\x5f|_|\x20\x20\x2f\n\x20 \x20 \x20\\/ \x20 \x20 \x20\x20\x20\x20 \x20\x20 \x20 \\/ \x5c\x2f\x20\x20\x20\\\x2f \x20 \x20 \x20 \x5c\x2f\x20\nCr\x65\x61ted by \x6e\x75\x6cl\x66i\x78 @\x20n\x75\x6clf\x69\x78.\x63\x6f\x6d\n-->";?>
<head>
<title><?php echo $_CONFIG['site_name']; ?></title>
<meta http-equiv="Content-Type" content="text/xhtml; charset=utf-8" />
<meta name="description" content="<?php echo $_CONFIG['description']; ?>" />
<meta name="keywords" content="<?php echo $_CONFIG['keywords']; ?>" />
<link rel="shortcut icon" href="img/favicon.ico" type="image/ico"></link>
<link rel="stylesheet" href="css/master.css" type="text/css" media="screen"></link>
<link rel="stylesheet" href="css/fineuploader-3.9.0-3.min.css" type="text/css" ></link>
<!--<link rel="stylesheet" type="text/css" href="css/custom.css"></link>
<link rel="stylesheet" type="text/css" href="css/button.css" media="screen"></link>
<link rel="stylesheet" type="text/css" href="css/jquery-ui-1.8.19.custom.css" media="screen"></link>-->
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script>
<script type="text/javascript" src="js/fineuploader-3.9.0-3.min.js"></script>
<script type="text/javascript" src="js/webget.js"></script>
<script type="text/javascript">
$(document).ready(function() {
var restricteduploader = new qq.FineUploader({
// Since we're using jQuery, use the jQuery way to select the HTML element
element: $('#restricted-fine-uploader')[0],
request: {
endpoint: 'endpoint.php'
},
chunking: {
enabled: true
},
resume: {
enabled: true
},
multiple: false,
validation: {
allowedExtensions: ['jpeg', 'jpg', 'zip', 'txt', '7z', 'doc', 'avi', 'rar', 'png', 'gif', '3gpp', 'mp3', 'flv', 'wmv', 'mp3', 'mp4', 'MOV', 'xls', 'pdf'],
sizeLimit: <?php echo $upconfig;?>, // 50 kB = 50 * 1024 bytes
itemLimit: 1
},
text: {
uploadButton: 'Click or Drop'
},
showMessage: function(message) {
$('#restricted-fine-uploader').append('<div class="info">' + message + '</div>');
},
callbacks: {
onComplete: function(id, fileName, responseJSON) {
if (responseJSON.success) {
// similar behavior as an HTTP redirect
window.location.replace("./page/finish");
}
}
}
});
});
</script>
<!--[if lt IE 7]>
<style type="text/css">
body, div, img, a { behavior: url(css/iepngfix.htc); }
</style>
<![endif]-->
</head>
<body id="start">
<div id="bar">
<div id="bar-inner">
<ul id="account">
<?php if ($_SESSION['user_logged'] === 1) { ?>
<li class="signed-in-as"><?php echo _L("Signed in as:"); ?> <strong><?php echo ucfirst($_SESSION['username']); ?></strong></li>
<li><a href="<?php echo $_CONFIG['site_url']; ?>/page/files" class="your-files"><?php echo _L("Your files"); ?></a></li>
<li><a href="<?php echo $_CONFIG['site_url']; ?>/page/account" class="your-account"><?php echo _L("Your account"); ?></a></li>
<li><a href="<?php echo $_CONFIG['site_url']; ?>/page/logout" class="sign-out"><?php echo _L("Sign out"); ?></a></li>
<?php } else { ?>
<li><a href="<?php echo $_CONFIG['site_url']; ?>/page/login" class="create-account"><?php echo _L("Create account:"); ?></a></li>
<li><a href="<?php echo $_CONFIG['site_url']; ?>/page/login" class="sign-in"><?php echo _L("Sign in!"); ?></a></li>
<?php } ?>
</ul>
...etc cod html