Jump to content

Strange : Parse error: syntax error, unexpected T_CONST in blabla line 41


xao

Recommended Posts

I don`t get it, waht is wrong?!

<?php
require_once 'auth.php';
if (!isset($_SESSION['SESS_VERIFY'])) {
header("location: access-denied.php");
exit();
}
if ($_SESSION['lang'] == 'Ro') {

// setare data romania
date_default_timezone_set('Europe/Bucharest');

$today = getdate();


$zi = $today['mday'];
$luna = $today['mon'];
$lunastring = $today['month'];
$an = $today['year'];
$data = $zi.$luna.$an;
$data = (string)$data;
$ora = date('H:i:s'); 

$msg = array();
$err = array();

$luni = array (
	1=>'Ianuarie',
	2=>'Februarie',
	3=>'Martie',
	4=>'Aprilie',
	5=>'Mai',
	6=>'Iunie',
	7=>'Iulie',
	8=>'August',
	9=>'Septembrie',
	10=>'Octobrie',
	11=>'Noiembrie',
	12=>'Decembrie');

// comun
const SQL_ERR = 'SQL statement failed with error: ';
const ADD_MODEL = 'ADAUGA UN MODEL NOU';
.
.many constants..
.
}
elseif ($_SESSION['lang'] == 'It') {...

 

Thank you!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.