'. $lang['IMG_DOWNLAODED'] . ': ' .
+ '
' . $lang['IMG_DOWNLAODED'] . ': ' .
htmlspecialchars($fileInfo['originalFileName']) . '
' . "\n" .
$img_html_result
);
}
else
{
- #then show other files
+ //then show other files
$else_html_result = get_up_tpl_box('file',
- array(
- 'b_title' => $lang['URL_F_FILE'],
+ [
+ 'b_title' => $lang['URL_F_FILE'],
'b_bbc_title'=> $lang['URL_F_BBC'],
- 'b_url_link'=> kleeja_get_link('file', $file_info),
- )
+ 'b_url_link' => kleeja_get_link('file', $file_info),
+ ]
);
- #add del link box to the result if there is any
+ //add del link box to the result if there is any
$else_html_result .= $extra_del;
is_array($plugin_run_result = Plugins::getInstance()->run('defaultUploader_generateOutputBox_file_result', get_defined_vars())) ? extract($plugin_run_result) : null; //run hook
- #show success message
+ //show success message
$this->addInfoMessage(
- '
'. $lang['FILE_DOWNLAODED']. ': '
+ '
' . $lang['FILE_DOWNLAODED'] . ': '
. htmlspecialchars($fileInfo['originalFileName']) . '
' . "\n" .
$else_html_result
);
@@ -326,22 +328,22 @@ class defaultUploader implements KleejaUploader
* here happens the magic, call this on upload submit
* @param int $uploadType upload from files input or links
*/
- function upload($uploadType)
+ public function upload($uploadType)
{
global $usrcp, $config, $lang;
- # when $uploadType = 1, then we upload from _file input
- # if $uploadType = 2, then we uploading from url which is disabled by default and is buggy
+ // when $uploadType = 1, then we upload from _file input
+ // if $uploadType = 2, then we uploading from url which is disabled by default and is buggy
- #upload to this folder
+ //upload to this folder
$current_uploading_folder = $config['foldername'];
- #current user id
+ //current user id
$current_user_id = $usrcp->name() ? $usrcp->id() : '-1';
- #is captcha is on?
+ //is captcha is on?
$captcha_enabled = intval($config['safe_code']);
$return_now = false;
@@ -349,52 +351,52 @@ class defaultUploader implements KleejaUploader
is_array($plugin_run_result = Plugins::getInstance()->run('defaultUploader_upload_1st', get_defined_vars())) ? extract($plugin_run_result) : null; //run hook
- # check folder our real folder
- if(!file_exists($current_uploading_folder))
+ // check folder our real folder
+ if (! file_exists($current_uploading_folder))
{
- if(!make_folder($current_uploading_folder))
+ if (! make_folder($current_uploading_folder))
{
- $this->addErrorMessage($lang['CANT_DIR_CRT']);
+ $this->addErrorMessage($lang['CANT_DIR_CRT']);
}
}
- if($return_now)
+ if ($return_now)
{
return;
}
- #no uploading yet, or just go to index.php, so we have make a new session
- if(!$uploadType)
+ //no uploading yet, or just go to index.php, so we have make a new session
+ if (! $uploadType)
{
unset($_SESSION['FIILES_NOT_DUPLI'], $_SESSION['FIILES_NOT_DUPLI_LINKS']);
}
- # is captcha on, and there is uploading going on
- if($captcha_enabled && $uploadType)
+ // is captcha on, and there is uploading going on
+ if ($captcha_enabled && $uploadType)
{
- #captcha is wrong
- if(!kleeja_check_captcha())
+ //captcha is wrong
+ if (! kleeja_check_captcha())
{
$this->addErrorMessage($lang['WRONG_VERTY_CODE']);
return;
}
}
- # to prevent flooding, user must wait, waiting-time is grapped from Kleeja settings, admin is exceptional
- if(! user_can('enter_acp') && user_is_flooding($current_user_id))
+ // to prevent flooding, user must wait, waiting-time is grapped from Kleeja settings, admin is exceptional
+ if (! user_can('enter_acp') && user_is_flooding($current_user_id))
{
- $this->addErrorMessage(sprintf($lang['YOU_HAVE_TO_WAIT'],
+ $this->addErrorMessage(sprintf($lang['YOU_HAVE_TO_WAIT'],
$current_user_id == '-1' ? $config['guestsectoupload'] : $config['usersectoupload']));
return;
}
- #detect flooding, TODO fix it or remove it
- if ($uploadType == 1 && isset($_SESSION['FIILES_NOT_DUPLI']))
+ //detect flooding, TODO fix it or remove it
+ if ($uploadType == 1 && isset($_SESSION['FIILES_NOT_DUPLI']))
{
- if(!empty($_SESSION['FIILES_NOT_DUPLI']) && $_SESSION['FIILES_NOT_DUPLI'] == sha1(serialize(array_column($_FILES, 'name'))))
+ if (! empty($_SESSION['FIILES_NOT_DUPLI']) && $_SESSION['FIILES_NOT_DUPLI'] == sha1(serialize(array_column($_FILES, 'name'))))
{
unset($_SESSION['FIILES_NOT_DUPLI']);
// if(!ip('ajax'))
@@ -407,12 +409,13 @@ class defaultUploader implements KleejaUploader
}
}
- if ($uploadType == 2 && isset($_SESSION['FIILES_NOT_DUPLI_LINKS']))
+ if ($uploadType == 2 && isset($_SESSION['FIILES_NOT_DUPLI_LINKS']))
{
- if($_SESSION['FIILES_NOT_DUPLI_LINKS'] == sha1(serialize($_POST)))
+ if ($_SESSION['FIILES_NOT_DUPLI_LINKS'] == sha1(serialize($_POST)))
{
unset($_SESSION['FIILES_NOT_DUPLI_LINKS']);
- if(!ip('ajax'))
+
+ if (! ip('ajax'))
{
redirect('./');
}
@@ -423,41 +426,41 @@ class defaultUploader implements KleejaUploader
}
- # flooding code, making sure every ok session is cleared
- if ($uploadType == 1 && sizeof($_FILES) > 0)
+ // flooding code, making sure every ok session is cleared
+ if ($uploadType == 1 && sizeof($_FILES) > 0)
{
$_SESSION['FIILES_NOT_DUPLI'] = sha1(serialize(array_column($_FILES, 'name')));
}
- elseif($uploadType == 2)
+ elseif ($uploadType == 2)
{
$_SESSION['FIILES_NOT_DUPLI_LINKS'] = sha1(serialize($_POST));
}
- #now close session to let user open any other page in Kleeja
- session_write_close();
+ //now close session to let user open any other page in Kleeja
+ session_write_close();
- # do upload
- switch($uploadType)
+ // do upload
+ switch ($uploadType)
{
- #uploading from a _files input
+ //uploading from a _files input
default:
case 1:
- if(!empty($_FILES['file']['tmp_name']))
+ if (! empty($_FILES['file']['tmp_name']))
{
$_FILES['file'][0] = $_FILES['file'];
}
- # loop the uploaded files
- for($i=0; $i<=$this->getUploadFieldsLimit(); $i++)
+ // loop the uploaded files
+ for ($i=0; $i<=$this->getUploadFieldsLimit(); $i++)
{
//no file!
- if(empty($_FILES['file_' . $i . '_']['tmp_name']) && empty($_FILES['file'][$i]['tmp_name']))
+ if (empty($_FILES['file_' . $i . '_']['tmp_name']) && empty($_FILES['file'][$i]['tmp_name']))
{
- if(is_null($_FILES['file_' . $i . '_']) && is_null($_FILES['file'][$i]))
+ if (is_null($_FILES['file_' . $i . '_']) && is_null($_FILES['file'][$i]))
{
continue;
}
@@ -489,21 +492,29 @@ class defaultUploader implements KleejaUploader
case UPLOAD_ERR_PARTIAL:
// $message = "The uploaded file was only partially uploaded";
break;
+
case UPLOAD_ERR_NO_FILE:
// $message = "No file was uploaded";
break;
+
case UPLOAD_ERR_NO_TMP_DIR:
$this->addErrorMessage('Missing a temporary folder');
+
break;
+
case UPLOAD_ERR_CANT_WRITE:
$this->addErrorMessage('Failed to write file to disk');
+
break;
+
case UPLOAD_ERR_EXTENSION:
$this->addErrorMessage('File upload stopped by extension');
+
break;
default:
$this->addErrorMessage(sprintf($lang['CANT_UPLAOD'], htmlspecialchars($filename)));
+
break;
}
@@ -519,17 +530,17 @@ class defaultUploader implements KleejaUploader
break;
- #uploading from a url text-input
+ //uploading from a url text-input
case 2:
- #if not enabled, quit it
- if($config['www_url'] != 1)
+ //if not enabled, quit it
+ if ($config['www_url'] != 1)
{
break;
}
- #loop text inputs
- for($i=0; $i<=$this->getUploadFieldsLimit(); $i++)
+ //loop text inputs
+ for ($i=0; $i<=$this->getUploadFieldsLimit(); $i++)
{
$this->uploadTypeUrl($i, $current_uploading_folder, $current_user_id);
}
@@ -539,8 +550,8 @@ class defaultUploader implements KleejaUploader
- # well, no file uploaded, ask user to choose a file before submit
- if($this->total_uploaded_files == 0 && sizeof($this->messages) == 0)
+ // well, no file uploaded, ask user to choose a file before submit
+ if ($this->total_uploaded_files == 0 && sizeof($this->messages) == 0)
{
$this->addErrorMessage($lang['CHOSE_F']);
}
@@ -553,60 +564,60 @@ class defaultUploader implements KleejaUploader
* @param $current_uploading_folder
* @param $current_user_id
*/
- function uploadTypeFile($fieldNumber, $current_uploading_folder, $current_user_id)
+ public function uploadTypeFile($fieldNumber, $current_uploading_folder, $current_user_id)
{
global $config, $lang;
- $fileInfo = array(
+ $fileInfo = [
'saveToFolder',
'originalFileName',
'generatedFileName',
'fileSize',
'currentUserId',
'fileExtension'
- );
+ ];
- $fileInfo['saveToFolder'] = $current_uploading_folder;
+ $fileInfo['saveToFolder'] = $current_uploading_folder;
$fileInfo['currentUserId'] = $current_user_id;
- if(!isset($_FILES['file_' . $fieldNumber . '_']) && isset($_FILES['file'][$fieldNumber]))
+ if (! isset($_FILES['file_' . $fieldNumber . '_']) && isset($_FILES['file'][$fieldNumber]))
{
$_FILES['file_' . $fieldNumber . '_'] = $_FILES['file'][$fieldNumber];
}
- # file name
+ // file name
$fileInfo['originalFileName'] = isset($_FILES['file_' . $fieldNumber . '_']['name'])
- ? urldecode(str_replace(array(';',','), '', $_FILES['file_' . $fieldNumber . '_']['name']))
+ ? urldecode(str_replace([';',','], '', $_FILES['file_' . $fieldNumber . '_']['name']))
: '';
- if(empty($fileInfo['originalFileName']))
+ if (empty($fileInfo['originalFileName']))
{
$this->addErrorMessage(sprintf($lang['WRONG_F_NAME'], htmlspecialchars($_FILES['file_' . $fieldNumber . '_']['name'])));
return;
}
- # get the extension of file
+ // get the extension of file
$fileInfo['fileExtension'] = strtolower(array_pop(explode('.', $fileInfo['originalFileName'])));
- # them the size
- $fileInfo['fileSize'] = !empty($_FILES['file_' . $fieldNumber . '_']['size'])
+ // them the size
+ $fileInfo['fileSize'] = ! empty($_FILES['file_' . $fieldNumber . '_']['size'])
? intval($_FILES['file_' . $fieldNumber . '_']['size'])
: 0;
- # get the other filename, changed depend on kleeja settings
+ // get the other filename, changed depend on kleeja settings
$fileInfo['generatedFileName'] = change_filename_decoding($fileInfo['originalFileName'], $fieldNumber, $fileInfo['fileExtension']);
- # filename templates {rand:..}, {date:..}
+ // filename templates {rand:..}, {date:..}
$fileInfo['generatedFileName'] = change_filename_templates(trim($config['prefixname']) . $fileInfo['generatedFileName']);
- # file exists before? change it a little
- if(file_exists($current_uploading_folder . '/' . $fileInfo['generatedFileName']))
+ // file exists before? change it a little
+ if (file_exists($current_uploading_folder . '/' . $fileInfo['generatedFileName']))
{
$fileInfo['generatedFileName'] = change_filename_decoding(
$fileInfo['generatedFileName'],
@@ -618,41 +629,41 @@ class defaultUploader implements KleejaUploader
is_array($plugin_run_result = Plugins::getInstance()->run('defaultUploader_uploadTypeFile_1st', get_defined_vars())) ? extract($plugin_run_result) : null; //run hook
- # now, let process it
- if(!in_array(strtolower($fileInfo['fileExtension']), array_keys($this->getAllowedFileExtensions())))
+ // now, let process it
+ if (! in_array(strtolower($fileInfo['fileExtension']), array_keys($this->getAllowedFileExtensions())))
{
- # guest
- if($current_user_id == '-1')
+ // guest
+ if ($current_user_id == '-1')
{
$this->addErrorMessage(
sprintf($lang['FORBID_EXT'], $fileInfo['fileExtension'])
- . '
' . $lang['REGISTER'] . ''
);
}
- # a member
+ // a member
else
{
$this->addErrorMessage(sprintf($lang['FORBID_EXT'], $fileInfo['fileExtension']));
}
}
- # bad chars in the filename
- elseif(preg_match ("#[\\\/\:\*\?\<\>\|\"]#", $fileInfo['generatedFileName']))
+ // bad chars in the filename
+ elseif (preg_match ("#[\\\/\:\*\?\<\>\|\"]#", $fileInfo['generatedFileName']))
{
$this->addErrorMessage(sprintf($lang['WRONG_F_NAME'], htmlspecialchars($_FILES['file_' . $fieldNumber . '_']['name'])));
}
- # check file extension for bad stuff
- elseif(ext_check_safe($_FILES['file_' . $fieldNumber . '_']['name']) == false)
+ // check file extension for bad stuff
+ elseif (ext_check_safe($_FILES['file_' . $fieldNumber . '_']['name']) == false)
{
$this->addErrorMessage(sprintf($lang['WRONG_F_NAME'], htmlspecialchars($_FILES['file_' . $fieldNumber . '_']['name'])));
}
- # check the mime-type for the file
- elseif(check_mime_type($_FILES['file_' . $fieldNumber . '_']['type'], $fileInfo['fileExtension'], $_FILES['file_' . $fieldNumber . '_']['tmp_name']) == false)
+ // check the mime-type for the file
+ elseif (check_mime_type($_FILES['file_' . $fieldNumber . '_']['type'], $fileInfo['fileExtension'], $_FILES['file_' . $fieldNumber . '_']['tmp_name']) == false)
{
$this->addErrorMessage(sprintf($lang['NOT_SAFE_FILE'], htmlspecialchars($_FILES['file_' . $fieldNumber . '_']['name'])));
}
- # check file size
- elseif($this->getAllowedFileExtensions()[$fileInfo['fileExtension']] > 0 && $fileInfo['fileSize'] >= $this->getAllowedFileExtensions()[$fileInfo['fileExtension']])
+ // check file size
+ elseif ($this->getAllowedFileExtensions()[$fileInfo['fileExtension']] > 0 && $fileInfo['fileSize'] >= $this->getAllowedFileExtensions()[$fileInfo['fileExtension']])
{
$this->addErrorMessage(sprintf(
$lang['SIZE_F_BIG'],
@@ -660,13 +671,13 @@ class defaultUploader implements KleejaUploader
readable_size($this->getAllowedFileExtensions()[$fileInfo['fileExtension']]))
);
}
- # no errors, so upload it
+ // no errors, so upload it
else
{
is_array($plugin_run_result = Plugins::getInstance()->run('defaultUploader_uploadTypeFile_2nd', get_defined_vars())) ? extract($plugin_run_result) : null; //run hook
- # now, upload the file
- $file = move_uploaded_file($_FILES['file_' . $fieldNumber . '_']['tmp_name'], $current_uploading_folder . "/" . $fileInfo['generatedFileName']);
+ // now, upload the file
+ $file = move_uploaded_file($_FILES['file_' . $fieldNumber . '_']['tmp_name'], $current_uploading_folder . '/' . $fileInfo['generatedFileName']);
if ($file)
{
@@ -674,7 +685,7 @@ class defaultUploader implements KleejaUploader
}
else
{
- $this->addErrorMessage(sprintf($lang['CANT_UPLAOD'], $fileInfo['originalFileName']));
+ $this->addErrorMessage(sprintf($lang['CANT_UPLAOD'], $fileInfo['originalFileName']));
}
}
}
@@ -686,43 +697,43 @@ class defaultUploader implements KleejaUploader
* @param $current_uploading_folder
* @param $current_user_id
*/
- function uploadTypeUrl($fieldNumber, $current_uploading_folder, $current_user_id)
+ public function uploadTypeUrl($fieldNumber, $current_uploading_folder, $current_user_id)
{
global $config, $lang;
- $fileInfo = array(
+ $fileInfo = [
'saveToFolder',
'originalFileName',
'generatedFileName',
'fileSize',
'currentUserId',
'fileExtension'
- );
+ ];
- $fileInfo['saveToFolder'] = $current_uploading_folder;
+ $fileInfo['saveToFolder'] = $current_uploading_folder;
$fileInfo['currentUserId'] = $current_user_id;
- if(p('file_' . $fieldNumber . '_') == '' || p('file_' . $fieldNumber . '_') == $lang['PAST_URL_HERE'])
+ if (p('file_' . $fieldNumber . '_') == '' || p('file_' . $fieldNumber . '_') == $lang['PAST_URL_HERE'])
{
return;
}
- # get file name
+ // get file name
$fileInfo['originalFileName'] = basename(p('file_' . $fieldNumber . '_'));
- # file extension, type
- $fileExtensions = array_map('strtolower', explode(".", $fileInfo['originalFileName']));
+ // file extension, type
+ $fileExtensions = array_map('strtolower', explode('.', $fileInfo['originalFileName']));
- if(sizeof($fileExtensions) > 1 && in_array($fileExtensions[sizeof($fileExtensions)-1], array('html', 'php', 'html')))
+ if (sizeof($fileExtensions) > 1 && in_array($fileExtensions[sizeof($fileExtensions)-1], ['html', 'php', 'html']))
{
$fileInfo['fileExtension'] = strtolower($fileExtensions[sizeof($fileExtensions)-2]);
}
- else if(sizeof($fileExtensions) > 0)
+ elseif (sizeof($fileExtensions) > 0)
{
$fileInfo['fileExtension'] = strtolower($fileExtensions[sizeof($fileExtensions)-1]);
}
@@ -732,7 +743,7 @@ class defaultUploader implements KleejaUploader
}
- # change to another filename depend on kleeja settings
+ // change to another filename depend on kleeja settings
$fileInfo['generatedFileName'] = change_filename_decoding($fileInfo['originalFileName'], $fieldNumber, $fileInfo['fileExtension']);
$fileInfo['generatedFileName'] = change_filename_templates(trim($config['prefixname']) . $fileInfo['generatedFileName']);
@@ -740,45 +751,44 @@ class defaultUploader implements KleejaUploader
is_array($plugin_run_result = Plugins::getInstance()->run('defaultUploader_uploadTypeUrl_1st', get_defined_vars())) ? extract($plugin_run_result) : null; //run hook
- #forbbiden type ? quit it
- if(!in_array(strtolower($fileInfo['fileExtension']), array_keys($this->getAllowedFileExtensions())))
+ //forbbiden type ? quit it
+ if (! in_array(strtolower($fileInfo['fileExtension']), array_keys($this->getAllowedFileExtensions())))
{
- if($current_user_id == '-1')
+ if ($current_user_id == '-1')
{
$this->addErrorMessage(
sprintf($lang['FORBID_EXT'], $fileInfo['fileExtension']) .
- '
' .
+ '
' .
$lang['REGISTER'] . ''
);
}
- # a member
+ // a member
else
{
$this->addErrorMessage(sprintf($lang['FORBID_EXT'], $fileInfo['fileExtension']));
}
}
- # file exists before ? quit it
- elseif(file_exists($current_uploading_folder . '/' . $fileInfo['generatedFileName']))
+ // file exists before ? quit it
+ elseif (file_exists($current_uploading_folder . '/' . $fileInfo['generatedFileName']))
{
$this->addErrorMessage(sprintf($lang['SAME_FILE_EXIST'], htmlspecialchars($fileInfo['generatedFileName'])));
}
- # no errors, ok, lets upload now
+ // no errors, ok, lets upload now
else
{
-
is_array($plugin_run_result = Plugins::getInstance()->run('defaultUploader_uploadTypeUrl_2nd', get_defined_vars())) ? extract($plugin_run_result) : null; //run hook
- #no prefix ? http or even ftp, then add one
- if(!in_array(strtolower(substr(p('file_' . $fieldNumber . '_'), 0, 4)), array('http', 'ftp:')))
+ //no prefix ? http or even ftp, then add one
+ if (! in_array(strtolower(substr(p('file_' . $fieldNumber . '_'), 0, 4)), ['http', 'ftp:']))
{
$_POST['file_' . $fieldNumber . '_'] = 'http://' . p('file_' . $fieldNumber . '_');
}
- #get size, if big quit it
+ //get size, if big quit it
$fileInfo['fileSize'] = get_remote_file_size(p('file_' . $fieldNumber . '_'));
- if($this->getAllowedFileExtensions()[$fileInfo['fileExtension']] > 0 && $fileInfo['fileSize'] >= $this->getAllowedFileExtensions()[$fileInfo['fileExtension']])
+ if ($this->getAllowedFileExtensions()[$fileInfo['fileExtension']] > 0 && $fileInfo['fileSize'] >= $this->getAllowedFileExtensions()[$fileInfo['fileExtension']])
{
$this->addErrorMessage(sprintf(
$lang['SIZE_F_BIG'],
@@ -788,17 +798,17 @@ class defaultUploader implements KleejaUploader
}
else
{
- #get remote data, if no data quit it
+ //get remote data, if no data quit it
$data = fetch_remote_file(
p('file_' . $fieldNumber . '_'),
- $current_uploading_folder . "/" . $fileInfo['generatedFileName'],
+ $current_uploading_folder . '/' . $fileInfo['generatedFileName'],
15,
false,
2,
true
);
- if($data === false)
+ if ($data === false)
{
$this->addErrorMessage($lang['URL_CANT_GET']);
}
diff --git a/includes/usr.php b/includes/usr.php
index 10f73dd..c807e75 100755
--- a/includes/usr.php
+++ b/includes/usr.php
@@ -9,535 +9,522 @@
//no for directly open
-if (!defined('IN_COMMON'))
+if (! defined('IN_COMMON'))
{
- exit();
+ exit();
}
class usrcp
{
- // this function like a traffic sign :)
- function data ($name, $pass, $hashed = false, $expire = 86400, $loginadm = false)
- {
- global $config, $userinfo;
+ // this function like a traffic sign :)
+ public function data ($name, $pass, $hashed = false, $expire = 86400, $loginadm = false)
+ {
+ global $config, $userinfo;
- //return user system to normal
- if(defined('DISABLE_INTR') || $config['user_system'] == '' || empty($config['user_system']))
- {
- $config['user_system'] = '1';
- }
-
+ //return user system to normal
+ if (defined('DISABLE_INTR') || $config['user_system'] == '' || empty($config['user_system']))
+ {
+ $config['user_system'] = '1';
+ }
- //expire
- $expire = time() + ((int) $expire ? intval($expire) : 86400);
- $return_now = $login_status = false;
+ //expire
+ $expire = time() + ((int) $expire ? intval($expire) : 86400);
+
+ $return_now = $login_status = false;
is_array($plugin_run_result = Plugins::getInstance()->run('data_func_usr_class', get_defined_vars())) ? extract($plugin_run_result) : null; //run hook
- if($return_now)
+ if ($return_now)
{
return $login_status;
}
- if((int) $config['user_system'] != 1)
- {
- if(file_exists(PATH . 'includes/auth_integration/' . trim($config['user_system']) . '.php'))
- {
- include_once PATH . 'includes/auth_integration/' . trim($config['user_system']) . '.php';
- $login_status = kleeja_auth_login(trim($name), trim($pass), $hashed, $expire, $loginadm);
+ if ((int) $config['user_system'] != 1)
+ {
+ if (file_exists(PATH . 'includes/auth_integration/' . trim($config['user_system']) . '.php'))
+ {
+ include_once PATH . 'includes/auth_integration/' . trim($config['user_system']) . '.php';
+ $login_status = kleeja_auth_login(trim($name), trim($pass), $hashed, $expire, $loginadm);
- return $login_status;
- }
- }
+ return $login_status;
+ }
+ }
- //normal
- return $this->normal(trim($name), trim($pass), $hashed, $expire, $loginadm);
- }
+ //normal
+ return $this->normal(trim($name), trim($pass), $hashed, $expire, $loginadm);
+ }
- //get username by id
- function usernamebyid($user_id)
- {
- global $config;
+ //get username by id
+ public function usernamebyid($user_id)
+ {
+ global $config;
- //return user system to normal
- if(defined('DISABLE_INTR'))
- {
- $config['user_system'] = 1;
- }
+ //return user system to normal
+ if (defined('DISABLE_INTR'))
+ {
+ $config['user_system'] = 1;
+ }
$return_now = $auth_status = false;
is_array($plugin_run_result = Plugins::getInstance()->run('auth_func_usr_class', get_defined_vars())) ? extract($plugin_run_result) : null; //run hook
- if($return_now)
+ if ($return_now)
{
return $auth_status;
}
- if((int) $config['user_system'] != 1)
- {
- if(file_exists(PATH . 'includes/auth_integration/' . trim($config['user_system']) . '.php'))
- {
- include_once (PATH . 'includes/auth_integration/' . trim($config['user_system']) . '.php');
- return kleeja_auth_username($user_id);
- }
- }
+ if ((int) $config['user_system'] != 1)
+ {
+ if (file_exists(PATH . 'includes/auth_integration/' . trim($config['user_system']) . '.php'))
+ {
+ include_once PATH . 'includes/auth_integration/' . trim($config['user_system']) . '.php';
+ return kleeja_auth_username($user_id);
+ }
+ }
- //normal system
- $u = $this->get_data('name', $user_id);
- return $u['name'];
- }
+ //normal system
+ $u = $this->get_data('name', $user_id);
+ return $u['name'];
+ }
- //now our table, normal user system
- function normal ($name, $pass, $hashed = false, $expire, $loginadm = false)
- {
- global $SQL, $dbprefix, $config, $userinfo;
+ //now our table, normal user system
+ public function normal ($name, $pass, $hashed = false, $expire, $loginadm = false)
+ {
+ global $SQL, $dbprefix, $config, $userinfo;
- $userinfo = array(
- 'id' => 0,
- 'group_id' => 2,
- );
+ $userinfo = [
+ 'id' => 0,
+ 'group_id' => 2,
+ ];
- $query = array(
- 'SELECT' => '*',
- 'FROM' => "{$dbprefix}users",
- 'LIMIT' => '1'
- );
+ $query = [
+ 'SELECT' => '*',
+ 'FROM' => "{$dbprefix}users",
+ 'LIMIT' => '1'
+ ];
- if($hashed)
- {
- $query['WHERE'] = "id=" . intval($name) . " and password='" . $SQL->escape($pass) . "'";
- }
- else
- {
- $query['WHERE'] = "clean_name='" . $SQL->real_escape($this->cleanusername($name)) . "'";
- }
+ if ($hashed)
+ {
+ $query['WHERE'] = 'id=' . intval($name) . " and password='" . $SQL->escape($pass) . "'";
+ }
+ else
+ {
+ $query['WHERE'] = "clean_name='" . $SQL->real_escape($this->cleanusername($name)) . "'";
+ }
is_array($plugin_run_result = Plugins::getInstance()->run('qr_select_usrdata_n_usr_class', get_defined_vars())) ? extract($plugin_run_result) : null; //run hook
- $result = $SQL->build($query);
+ $result = $SQL->build($query);
- if ($SQL->num_rows($result))
- {
- while($row=$SQL->fetch_array($result))
- {
- if(empty($row['password'])) //more security
- {
- return false;
- }
+ if ($SQL->num_rows($result))
+ {
+ while ($row=$SQL->fetch_array($result))
+ {
+ if (empty($row['password']))
+ { //more security
+ return false;
+ }
- $phppass = $hashed ? $pass : $pass . $row['password_salt'];
+ $phppass = $hashed ? $pass : $pass . $row['password_salt'];
- //CHECK IF IT'S MD5 PASSWORD
- if(strlen($row['password']) == '32' && empty($row['password_salt']) && defined('CONVERTED_SCRIPT'))
- {
- $passmd5 = md5($pass);
- ////update old md5 hash to phpass hash
- if($row['password'] == $passmd5)
- {
- ////new salt
- $new_salt = substr(kleeja_base64_encode(pack("H*", sha1(mt_rand()))), 0, 7);
- ////new password hash
- $new_password = $this->kleeja_hash_password(trim($pass) . $new_salt);
+ //CHECK IF IT'S MD5 PASSWORD
+ if (strlen($row['password']) == '32' && empty($row['password_salt']) && defined('CONVERTED_SCRIPT'))
+ {
+ $passmd5 = md5($pass);
+ ////update old md5 hash to phpass hash
+ if ($row['password'] == $passmd5)
+ {
+ ////new salt
+ $new_salt = substr(kleeja_base64_encode(pack('H*', sha1(mt_rand()))), 0, 7);
+ ////new password hash
+ $new_password = $this->kleeja_hash_password(trim($pass) . $new_salt);
is_array($plugin_run_result = Plugins::getInstance()->run('qr_update_usrdata_md5_n_usr_class', get_defined_vars())) ? extract($plugin_run_result) : null; //run hook
- ////update now !!
- $update_query = array(
- 'UPDATE' => "{$dbprefix}users",
- 'SET' => "password='" . $new_password . "' ,password_salt='" . $new_salt . "'",
- 'WHERE' => "id=" . intval($row['id'])
- );
+ ////update now !!
+ $update_query = [
+ 'UPDATE' => "{$dbprefix}users",
+ 'SET' => "password='" . $new_password . "' ,password_salt='" . $new_salt . "'",
+ 'WHERE' => 'id=' . intval($row['id'])
+ ];
- $SQL->build($update_query);
- }
- else //if the password is wrong
- {
- return false;
- }
- }
+ $SQL->build($update_query);
+ }
+ else
+ { //if the password is wrong
+ return false;
+ }
+ }
- if(($phppass != $row['password'] && $hashed) || ($this->kleeja_hash_password($phppass, $row['password']) != true && $hashed == false))
- {
- return false;
- }
+ if (($phppass != $row['password'] && $hashed) || ($this->kleeja_hash_password($phppass, $row['password']) != true && $hashed == false))
+ {
+ return false;
+ }
- //Avoid dfining constants again for admin panel login
- if(!$loginadm)
- {
- define('USER_ID', $row['id']);
- define('GROUP_ID', $row['group_id']);
- define('USER_NAME', $row['name']);
- define('USER_MAIL', $row['mail']);
- define('LAST_VISIT', $row['last_visit']);
- }
+ //Avoid dfining constants again for admin panel login
+ if (! $loginadm)
+ {
+ define('USER_ID', $row['id']);
+ define('GROUP_ID', $row['group_id']);
+ define('USER_NAME', $row['name']);
+ define('USER_MAIL', $row['mail']);
+ define('LAST_VISIT', $row['last_visit']);
+ }
- //all user fileds info
- $userinfo = $row;
+ //all user fileds info
+ $userinfo = $row;
- $user_y = kleeja_base64_encode(serialize(array('id'=>$row['id'], 'name'=>$row['name'], 'mail'=>$row['mail'], 'last_visit'=>$row['last_visit'])));
+ $user_y = kleeja_base64_encode(serialize(['id'=>$row['id'], 'name'=>$row['name'], 'mail'=>$row['mail'], 'last_visit'=>$row['last_visit']]));
- if(!$hashed && !$loginadm)
- {
- $hash_key_expire = sha1(md5($config['h_key'] . $row['password']). $expire);
- $this->kleeja_set_cookie('ulogu', $this->en_de_crypt($row['id'] . '|' . $row['password'] . '|' . $expire . '|' . $hash_key_expire . '|' . $row['group_id'] . '|' . $user_y), $expire);
- }
+ if (! $hashed && ! $loginadm)
+ {
+ $hash_key_expire = sha1(md5($config['h_key'] . $row['password']) . $expire);
+ $this->kleeja_set_cookie('ulogu', $this->en_de_crypt($row['id'] . '|' . $row['password'] . '|' . $expire . '|' . $hash_key_expire . '|' . $row['group_id'] . '|' . $user_y), $expire);
+ }
- #if last visit > 1 minute then update it
- if(empty($row['last_visit']) || time() - $row['last_visit'] > 60)
- {
- $update_last_visit = array(
- 'UPDATE' => "{$dbprefix}users",
- 'SET' => "last_visit=" . time(),
- 'WHERE' => "id=" . intval($row['id'])
- );
+ //if last visit > 1 minute then update it
+ if (empty($row['last_visit']) || time() - $row['last_visit'] > 60)
+ {
+ $update_last_visit = [
+ 'UPDATE' => "{$dbprefix}users",
+ 'SET' => 'last_visit=' . time(),
+ 'WHERE' => 'id=' . intval($row['id'])
+ ];
- $SQL->build($update_last_visit);
- }
+ $SQL->build($update_last_visit);
+ }
is_array($plugin_run_result = Plugins::getInstance()->run('qr_while_usrdata_n_usr_class', get_defined_vars())) ? extract($plugin_run_result) : null; //run hook
- }
- $SQL->freeresult($result);
+ }
+ $SQL->freeresult($result);
- unset($pass);
- return true;
- }
- else
- {
- return false;
- }
- }
+ unset($pass);
+ return true;
+ }
+ else
+ {
+ return false;
+ }
+ }
- /*
- get user data
- new function:1rc5+
- */
- function get_data($type="*", $user_id = false)
- {
- global $dbprefix, $SQL;
+ /*
+ get user data
+ new function:1rc5+
+ */
+ public function get_data($type='*', $user_id = false)
+ {
+ global $dbprefix, $SQL;
- if(!$user_id)
- {
- $user_id = $this->id();
- }
-
- //todo :
- //if type != '*' and contains no , and type in 'name, id, email' return $this->id .. etc
+ if (! $user_id)
+ {
+ $user_id = $this->id();
+ }
- //te get files and update them !!
- $query_name = array(
- 'SELECT' => $type,
- 'FROM' => "{$dbprefix}users",
- 'WHERE' => "id=" . intval($user_id)
- );
+ //todo :
+ //if type != '*' and contains no , and type in 'name, id, email' return $this->id .. etc
+
+ //te get files and update them !!
+ $query_name = [
+ 'SELECT' => $type,
+ 'FROM' => "{$dbprefix}users",
+ 'WHERE' => 'id=' . intval($user_id)
+ ];
is_array($plugin_run_result = Plugins::getInstance()->run('qr_select_userdata_in_usrclass', get_defined_vars())) ? extract($plugin_run_result) : null; //run hook
- $data_user = $SQL->fetch_array($SQL->build($query_name));
+ $data_user = $SQL->fetch_array($SQL->build($query_name));
- return $data_user;
- }
+ return $data_user;
+ }
- /*
- user ids
- */
- function id ()
- {
+ // user ids
+ public function id ()
+ {
is_array($plugin_run_result = Plugins::getInstance()->run('id_func_usr_class', get_defined_vars())) ? extract($plugin_run_result) : null; //run hook
-
- return defined('USER_ID') ? USER_ID : false;
- }
-
- /*
- group ids
- */
- function group_id ()
- {
- is_array($plugin_run_result = Plugins::getInstance()->run('group_id_func_usr_class', get_defined_vars())) ? extract($plugin_run_result) : null; //run hook
-
- return defined('GROUP_ID') ? GROUP_ID : false;
- }
- /*
- user name
- */
- function name ()
- {
+ return defined('USER_ID') ? USER_ID : false;
+ }
+
+ // group ids
+ public function group_id ()
+ {
+ is_array($plugin_run_result = Plugins::getInstance()->run('group_id_func_usr_class', get_defined_vars())) ? extract($plugin_run_result) : null; //run hook
+
+ return defined('GROUP_ID') ? GROUP_ID : false;
+ }
+
+ // user name
+ public function name ()
+ {
is_array($plugin_run_result = Plugins::getInstance()->run('name_func_usr_class', get_defined_vars())) ? extract($plugin_run_result) : null; //run hook
- return defined('USER_NAME') ? USER_NAME : false;
- }
+ return defined('USER_NAME') ? USER_NAME : false;
+ }
- /*
- user mail
- */
- function mail ()
- {
+ // user mail
+ public function mail ()
+ {
is_array($plugin_run_result = Plugins::getInstance()->run('mail_func_usr_class', get_defined_vars())) ? extract($plugin_run_result) : null; //run hook
- return defined('USER_MAIL') ? USER_MAIL : false;
- }
+ return defined('USER_MAIL') ? USER_MAIL : false;
+ }
- /*
- logout func
- */
- function logout()
- {
+ // logout func
+ public function logout()
+ {
is_array($plugin_run_result = Plugins::getInstance()->run('logout_func_usr_class', get_defined_vars())) ? extract($plugin_run_result) : null; //run hook
- //acp
- if(user_can('enter_acp') && !empty($_SESSION['ADMINLOGIN']))
- {
- $this->logout_cp();
- }
+ //acp
+ if (user_can('enter_acp') && ! empty($_SESSION['ADMINLOGIN']))
+ {
+ $this->logout_cp();
+ }
- //is ther any cookies
- $this->kleeja_set_cookie('ulogu', '', time() - 31536000);//31536000 = year
+ //is ther any cookies
+ $this->kleeja_set_cookie('ulogu', '', time() - 31536000);//31536000 = year
- return true;
- }
+ return true;
+ }
- /*
- logut just from acp
- */
- function logout_cp()
- {
+ // logut just from acp
+ public function logout_cp()
+ {
is_array($plugin_run_result = Plugins::getInstance()->run('logout_cp_func_usr_class', get_defined_vars())) ? extract($plugin_run_result) : null; //run hook
- if(!empty($_SESSION['ADMINLOGIN']))
- {
- unset($_SESSION['ADMINLOGIN'], $_SESSION['USER_SESS'] /*, $_SESSION['LAST_VISIT']*/);
- }
+ if (! empty($_SESSION['ADMINLOGIN']))
+ {
+ unset($_SESSION['ADMINLOGIN'], $_SESSION['USER_SESS'] /*, $_SESSION['LAST_VISIT']*/);
+ }
- return true;
- }
+ return true;
+ }
- //clean usernames
- function cleanusername($uname)
- {
- if(!function_exists('kleeja_base64_decode'))
- {
- include_once (PATH . 'includes/functions_alternative.php');
- }
+ //clean usernames
+ public function cleanusername($uname)
+ {
+ if (! function_exists('kleeja_base64_decode'))
+ {
+ include_once PATH . 'includes/functions_alternative.php';
+ }
is_array($plugin_run_result = Plugins::getInstance()->run('cleanusername_func_usr_class', get_defined_vars())) ? extract($plugin_run_result) : null; //run hook
- static $arabic_t = array();
- static $latin_t = array(
- array('á','à','â','ã','å','Á','À','Â','Ã','Å','é','è','ê','ë','É','È','Ê','í','ì','ï','î','Í','Ì','Î','Ï','ò','ó','ô','õ','º','ø','Ó','Ò','Ô','Õ','Ø','ú','ù','û','Ú','Ù','Û','ç','Ç','Ñ','ñ','ÿ','Ë'),
- array('a','a','a','a','a','a','a','a','a','a','e','e','e','e','e','e','e','i','i','i','i','i','i','i','i','o','o','o','o','o','o','o','o','o','o','o','u','u','u','u','u','u','c','c','n','n','y','e')
- );
+ static $arabic_t = [];
+ static $latin_t = [
+ ['á','à','â','ã','å','Á','À','Â','Ã','Å','é','è','ê','ë','É','È','Ê','í','ì','ï','î','Í','Ì','Î','Ï','ò','ó','ô','õ','º','ø','Ó','Ò','Ô','Õ','Ø','ú','ù','û','Ú','Ù','Û','ç','Ç','Ñ','ñ','ÿ','Ë'],
+ ['a','a','a','a','a','a','a','a','a','a','e','e','e','e','e','e','e','i','i','i','i','i','i','i','i','o','o','o','o','o','o','o','o','o','o','o','u','u','u','u','u','u','c','c','n','n','y','e']
+ ];
- if(empty($arabic_t))
- {
- //Arabic chars must be stay in utf8 format, so we encoded them
- $arabic_t = unserialize(kleeja_base64_decode('YToyOntpOjA7YToxMjp7aTowO3M6Mjoi2KMiO2k6MTtzOjI6ItilIjtpOjI7czoyOiLYpCI7aTozO3M6Mjoi2YAiO2k6NDtzOjI6Itm' .
- 'LIjtpOjU7czoyOiLZjCI7aTo2O3M6Mjoi2Y8iO2k6NztzOjI6ItmOIjtpOjg7czoyOiLZkCI7aTo5O3M6Mjoi2ZIiO2k6MTA7czoyOiLYoiI7aToxMTtzOjI6ItimIjt9aToxO' .
- '2E6MTI6e2k6MDtzOjI6ItinIjtpOjE7czoyOiLYpyI7aToyO3M6Mjoi2YgiO2k6MztzOjA6IiI7aTo0O3M6MDoiIjtpOjU7czowOiIiO2k6NjtzOjA6IiI7aTo3O3M6MDoiIjt' .
- 'pOjg7czowOiIiO2k6OTtzOjA6IiI7aToxMDtzOjI6ItinIjtpOjExO3M6Mjoi2YkiO319'));
- }
-
- $uname = str_replace($latin_t[0], $latin_t[1], $uname); //replace confusable Latin chars
- $uname = str_replace($arabic_t[0], $arabic_t[1], $uname); //replace confusable Arabic chars
- $uname = preg_replace('#(?:[\x00-\x1F\x7F]+|(?:\xC2[\x80-\x9F])+)#', '', $uname); //un-wanted utf8 control chars
- $uname = preg_replace('# {2,}#', ' ', $uname); //2+ spaces with one space
- return strtolower($uname);
- }
+ if (empty($arabic_t))
+ {
+ //Arabic chars must be stay in utf8 format, so we encoded them
+ $arabic_t = unserialize(kleeja_base64_decode('YToyOntpOjA7YToxMjp7aTowO3M6Mjoi2KMiO2k6MTtzOjI6ItilIjtpOjI7czoyOiLYpCI7aTozO3M6Mjoi2YAiO2k6NDtzOjI6Itm' .
+ 'LIjtpOjU7czoyOiLZjCI7aTo2O3M6Mjoi2Y8iO2k6NztzOjI6ItmOIjtpOjg7czoyOiLZkCI7aTo5O3M6Mjoi2ZIiO2k6MTA7czoyOiLYoiI7aToxMTtzOjI6ItimIjt9aToxO' .
+ '2E6MTI6e2k6MDtzOjI6ItinIjtpOjE7czoyOiLYpyI7aToyO3M6Mjoi2YgiO2k6MztzOjA6IiI7aTo0O3M6MDoiIjtpOjU7czowOiIiO2k6NjtzOjA6IiI7aTo3O3M6MDoiIjt' .
+ 'pOjg7czowOiIiO2k6OTtzOjA6IiI7aToxMDtzOjI6ItinIjtpOjExO3M6Mjoi2YkiO319'));
+ }
- //depand on phpass class
- function kleeja_hash_password($password, $check_pass = false)
- {
- include_once('phpass.php');
+ $uname = str_replace($latin_t[0], $latin_t[1], $uname); //replace confusable Latin chars
+ $uname = str_replace($arabic_t[0], $arabic_t[1], $uname); //replace confusable Arabic chars
+ $uname = preg_replace('#(?:[\x00-\x1F\x7F]+|(?:\xC2[\x80-\x9F])+)#', '', $uname); //un-wanted utf8 control chars
+ $uname = preg_replace('# {2,}#', ' ', $uname); //2+ spaces with one space
+ return strtolower($uname);
+ }
+
+ //depand on phpass class
+ public function kleeja_hash_password($password, $check_pass = false)
+ {
+ include_once 'phpass.php';
is_array($plugin_run_result = Plugins::getInstance()->run('kleeja_hash_password_func_usr_class', get_defined_vars())) ? extract($plugin_run_result) : null; //run hook
- $hasher = new PasswordHash(8, true);
- $return = $hasher->HashPassword($password);
-
- //return check or hash
- return $check_pass != false ? $hasher->CheckPassword($password, $check_pass) : $return;
- }
+ $hasher = new PasswordHash(8, true);
+ $return = $hasher->HashPassword($password);
- //kleeja cookie
- function kleeja_set_cookie($name, $value, $expire)
- {
- global $config;
+ //return check or hash
+ return $check_pass != false ? $hasher->CheckPassword($password, $check_pass) : $return;
+ }
+
+ //kleeja cookie
+ public function kleeja_set_cookie($name, $value, $expire)
+ {
+ global $config;
is_array($plugin_run_result = Plugins::getInstance()->run('kleeja_set_cookie_func_usr_class', get_defined_vars())) ? extract($plugin_run_result) : null; //run hook
- //
- //when user add cookie_* in config this will replace the current ones
- //
+ //
+ //when user add cookie_* in config this will replace the current ones
+ //
global $config_cookie_name, $config_cookie_domain, $config_cookie_secure, $config_cookie_path;
- $config['cookie_name'] = isset($config_cookie_name) ? $config_cookie_name : $config['cookie_name'];
- $config['cookie_domain'] = isset($config_cookie_domain) ? $config_cookie_domain : $config['cookie_domain'];
- $config['cookie_secure'] = isset($config_cookie_secure) ? $config_cookie_secure : $config['cookie_secure'];
- $config['cookie_path'] = isset($config_cookie_path) ? $config_cookie_path : $config['cookie_path'];
+ $config['cookie_name'] = isset($config_cookie_name) ? $config_cookie_name : $config['cookie_name'];
+ $config['cookie_domain'] = isset($config_cookie_domain) ? $config_cookie_domain : $config['cookie_domain'];
+ $config['cookie_secure'] = isset($config_cookie_secure) ? $config_cookie_secure : $config['cookie_secure'];
+ $config['cookie_path'] = isset($config_cookie_path) ? $config_cookie_path : $config['cookie_path'];
- //
- //when user add define('FORCE_COOKIES', true) in config.php we will make our settings of cookies
- //
- if(defined('FORCE_COOKIES'))
- {
- $config['cookie_domain'] = (!empty($_SERVER['HTTP_HOST'])) ? strtolower($_SERVER['HTTP_HOST']) : ((!empty($_SERVER['SERVER_NAME'])) ? $_SERVER['SERVER_NAME'] : @getenv('SERVER_NAME'));
- $config['cookie_domain'] = str_replace('www.', '.', substr($config['cookie_domain'], 0, strpos($config['cookie_domain'], ':')));
- $config['cookie_path'] = '/';
- $config['cookie_secure'] = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ? true : false;
- }
+ //
+ //when user add define('FORCE_COOKIES', true) in config.php we will make our settings of cookies
+ //
+ if (defined('FORCE_COOKIES'))
+ {
+ $config['cookie_domain'] = (! empty($_SERVER['HTTP_HOST'])) ? strtolower($_SERVER['HTTP_HOST']) : ((! empty($_SERVER['SERVER_NAME'])) ? $_SERVER['SERVER_NAME'] : @getenv('SERVER_NAME'));
+ $config['cookie_domain'] = str_replace('www.', '.', substr($config['cookie_domain'], 0, strpos($config['cookie_domain'], ':')));
+ $config['cookie_path'] = '/';
+ $config['cookie_secure'] = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ? true : false;
+ }
- // Enable sending of a P3P header
- header('P3P: CP="CUR ADM"');
+ // Enable sending of a P3P header
+ header('P3P: CP="CUR ADM"');
$name_data = rawurlencode($config['cookie_name'] . '_' . $name) . '=' . rawurlencode($value);
- $rexpire = gmdate('D, d-M-Y H:i:s \\G\\M\\T', $expire);
- $domain = (!$config['cookie_domain'] || $config['cookie_domain'] == 'localhost' || $config['cookie_domain'] == '127.0.0.1') ? '' : '; domain=' . $config['cookie_domain'];
+ $rexpire = gmdate('D, d-M-Y H:i:s \\G\\M\\T', $expire);
+ $domain = (! $config['cookie_domain'] || $config['cookie_domain'] == 'localhost' || $config['cookie_domain'] == '127.0.0.1') ? '' : '; domain=' . $config['cookie_domain'];
- header('Set-Cookie: ' . $name_data . (($expire) ? '; expires=' . $rexpire : '') . '; path=' . $config['cookie_path'] . $domain . ((!$config['cookie_secure']) ? '' : '; secure') . '; HttpOnly', false);
- }
+ header('Set-Cookie: ' . $name_data . (($expire) ? '; expires=' . $rexpire : '') . '; path=' . $config['cookie_path'] . $domain . ((! $config['cookie_secure']) ? '' : '; secure') . '; HttpOnly', false);
+ }
- //encrypt and decrypt any data with our function
- function en_de_crypt($data, $type = 1)
- {
- global $config;
- static $txt = array();
+ //encrypt and decrypt any data with our function
+ public function en_de_crypt($data, $type = 1)
+ {
+ global $config;
+ static $txt = [];
- if(empty($txt))
- {
- if(empty($config['h_key']))
- {
- $config['h_key'] = sha1(microtime());
- }
+ if (empty($txt))
+ {
+ if (empty($config['h_key']))
+ {
+ $config['h_key'] = sha1(microtime());
+ }
- $chars = str_split($config['h_key']);
+ $chars = str_split($config['h_key']);
- foreach(range('a', 'z') as $k=>$v)
- {
- if(!isset($chars[$k]))
- {
- break;
- }
- $txt[$v] = $chars[$k] . $k . '-';
- }
- }
+ foreach (range('a', 'z') as $k=>$v)
+ {
+ if (! isset($chars[$k]))
+ {
+ break;
+ }
+ $txt[$v] = $chars[$k] . $k . '-';
+ }
+ }
- switch($type)
- {
- case 1:
- $data = str_replace('=', '_', kleeja_base64_encode($data));
- $data = strtr($data, $txt);
- break;
- case 2:
- $txtx = array_flip($txt);
- $txtx = array_reverse($txtx, true);
- $data = strtr($data, $txtx);
- $data = kleeja_base64_decode(str_replace('_', '=', $data));
- break;
- }
+ switch ($type)
+ {
+ case 1:
+ $data = str_replace('=', '_', kleeja_base64_encode($data));
+ $data = strtr($data, $txt);
- return $data;
- }
+ break;
+
+ case 2:
+ $txtx = array_flip($txt);
+ $txtx = array_reverse($txtx, true);
+ $data = strtr($data, $txtx);
+ $data = kleeja_base64_decode(str_replace('_', '=', $data));
+
+ break;
+ }
+
+ return $data;
+ }
- //
- //get cookie
- //
- function kleeja_get_cookie($name)
- {
- global $config;
+ //
+ //get cookie
+ //
+ public function kleeja_get_cookie($name)
+ {
+ global $config;
is_array($plugin_run_result = Plugins::getInstance()->run('kleeja_get_cookie_func_usr_class', get_defined_vars())) ? extract($plugin_run_result) : null; //run hook
- return isset($_COOKIE[$config['cookie_name'] . '_' . $name]) ? $_COOKIE[$config['cookie_name'] . '_' . $name] : false;
- }
+ return isset($_COOKIE[$config['cookie_name'] . '_' . $name]) ? $_COOKIE[$config['cookie_name'] . '_' . $name] : false;
+ }
- //check if user is admin or not
- //return : mean return true or false, but if return is false will show msg
- function kleeja_check_user()
- {
- global $config, $SQL, $dbprefix, $userinfo;
+ //check if user is admin or not
+ //return : mean return true or false, but if return is false will show msg
+ public function kleeja_check_user()
+ {
+ global $config, $SQL, $dbprefix, $userinfo;
is_array($plugin_run_result = Plugins::getInstance()->run('kleeja_check_user_func_usr_class', get_defined_vars())) ? extract($plugin_run_result) : null; //run hook
- #to make sure
- $userinfo = array(
- 'id' => -1,
- 'group_id' => 2,
- );
+ //to make sure
+ $userinfo = [
+ 'id' => -1,
+ 'group_id' => 2,
+ ];
- //if login up
- if($this->kleeja_get_cookie('ulogu'))
- {
- $user_data = false;
+ //if login up
+ if ($this->kleeja_get_cookie('ulogu'))
+ {
+ $user_data = false;
- list($user_id, $hashed_password, $expire_at, $hashed_expire, $group_id, $u_info) = @explode('|', $this->en_de_crypt($this->kleeja_get_cookie('ulogu'), 2));
+ list($user_id, $hashed_password, $expire_at, $hashed_expire, $group_id, $u_info) = @explode('|', $this->en_de_crypt($this->kleeja_get_cookie('ulogu'), 2));
- //if not expire
- if(($hashed_expire == sha1(md5($config['h_key'] . $hashed_password) . $expire_at)) && ($expire_at > time()))
- {
- /* For better performance we will take the risks */
- /*
- !defined('IN_DOWNLOAD')
- */
- //exit(print_r( @explode('|', $this->en_de_crypt($this->kleeja_get_cookie('ulogu'), 2))));
- if(user_can('enter_acp', $group_id))
- {
- $user_data = $this->data($user_id, $hashed_password, true, $expire_at);
- }
- else
- {
- if(!empty($u_info))
- {
- $userinfo = unserialize(kleeja_base64_decode($u_info));
- $userinfo['group_id'] = $group_id;
- $userinfo['password'] = $hashed_password;
+ //if not expire
+ if (($hashed_expire == sha1(md5($config['h_key'] . $hashed_password) . $expire_at)) && ($expire_at > time()))
+ {
+ // For better performance we will take the risks
+ // !defined('IN_DOWNLOAD')
+ //exit(print_r( @explode('|', $this->en_de_crypt($this->kleeja_get_cookie('ulogu'), 2))));
+ if (user_can('enter_acp', $group_id))
+ {
+ $user_data = $this->data($user_id, $hashed_password, true, $expire_at);
+ }
+ else
+ {
+ if (! empty($u_info))
+ {
+ $userinfo = unserialize(kleeja_base64_decode($u_info));
+ $userinfo['group_id'] = $group_id;
+ $userinfo['password'] = $hashed_password;
- define('USER_ID', $userinfo['id']);
- define('GROUP_ID', $userinfo['group_id']);
- define('USER_NAME', $userinfo['name']);
- define('USER_MAIL', $userinfo['mail']);
- define('LAST_VISIT', $userinfo['last_visit']);
- $user_data = true;
- }
- }
- }
+ define('USER_ID', $userinfo['id']);
+ define('GROUP_ID', $userinfo['group_id']);
+ define('USER_NAME', $userinfo['name']);
+ define('USER_MAIL', $userinfo['mail']);
+ define('LAST_VISIT', $userinfo['last_visit']);
+ $user_data = true;
+ }
+ }
+ }
- if($user_data == false)
- {
- $this->logout();
- }
- else
- {
- return $user_data;
- }
- }
- else
- {
- #guest
- define('USER_ID', $userinfo['id']);
- define('GROUP_ID', $userinfo['group_id']);
- }
+ if ($user_data == false)
+ {
+ $this->logout();
+ }
+ else
+ {
+ return $user_data;
+ }
+ }
+ else
+ {
+ //guest
+ define('USER_ID', $userinfo['id']);
+ define('GROUP_ID', $userinfo['group_id']);
+ }
- return false; //nothing
- }
-
+ return false; //nothing
+ }
- /*
- * convert from utf8 to cp1256 and vice versa
- */
- function kleeja_utf8($str, $to_utf8 = true)
- {
- $utf8 = new kleeja_utf8;
- if($to_utf8)
- {
- //return iconv('CP1256', "UTF-8//IGNORE", $str);
- return $utf8->to_utf8($str);
- }
- return $utf8->from_utf8($str);
- //return iconv('UTF-8', "CP1256//IGNORE", $str);
- }
-}#end class
+ // convert from utf8 to cp1256 and vice versa
+ public function kleeja_utf8($str, $to_utf8 = true)
+ {
+ $utf8 = new kleeja_utf8;
+
+ if ($to_utf8)
+ {
+ //return iconv('CP1256', "UTF-8//IGNORE", $str);
+ return $utf8->to_utf8($str);
+ }
+ return $utf8->from_utf8($str);
+ //return iconv('UTF-8', "CP1256//IGNORE", $str);
+ }
+}//end class
/**
@@ -546,84 +533,115 @@ class usrcp
*/
class kleeja_utf8
{
- var $ascMap = array();
- var $utfMap = array();
- //ignore the untranslated char, of you put true we will translate it to html tags
- //it's same the action of //IGNORE in iconv
- var $ignore = false;
+ public $ascMap = [];
+ public $utfMap = [];
+ //ignore the untranslated char, of you put true we will translate it to html tags
+ //it's same the action of //IGNORE in iconv
+ public $ignore = false;
- //Constructor
- function __construct()
- {
- static $lines = array();
- if(empty($lines))
- {
- $lines = explode("\n", preg_replace(array("/#.*$/m", "/\n\n/"), '', file_get_contents(PATH . 'includes/CP1256.MAP')));
- }
- if(empty($this->ascMap))
- {
- foreach($lines as $line)
- {
- $parts = explode('0x', $line);
- if(sizeof($parts) == 3)
- $this->ascMap[hexdec(trim($parts[1]))] = hexdec(trim($parts[2]));
- }
- $this->utfMap = array_flip($this->ascMap);
- }
- }
+ //Constructor
+ public function __construct()
+ {
+ static $lines = [];
- //Translate string ($str) to UTF-8 from given charset
- function to_utf8($str)
- {
- $chars = unpack('C*', $str);
- $cnt = sizeof($chars);
- for($i=1;$i <= $cnt; ++$i)
- $this->_charToUtf8($chars[$i]);
- return implode('', $chars);
- }
+ if (empty($lines))
+ {
+ $lines = explode("\n", preg_replace(['/#.*$/m', "/\n\n/"], '', file_get_contents(PATH . 'includes/CP1256.MAP')));
+ }
- //Translate UTF-8 string to single byte string in the given charset
- function from_utf8($utf)
- {
- $chars = unpack('C*', $utf);
- $cnt = sizeof($chars);
- $res = ''; //No simple way to do it in place... concatenate char by char
- for ($i=1;$i<=$cnt;$i++)
- $res .= $this->_utf8ToChar($chars, $i);
- return $res;
- }
+ if (empty($this->ascMap))
+ {
+ foreach ($lines as $line)
+ {
+ $parts = explode('0x', $line);
- //Char to UTF-8 sequence
- function _charToUtf8(&$char)
- {
- $c = (int) $this->ascMap[$char];
- if ($c < 0x80)
- $char = chr($c);
- else if($c<0x800) // 2 bytes
- $char = (chr(0xC0 | $c>>6) . chr(0x80 | $c & 0x3F));
- else if($c<0x10000) // 3 bytes
- $char = (chr(0xE0 | $c>>12) . chr(0x80 | $c>>6 & 0x3F) . chr(0x80 | $c & 0x3F));
- else if($c<0x200000) // 4 bytes
- $char = (chr(0xF0 | $c>>18) . chr(0x80 | $c>>12 & 0x3F) . chr(0x80 | $c>>6 & 0x3F) . chr(0x80 | $c & 0x3F));
- }
+ if (sizeof($parts) == 3)
+ {
+ $this->ascMap[hexdec(trim($parts[1]))] = hexdec(trim($parts[2]));
+ }
+ }
+ $this->utfMap = array_flip($this->ascMap);
+ }
+ }
- //UTF-8 sequence to single byte character
- function _utf8ToChar(&$chars, &$idx)
- {
- if(($chars[$idx] >= 240) && ($chars[$idx] <= 255))// 4 bytes
- $utf = (intval($chars[$idx]-240) << 18) + (intval($chars[++$idx]-128) << 12) + (intval($chars[++$idx]-128) << 6) + (intval($chars[++$idx]-128) << 0);
- else if (($chars[$idx] >= 224) && ($chars[$idx] <= 239)) // 3 bytes
- $utf = (intval($chars[$idx]-224) << 12) + (intval($chars[++$idx]-128) << 6) + (intval($chars[++$idx]-128) << 0);
- else if (($chars[$idx] >= 192) && ($chars[$idx] <= 223))// 2 bytes
- $utf = (intval($chars[$idx]-192) << 6) + (intval($chars[++$idx]-128) << 0);
- else// 1 byte
- $utf = $chars[$idx];
+ //Translate string ($str) to UTF-8 from given charset
+ public function to_utf8($str)
+ {
+ $chars = unpack('C*', $str);
+ $cnt = sizeof($chars);
- if(array_key_exists($utf, $this->utfMap))
- return chr($this->utfMap[$utf]);
- else
- return $this->ignore ? '' : '' . $utf . ';';
- }
+ for ($i=1;$i <= $cnt; ++$i)
+ {
+ $this->_charToUtf8($chars[$i]);
+ }
+ return implode('', $chars);
+ }
+
+ //Translate UTF-8 string to single byte string in the given charset
+ public function from_utf8($utf)
+ {
+ $chars = unpack('C*', $utf);
+ $cnt = sizeof($chars);
+ $res = ''; //No simple way to do it in place... concatenate char by char
+ for ($i=1;$i<=$cnt;$i++)
+ {
+ $res .= $this->_utf8ToChar($chars, $i);
+ }
+ return $res;
+ }
+
+ //Char to UTF-8 sequence
+ public function _charToUtf8(&$char)
+ {
+ $c = (int) $this->ascMap[$char];
+
+ if ($c < 0x80)
+ {
+ $char = chr($c);
+ }
+ elseif ($c<0x800)
+ { // 2 bytes
+ $char = (chr(0xC0 | $c>>6) . chr(0x80 | $c & 0x3F));
+ }
+ elseif ($c<0x10000)
+ { // 3 bytes
+ $char = (chr(0xE0 | $c>>12) . chr(0x80 | $c>>6 & 0x3F) . chr(0x80 | $c & 0x3F));
+ }
+ elseif ($c<0x200000)
+ { // 4 bytes
+ $char = (chr(0xF0 | $c>>18) . chr(0x80 | $c>>12 & 0x3F) . chr(0x80 | $c>>6 & 0x3F) . chr(0x80 | $c & 0x3F));
+ }
+ }
+
+ //UTF-8 sequence to single byte character
+ public function _utf8ToChar(&$chars, &$idx)
+ {
+ if (($chars[$idx] >= 240) && ($chars[$idx] <= 255))
+ {// 4 bytes
+ $utf = (intval($chars[$idx]-240) << 18) + (intval($chars[++$idx]-128) << 12) + (intval($chars[++$idx]-128) << 6) + (intval($chars[++$idx]-128) << 0);
+ }
+ elseif (($chars[$idx] >= 224) && ($chars[$idx] <= 239))
+ { // 3 bytes
+ $utf = (intval($chars[$idx]-224) << 12) + (intval($chars[++$idx]-128) << 6) + (intval($chars[++$idx]-128) << 0);
+ }
+ elseif (($chars[$idx] >= 192) && ($chars[$idx] <= 223))
+ {// 2 bytes
+ $utf = (intval($chars[$idx]-192) << 6) + (intval($chars[++$idx]-128) << 0);
+ }
+ else
+ {// 1 byte
+ $utf = $chars[$idx];
+ }
+
+ if (array_key_exists($utf, $this->utfMap))
+ {
+ return chr($this->utfMap[$utf]);
+ }
+ else
+ {
+ return $this->ignore ? '' : '' . $utf . ';';
+ }
+ }
}
-#<-- EOF
+//<-- EOF
diff --git a/includes/version.php b/includes/version.php
index 2039893..4f52189 100755
--- a/includes/version.php
+++ b/includes/version.php
@@ -9,9 +9,9 @@
//no for directly open
-if (!defined('IN_COMMON'))
+if (! defined('IN_COMMON'))
{
- exit();
+ exit();
}
@@ -19,6 +19,3 @@ if (!defined('IN_COMMON'))
define('KLEEJA_VERSION', '3.0.2');
define('KLEEJA_DB_VERSION', '9');
-
-
-
diff --git a/index.php b/index.php
index eb3dd7d..2f03c88 100755
--- a/index.php
+++ b/index.php
@@ -17,7 +17,7 @@ define('IN_REAL_INDEX', true);
/**
* We are in the middle of the uploading process, useful for exceptions
*/
-define('IN_SUBMIT_UPLOADING' , isset($_POST['submitr']) || isset($_POST['submittxt']));
+define('IN_SUBMIT_UPLOADING', isset($_POST['submitr']) || isset($_POST['submittxt']));
/**
@@ -27,7 +27,7 @@ define('IN_KLEEJA', true);
require_once 'includes/common.php';
require_once 'includes/KleejaUploader.php';
-#current uploading method
+//current uploading method
$uploadingMethodClass = 'includes/up_methods/defaultUploader.php';
@@ -39,11 +39,11 @@ require_once $uploadingMethodClass;
//
//Is kleeja only for members?
//
-if(empty($d_groups[2]['exts']) && !$usrcp->name())
+if (empty($d_groups[2]['exts']) && ! $usrcp->name())
{
- // Send a 503 HTTP response code to prevent search bots from indexing this message
- //header('HTTP/1.1 503 Service Temporarily Unavailable');
- kleeja_info($lang['SITE_FOR_MEMBER_ONLY'], $lang['HOME']);
+ // Send a 503 HTTP response code to prevent search bots from indexing this message
+ //header('HTTP/1.1 503 Service Temporarily Unavailable');
+ kleeja_info($lang['SITE_FOR_MEMBER_ONLY'], $lang['HOME']);
}
@@ -52,7 +52,7 @@ $action = $config['siteurl'];
/** @var KleejaUploader $uploader */
$uploadingMethodClassBaseName = basename($uploadingMethodClass, '.php');
-$uploader = new $uploadingMethodClassBaseName;
+$uploader = new $uploadingMethodClassBaseName;
$uploader->setAllowedFileExtensions($d_groups[$userinfo['group_id']]['exts']);
$uploader->setUploadFieldsLimit($config['filesnum']);
@@ -60,20 +60,20 @@ $uploader->setUploadFieldsLimit($config['filesnum']);
$uploading_type = ip('submitr') ? 1 : (ip('submittxt') ? 2 : false);
-if($uploading_type)
+if ($uploading_type)
{
$uploader->upload($uploading_type);
}
-#file input fields
-$FILES_NUM_LOOP = array();
+//file input fields
+$FILES_NUM_LOOP = [];
-if($config['filesnum'] > 0)
+if ($config['filesnum'] > 0)
{
- foreach(range(1, $config['filesnum']) as $i)
+ foreach (range(1, $config['filesnum']) as $i)
{
- $FILES_NUM_LOOP[] = array('i' => $i, 'show'=>($i == 1 || (!empty($config['filesnum_show']) && (int) $config['filesnum_show'] == 1) ? '' : 'display: none'));
+ $FILES_NUM_LOOP[] = ['i' => $i, 'show'=>($i == 1 || (! empty($config['filesnum_show']) && (int) $config['filesnum_show'] == 1) ? '' : 'display: none')];
}
}
else
@@ -82,30 +82,31 @@ else
}
-#show errors and info
-$info = array();
-foreach($uploader->getMessages() as $t => $s)
+//show errors and info
+$info = [];
+
+foreach ($uploader->getMessages() as $t => $s)
{
- $info[] = array(
- 't' => $s[1] == 'error' ? 'index_err' : 'index_info', #for old Kleeja versions
+ $info[] = [
+ 't' => $s[1] == 'error' ? 'index_err' : 'index_info', //for old Kleeja versions
'i' => $s[0], //#for old Kleeja versions
'message_content' => $s[0],
- 'message_type' => $s[1],
- );
+ 'message_type' => $s[1],
+ ];
}
-#some words for template
+//some words for template
$welcome_msg = $config['welcome_msg'];
$filecp_link = $usrcp->id() ? $config['siteurl'] . ($config['mod_writer'] ? 'filecp.html' : 'ucp.php?go=filecp') : false;
-$terms_msg = sprintf($lang['AGREE_RULES'], '
' , '');
+$terms_msg = sprintf($lang['AGREE_RULES'], '
', '');
$link_avater = sprintf($lang['EDIT_U_AVATER_LINK'], '
', '');
-$js_allowed_extensions_types = "['" . implode("', '", array_keys($d_groups[$userinfo['group_id']]['exts'])) . "']";
-$js_allowed_extensions_sizes = "[" . implode(", ", array_values($d_groups[$userinfo['group_id']]['exts'])) . "]";
+$js_allowed_extensions_types = "['" . implode("', '", array_keys($d_groups[$userinfo['group_id']]['exts'])) . "']";
+$js_allowed_extensions_sizes = '[' . implode(', ', array_values($d_groups[$userinfo['group_id']]['exts'])) . ']';
@@ -114,75 +115,75 @@ $js_allowed_extensions_sizes = "[" . implode(", ", array_values($d_groups[$useri
//I don't like this feature and I prefer that you disable it
//
$show_online = $config['allow_online'] == 1 ? true : false;
+
if ($show_online)
{
$current_online_users = 0;
- $online_names = array();
- $timeout = 60; //30 second
- $timeout2 = time()-$timeout;
+ $online_names = [];
+ $timeout = 60; //30 second
+ $timeout2 = time()-$timeout;
- //put another bot name
+ //put another bot name
is_array($plugin_run_result = Plugins::getInstance()->run('anotherbots_online_index_page', get_defined_vars())) ? extract($plugin_run_result) : null; //run hook
- $query = array(
- 'SELECT' => 'u.name',
- 'FROM' => "{$dbprefix}users u",
- 'WHERE' => "u.last_visit > $timeout2"
- );
+ $query = [
+ 'SELECT' => 'u.name',
+ 'FROM' => "{$dbprefix}users u",
+ 'WHERE' => "u.last_visit > $timeout2"
+ ];
is_array($plugin_run_result = Plugins::getInstance()->run('qr_select_online_index_page', get_defined_vars())) ? extract($plugin_run_result) : null; //run hook
- $result = $SQL->build($query);
+ $result = $SQL->build($query);
- while($row=$SQL->fetch_array($result))
- {
+ while ($row=$SQL->fetch_array($result))
+ {
is_array($plugin_run_result = Plugins::getInstance()->run('while_qr_select_online_index_page', get_defined_vars())) ? extract($plugin_run_result) : null; //run hook
$current_online_users++;
- $online_names[$row['name']] = $row['name'];
- }#while
+ $online_names[$row['name']] = $row['name'];
+ }//while
- $SQL->freeresult($result);
+ $SQL->freeresult($result);
- //make names as array to print them in template
- $show_names = array();
+ //make names as array to print them in template
+ $show_names = [];
$show_names_sizeof = sizeof($online_names);
- foreach ($online_names as $k)
- {
- $show_names[] = array('name' => $k, 'separator' => $show_names_sizeof ? ',' : '');
- }
+ foreach ($online_names as $k)
+ {
+ $show_names[] = ['name' => $k, 'separator' => $show_names_sizeof ? ',' : ''];
+ }
- //some variables must be destroyed here
- unset($online_names, $timeout, $timeout2);
+ //some variables must be destroyed here
+ unset($online_names, $timeout, $timeout2);
//check & update most ever users and visitors were online
- if(empty($config['most_user_online_ever']) || trim($config['most_user_online_ever']) == '')
- {
+ if (empty($config['most_user_online_ever']) || trim($config['most_user_online_ever']) == '')
+ {
$most_online = $current_online_users;
$online_time = time();
- }
- else
- {
- list($most_online, $online_time) = @explode(':', $config['most_user_online_ever']);
- }
+ }
+ else
+ {
+ list($most_online, $online_time) = @explode(':', $config['most_user_online_ever']);
+ }
- if ($most_online < $current_online_users || empty($config['most_user_online_ever']))
- {
- update_config('most_user_online_ever', $current_online_users . ':' . time());
- }
+ if ($most_online < $current_online_users || empty($config['most_user_online_ever']))
+ {
+ update_config('most_user_online_ever', $current_online_users . ':' . time());
+ }
- $online_time = kleeja_date('d-m-Y h:i a', $online_time);
+ $online_time = kleeja_date('d-m-Y h:i a', $online_time);
- //before 1.8, styles computability
- $usersnum = $current_online_users;
- $shownames = $show_names;
+ //before 1.8, styles computability
+ $usersnum = $current_online_users;
+ $shownames = $show_names;
- is_array($plugin_run_result = Plugins::getInstance()->run('if_online_index_page', get_defined_vars())) ? extract($plugin_run_result) : null; //run hook
-
-}#allow_online
+ is_array($plugin_run_result = Plugins::getInstance()->run('if_online_index_page', get_defined_vars())) ? extract($plugin_run_result) : null; //run hook
+}//allow_online
$show_style = true;
@@ -191,22 +192,22 @@ is_array($plugin_run_result = Plugins::getInstance()->run('end_index_page', get_
//is ajax
-if(ip('ajax'))
+if (ip('ajax'))
{
- if(!empty($info))
+ if (! empty($info))
{
header('Content-Type: text/plain; charset=utf-8');
echo json_encode($info);
}
+
exit;
}
//show style
-if($show_style)
+if ($show_style)
{
Saaheader();
- echo $tpl->display(($config['filesnum'] > 0 ? "index_body" : "info"));
+ echo $tpl->display(($config['filesnum'] > 0 ? 'index_body' : 'info'));
Saafooter();
}
-
diff --git a/install/includes/default_values.php b/install/includes/default_values.php
index 8c62cd8..b46d1dd 100755
--- a/install/includes/default_values.php
+++ b/install/includes/default_values.php
@@ -8,9 +8,9 @@
*/
// not for directly open
-if (!defined('IN_COMMON'))
+if (! defined('IN_COMMON'))
{
- exit();
+ exit();
}
@@ -18,50 +18,50 @@ if (!defined('IN_COMMON'))
// Configuration values
//
-$config_values = array();
+$config_values = [];
// do it like this :
//$config_values = array('name', 'value', 'option', 'display_order', 'type', 'plg_id', 'dynamic');
// General settings
-$config_values[] = array('sitename', $config_sitename, '
', 1, 'general', 0, 0);
-$config_values[] = array('siteurl', $config_siteurl, '
', 2, 'general', 0, 0);
-$config_values[] = array('sitemail', $config_sitemail, '
', 3, 'general', 0, 0);
-$config_values[] = array('sitemail2', $config_sitemail, '
', '4', 'general', 0, 0);
-$config_values[] = array('del_f_day', '0', '
{lang.DELF_CAUTION}', 5, 'advanced', 0, 0);
-$config_values[] = array('language', getlang(), '
', 6, 'groups', 0, 0);
-$config_values[] = array('time_zone', $config_time_zone, '
', 10, 'general', 0, 0);
-$config_values[] = array('siteclose', '0', '
', 7, 'general', 0, 0);
-$config_values[] = array('closemsg', 'sits is closed now', '
', 8, 'general', 0, 0);
-$config_values[] = array('user_system', '1', '
', 9, 'advanced', 0, 0);
-$config_values[] = array('register', '1', '
\r\n
', 10, 'general', 0, 0);
-$config_values[] = array('enable_userfile', '1', '
\r\n
', 11, 'groups', 0, 0);
-$config_values[] = array('mod_writer', '0', '
\r\n
\r\n [ {lang.MOD_WRITER_EX} ]', 12, 'advanced', 0, 0);
+$config_values[] = ['sitename', $config_sitename, '
', 1, 'general', 0, 0];
+$config_values[] = ['siteurl', $config_siteurl, '
', 2, 'general', 0, 0];
+$config_values[] = ['sitemail', $config_sitemail, '
', 3, 'general', 0, 0];
+$config_values[] = ['sitemail2', $config_sitemail, '
', '4', 'general', 0, 0];
+$config_values[] = ['del_f_day', '0', '
{lang.DELF_CAUTION}', 5, 'advanced', 0, 0];
+$config_values[] = ['language', getlang(), '
', 6, 'groups', 0, 0];
+$config_values[] = ['time_zone', $config_time_zone, '
', 10, 'general', 0, 0];
+$config_values[] = ['siteclose', '0', '
', 7, 'general', 0, 0];
+$config_values[] = ['closemsg', 'sits is closed now', '
', 8, 'general', 0, 0];
+$config_values[] = ['user_system', '1', '
', 9, 'advanced', 0, 0];
+$config_values[] = ['register', '1', '
\r\n
', 10, 'general', 0, 0];
+$config_values[] = ['enable_userfile', '1', '
\r\n
', 11, 'groups', 0, 0];
+$config_values[] = ['mod_writer', '0', '
\r\n
\r\n [ {lang.MOD_WRITER_EX} ]', 12, 'advanced', 0, 0];
// Cookies settings
-$cookie_data = get_cookies_settings();
-$config_values[] = array('cookie_name', $cookie_data['cookie_name'], '
', '13', 'advanced', 0, 0);
-$config_values[] = array('cookie_path', $cookie_data['cookie_path'], '
', '14', 'advanced', 0, 0);
-$config_values[] = array('cookie_domain', $cookie_data['cookie_domain'], '
', '15', 'advanced', 0, 0);
-$config_values[] = array('cookie_secure', ($cookie_data['cookie_secure'] ? '1' : '0'), '
\r\n
', '16', 'advanced', 0, 0);
+$cookie_data = get_cookies_settings();
+$config_values[] = ['cookie_name', $cookie_data['cookie_name'], '
', '13', 'advanced', 0, 0];
+$config_values[] = ['cookie_path', $cookie_data['cookie_path'], '
', '14', 'advanced', 0, 0];
+$config_values[] = ['cookie_domain', $cookie_data['cookie_domain'], '
', '15', 'advanced', 0, 0];
+$config_values[] = ['cookie_secure', ($cookie_data['cookie_secure'] ? '1' : '0'), '
\r\n
', '16', 'advanced', 0, 0];
// Upload settings
-$config_values[] = array('total_size', '10000000000', '
', 17, 'upload', 0, 0);
-$config_values[] = array('foldername', 'uploads', '
', 18, 'upload', 0, 0);
-$config_values[] = array('prefixname', '', '
', 19, 'upload', 0, 0);
-$config_values[] = array('decode', '1', '
', 20, 'upload', 0, 0);
-$config_values[] = array('id_form', $config_urls_type, '
', 21, 'upload', 0, 0);
-$config_values[] = array('id_form_img', $config_urls_type, '
', 21, 'upload', 0, 0);
-$config_values[] = array('filesnum', '3', '
', 22, 'groups', 0, 0);
-$config_values[] = array('sec_down', '5', '
', 23, 'groups', 0, 0);
-$config_values[] = array('del_url_file', '1', '
\r\n
', 24, 'upload', 0, 0);
-$config_values[] = array('safe_code', '0', '
\r\n
', 25, 'upload', 0, 0);
-$config_values[] = array('www_url', '0', '
\r\n
', 26, 'upload', 0, 0);
-$config_values[] = array('thumbs_imgs', '1', '
*
', 27, 'upload', 0, 0);
-$config_values[] = array('write_imgs', '0' , '
\r\n
\r\n

\r\n ', 28, 'groups', 0, 0);
-$config_values[] = array('livexts', 'swf', '
{lang.COMMA_X}', '29', 'upload', 0, 0);
-$config_values[] = array('usersectoupload', '10', '
', 44, 'groups', 0, 0);
-$config_values[] = array('filesnum_show', '1', '
\r\n
', 22, 'upload', 0, 0);
+$config_values[] = ['total_size', '10000000000', '
', 17, 'upload', 0, 0];
+$config_values[] = ['foldername', 'uploads', '
', 18, 'upload', 0, 0];
+$config_values[] = ['prefixname', '', '
', 19, 'upload', 0, 0];
+$config_values[] = ['decode', '1', '
', 20, 'upload', 0, 0];
+$config_values[] = ['id_form', $config_urls_type, '
', 21, 'upload', 0, 0];
+$config_values[] = ['id_form_img', $config_urls_type, '
', 21, 'upload', 0, 0];
+$config_values[] = ['filesnum', '3', '
', 22, 'groups', 0, 0];
+$config_values[] = ['sec_down', '5', '
', 23, 'groups', 0, 0];
+$config_values[] = ['del_url_file', '1', '
\r\n
', 24, 'upload', 0, 0];
+$config_values[] = ['safe_code', '0', '
\r\n
', 25, 'upload', 0, 0];
+$config_values[] = ['www_url', '0', '
\r\n
', 26, 'upload', 0, 0];
+$config_values[] = ['thumbs_imgs', '1', '
*
', 27, 'upload', 0, 0];
+$config_values[] = ['write_imgs', '0' , '
\r\n
\r\n

\r\n ', 28, 'groups', 0, 0];
+$config_values[] = ['livexts', 'swf', '
{lang.COMMA_X}', '29', 'upload', 0, 0];
+$config_values[] = ['usersectoupload', '10', '
', 44, 'groups', 0, 0];
+$config_values[] = ['filesnum_show', '1', '
\r\n
', 22, 'upload', 0, 0];
//KLIVE
//$config_values[] = array('imagefolder', 'uploads', '
', '10', 'KLIVE', '0', '0');
@@ -69,28 +69,28 @@ $config_values[] = array('filesnum_show', '1', '
', '30', 'KLIVE', '0', '0');
// Interface settings
-$config_values[] = array('welcome_msg', $lang['INST_MSGINS'], '
', 30, 'interface', 0, 0);
-$config_values[] = array('allow_stat_pg', '1', '
\r\n
', 31, 'interface', 0, 0);
-$config_values[] = array('allow_online', '0', '
\r\n
', 32, 'interface', 0, 0);
-$config_values[] = array('statfooter', '0' , '
\r\n
', 33, 'interface', 0, 0);
+$config_values[] = ['welcome_msg', $lang['INST_MSGINS'], '
', 30, 'interface', 0, 0];
+$config_values[] = ['allow_stat_pg', '1', '
\r\n
', 31, 'interface', 0, 0];
+$config_values[] = ['allow_online', '0', '
\r\n
', 32, 'interface', 0, 0];
+$config_values[] = ['statfooter', '0' , '
\r\n
', 33, 'interface', 0, 0];
//$config_values[] = array('gzip', '0', '
\r\n
', 34, 'interface', 0, 0);
-$config_values[] = array('googleanalytics', '', '
', 35, 'interface', 0, 0);
-$config_values[] = array('enable_captcha', '1', '
\r\n
', 36, 'interface', 0, 0);
+$config_values[] = ['googleanalytics', '', '
', 35, 'interface', 0, 0];
+$config_values[] = ['enable_captcha', '1', '
\r\n
', 36, 'interface', 0, 0];
// System settings [ invisible configs ]
-$config_values[] = array('thmb_dims', '100*100', '', 0, 0, 0);
-$config_values[] = array('style', 'bootstrap', '', 0, '0', 0, 0);
-$config_values[] = array('new_version', '', '', 0, 0, 0);
-$config_values[] = array('db_version', LAST_DB_VERSION, '', 0, 0, 0);
-$config_values[] = array('last_online_time_update', time(), '', 0, 0, 1);
-$config_values[] = array('klj_clean_files_from', '0', '', 0, 0, 1);
-$config_values[] = array('style_depend_on', '', '', 0, 0, 0);
-$config_values[] = array('most_user_online_ever', '', '', 0, 0, 1);
-$config_values[] = array('expand_menu', '0', '', 0, 0, 1);
-$config_values[] = array('firstime', '0', '', 0, 0, 1);
-$config_values[] = array('ftp_info', '', '', 0, 0, 0);
-$config_values[] = array('queue', '', '', 0, 0, 1);
-$config_values[] = array('default_group', '3', '', 0, 0, 1);
+$config_values[] = ['thmb_dims', '100*100', '', 0, 0, 0];
+$config_values[] = ['style', 'bootstrap', '', 0, '0', 0, 0];
+$config_values[] = ['new_version', '', '', 0, 0, 0];
+$config_values[] = ['db_version', LAST_DB_VERSION, '', 0, 0, 0];
+$config_values[] = ['last_online_time_update', time(), '', 0, 0, 1];
+$config_values[] = ['klj_clean_files_from', '0', '', 0, 0, 1];
+$config_values[] = ['style_depend_on', '', '', 0, 0, 0];
+$config_values[] = ['most_user_online_ever', '', '', 0, 0, 1];
+$config_values[] = ['expand_menu', '0', '', 0, 0, 1];
+$config_values[] = ['firstime', '0', '', 0, 0, 1];
+$config_values[] = ['ftp_info', '', '', 0, 0, 0];
+$config_values[] = ['queue', '', '', 0, 0, 1];
+$config_values[] = ['default_group', '3', '', 0, 0, 1];
//
// Extensions
@@ -98,50 +98,50 @@ $config_values[] = array('default_group', '3', '', 0, 0, 1);
// do it like this :
//$ext_values[group_id] = array('ext'=>sizeInKB);
-$ext_values = array();
+$ext_values = [];
-#admins
-$ext_values[1] = array(
- 'gif' => 2097152,
- 'png' => 2097152,
- 'jpg' => 2097152,
- 'jpeg' => 2097152,
- 'bmp' => 2097152,
- 'zip' => 2097152,
- 'rar' => 2097152,
-);
-#guests
-$ext_values[2] = array(
- 'gif' => 2097152,
- 'png' => 2097152,
- 'jpg' => 2097152,
- 'jpeg' => 2097152,
- 'bmp' => 2097152,
- 'zip' => 2097152,
- 'rar' => 2097152,
-);
-#users
-$ext_values[3] = array(
- 'gif' => 2097152,
- 'png' => 2097152,
- 'jpg' => 2097152,
- 'jpeg' => 2097152,
- 'bmp' => 2097152,
- 'zip' => 2097152,
- 'rar' => 2097152,
-);
+//admins
+$ext_values[1] = [
+ 'gif' => 2097152,
+ 'png' => 2097152,
+ 'jpg' => 2097152,
+ 'jpeg' => 2097152,
+ 'bmp' => 2097152,
+ 'zip' => 2097152,
+ 'rar' => 2097152,
+];
+//guests
+$ext_values[2] = [
+ 'gif' => 2097152,
+ 'png' => 2097152,
+ 'jpg' => 2097152,
+ 'jpeg' => 2097152,
+ 'bmp' => 2097152,
+ 'zip' => 2097152,
+ 'rar' => 2097152,
+];
+//users
+$ext_values[3] = [
+ 'gif' => 2097152,
+ 'png' => 2097152,
+ 'jpg' => 2097152,
+ 'jpeg' => 2097152,
+ 'bmp' => 2097152,
+ 'zip' => 2097152,
+ 'rar' => 2097152,
+];
//
// ACLs
//
-$acls_values = array();
+$acls_values = [];
//$acls_values['name of acl'] = array(admins, guests, users);
-$acls_values['enter_acp'] = array(1, 0, 0);
-$acls_values['access_fileuser'] = array(1, 0, 1);
-$acls_values['access_fileusers'] = array(1, 1, 1);
-$acls_values['access_stats'] = array(1, 1, 1);
-$acls_values['access_call'] = array(1, 1, 1);
-$acls_values['access_report'] = array(0, 0, 0);
+$acls_values['enter_acp'] = [1, 0, 0];
+$acls_values['access_fileuser'] = [1, 0, 1];
+$acls_values['access_fileusers'] = [1, 1, 1];
+$acls_values['access_stats'] = [1, 1, 1];
+$acls_values['access_call'] = [1, 1, 1];
+$acls_values['access_report'] = [0, 0, 0];
diff --git a/install/includes/functions_install.php b/install/includes/functions_install.php
index 4cd2a09..b1c0e5e 100755
--- a/install/includes/functions_install.php
+++ b/install/includes/functions_install.php
@@ -7,24 +7,22 @@
*
*/
-/*
-* Requirements of Kleeja
-*/
+// Requirements of Kleeja
define('MIN_PHP_VERSION', '7.0');
define('MIN_MYSQL_VERSION', '4.2.2');
//version of latest changes at db
-define ('LAST_DB_VERSION' , '9');
+define ('LAST_DB_VERSION', '9');
//set no errors
define('MYSQL_NO_ERRORS', true);
// Detect choosing another lang while installing
-if(ig('change_lang'))
+if (ig('change_lang'))
{
- if (ip('lang'))
- {
- header('Location: ' . $_SERVER['PHP_SELF'] . '?step=' . p('step_is') . '&lang=' . p('lang'));
- }
+ if (ip('lang'))
+ {
+ header('Location: ' . $_SERVER['PHP_SELF'] . '?step=' . p('step_is') . '&lang=' . p('lang'));
+ }
}
// Including current language
@@ -34,48 +32,48 @@ $lang = array_merge($lang, require $_path . 'lang/' . getlang() . '/install.php'
$IN_DEV = false;
// Exceptions for development
-if(file_exists($_path . '.svn/entries') || file_exists('dev.txt'))
+if (file_exists($_path . '.svn/entries') || file_exists('dev.txt'))
{
- define('DEV_STAGE', true);
- $IN_DEV = true;
+ define('DEV_STAGE', true);
+ $IN_DEV = true;
}
/**
* Return current language of installing wizard
- * @param bool $link
+ * @param bool $link
* @return mixed|string
*/
function getlang ($link = false)
{
- global $_path;
+ global $_path;
- if (ig('lang'))
- {
- $lang = preg_replace('/[^a-z0-9]/i', '', g('lang', 'str', 'en'));
+ if (ig('lang'))
+ {
+ $lang = preg_replace('/[^a-z0-9]/i', '', g('lang', 'str', 'en'));
- $ln = file_exists($_path . 'lang/' . $lang . '/install.php') ? $lang : 'en';
- }
- else
- {
- $ln = 'en';
- }
+ $ln = file_exists($_path . 'lang/' . $lang . '/install.php') ? $lang : 'en';
+ }
+ else
+ {
+ $ln = 'en';
+ }
- return $link ? 'lang=' . $ln : $ln;
+ return $link ? 'lang=' . $ln : $ln;
}
function getjquerylink()
{
- global $_path;
+ global $_path;
- if(file_exists($_path . 'admin/Masmak/js/jquery.min.js'))
- {
- return $_path . 'admin/Masmak/js/jquery.min.js';
- }
- else
- {
- return 'http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js';
- }
+ if (file_exists($_path . 'admin/Masmak/js/jquery.min.js'))
+ {
+ return $_path . 'admin/Masmak/js/jquery.min.js';
+ }
+ else
+ {
+ return 'http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js';
+ }
}
/**
@@ -83,15 +81,15 @@ function getjquerylink()
*/
function gettpl($tplname)
{
- global $lang, $_path;
+ global $lang, $_path;
- $tpl = preg_replace('/{{([^}]+)}}/', '', file_get_contents('style/' . $tplname));
- ob_start();
- eval('?> ' . $tpl . '', file_get_contents('style/' . $tplname));
+ ob_start();
+ eval('?> ' . $tpl . '';
+ //$data .= '$adminpath = \'admin.php\';// if you renamed your acp file , please fill the new name here \n';
+ //$data .= "\n\n\n";
+ //$data .= "//for integration with script must change user systen from admin cp \n";
+ //$data .= '$script_path = \'' . str_replace("'", "\'", $fpath) . "'; // path of script (./forums) \n";
+ //$data .= "\n\n";
+ //$data .= '?'.'>';
- $written = false;
- if (is_writable($_path))
- {
- $fh = @fopen($_path . 'config.php', 'wb');
- if ($fh)
- {
- fwrite($fh, $data);
- fclose($fh);
+ $written = false;
- $written = true;
- }
- }
+ if (is_writable($_path))
+ {
+ $fh = @fopen($_path . 'config.php', 'wb');
- if(!$written)
- {
- header('Content-Type: text/x-delimtext; name="config.php"');
- header('Content-disposition: attachment; filename=config.php');
- echo $data;
- exit;
- }
+ if ($fh)
+ {
+ fwrite($fh, $data);
+ fclose($fh);
- return true;
+ $written = true;
+ }
+ }
+
+ if (! $written)
+ {
+ header('Content-Type: text/x-delimtext; name="config.php"');
+ header('Content-disposition: attachment; filename=config.php');
+ echo $data;
+
+ exit;
+ }
+
+ return true;
}
@@ -150,8 +151,8 @@ function do_config_export($srv, $usr, $pass, $nm, $prf, $fpath = '')
*/
function get_microtime()
{
- list($usec, $sec) = explode(' ', microtime());
- return ((float) $usec + (float) $sec);
+ list($usec, $sec) = explode(' ', microtime());
+ return ((float) $usec + (float) $sec);
}
/**
@@ -159,35 +160,37 @@ function get_microtime()
*/
function inst_get_config($name)
{
- global $SQL, $dbprefix;
+ global $SQL, $dbprefix;
- if(!$SQL)
- {
- global $dbserver, $dbuser, $dbpass, $dbname;
- if(!isset($dbserver))
- {
- return false;
- }
+ if (! $SQL)
+ {
+ global $dbserver, $dbuser, $dbpass, $dbname;
+
+ if (! isset($dbserver))
+ {
+ return false;
+ }
$SQL = new KleejaDatabase($dbserver, $dbuser, $dbpass, $dbname);
- }
+ }
- if(!$SQL)
- {
- return false;
- }
+ if (! $SQL)
+ {
+ return false;
+ }
- $sql = "SELECT value FROM `{$dbprefix}config` WHERE `name` = '" . $name . "'";
- $result = $SQL->query($sql);
- if($SQL->num_rows($result) == 0)
- {
- return false;
- }
- else
- {
- $current_ver = $SQL->fetch_array($result);
- return $current_ver['value'];
- }
+ $sql = "SELECT value FROM `{$dbprefix}config` WHERE `name` = '" . $name . "'";
+ $result = $SQL->query($sql);
+
+ if ($SQL->num_rows($result) == 0)
+ {
+ return false;
+ }
+ else
+ {
+ $current_ver = $SQL->fetch_array($result);
+ return $current_ver['value'];
+ }
}
@@ -197,46 +200,56 @@ function inst_get_config($name)
*/
function get_cookies_settings()
{
- $server_port = !empty($_SERVER['SERVER_PORT']) ? (int) $_SERVER['SERVER_PORT'] : (int) @getenv('SERVER_PORT');
- $server_name = $server_name = (!empty($_SERVER['HTTP_HOST'])) ? strtolower($_SERVER['HTTP_HOST']) : ((!empty($_SERVER['SERVER_NAME'])) ? $_SERVER['SERVER_NAME'] : @getenv('SERVER_NAME'));
+ $server_port = ! empty($_SERVER['SERVER_PORT']) ? (int) $_SERVER['SERVER_PORT'] : (int) @getenv('SERVER_PORT');
+ $server_name = $server_name = (! empty($_SERVER['HTTP_HOST'])) ? strtolower($_SERVER['HTTP_HOST']) : ((! empty($_SERVER['SERVER_NAME'])) ? $_SERVER['SERVER_NAME'] : @getenv('SERVER_NAME'));
- // HTTP HOST can carry a port number...
- if (strpos($server_name, ':') !== false)
- $server_name = substr($server_name, 0, strpos($server_name, ':'));
+ // HTTP HOST can carry a port number...
+ if (strpos($server_name, ':') !== false)
+ {
+ $server_name = substr($server_name, 0, strpos($server_name, ':'));
+ }
- $cookie_secure = isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on' ? true : false;
- $cookie_name = 'klj_' . strtolower(substr(str_replace('0', 'z', base_convert(md5(mt_rand()), 16, 35)), 0, 5));
+ $cookie_secure = isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on' ? true : false;
+ $cookie_name = 'klj_' . strtolower(substr(str_replace('0', 'z', base_convert(md5(mt_rand()), 16, 35)), 0, 5));
- $name = (!empty($_SERVER['PHP_SELF'])) ? $_SERVER['PHP_SELF'] : getenv('PHP_SELF');
- if (!$name)
- $name = (!empty($_SERVER['REQUEST_URI'])) ? $_SERVER['REQUEST_URI'] : @getenv('REQUEST_URI');
+ $name = (! empty($_SERVER['PHP_SELF'])) ? $_SERVER['PHP_SELF'] : getenv('PHP_SELF');
- $script_path = trim(dirname(str_replace(array('\\', '//'), '/', $name)));
+ if (! $name)
+ {
+ $name = (! empty($_SERVER['REQUEST_URI'])) ? $_SERVER['REQUEST_URI'] : @getenv('REQUEST_URI');
+ }
+
+ $script_path = trim(dirname(str_replace(['\\', '//'], '/', $name)));
- if ($script_path !== '/')
- {
- if (substr($script_path, -1) == '/')
- $script_path = substr($script_path, 0, -1);
+ if ($script_path !== '/')
+ {
+ if (substr($script_path, -1) == '/')
+ {
+ $script_path = substr($script_path, 0, -1);
+ }
- $script_path = str_replace(array('../', './'), '', $script_path);
- if ($script_path[0] != '/')
- $script_path = '/' . $script_path;
- }
+ $script_path = str_replace(['../', './'], '', $script_path);
- $cookie_domain = $server_name;
- if (strpos($cookie_domain, 'www.') === 0)
- {
- $cookie_domain = str_replace('www.', '.', $cookie_domain);
- }
+ if ($script_path[0] != '/')
+ {
+ $script_path = '/' . $script_path;
+ }
+ }
- return array(
- 'server_name' => $server_name,
- 'cookie_secure' => $cookie_secure,
- 'cookie_name' => $cookie_name,
- 'cookie_domain' => $cookie_domain,
- 'cookie_path' => str_replace('/install', '', $script_path),
- );
+ $cookie_domain = $server_name;
+ if (strpos($cookie_domain, 'www.') === 0)
+ {
+ $cookie_domain = str_replace('www.', '.', $cookie_domain);
+ }
+
+ return [
+ 'server_name' => $server_name,
+ 'cookie_secure' => $cookie_secure,
+ 'cookie_name' => $cookie_name,
+ 'cookie_domain' => $cookie_domain,
+ 'cookie_path' => str_replace('/install', '', $script_path),
+ ];
}
diff --git a/install/includes/install_sqls.php b/install/includes/install_sqls.php
index c586c8f..45896fb 100755
--- a/install/includes/install_sqls.php
+++ b/install/includes/install_sqls.php
@@ -8,15 +8,15 @@
*/
// not for directly open
-if (!defined('IN_COMMON'))
+if (! defined('IN_COMMON'))
{
- exit();
+ exit();
}
-if(empty($install_sqls) || !is_array($install_sqls))
+if (empty($install_sqls) || ! is_array($install_sqls))
{
- $install_sqls = array();
+ $install_sqls = [];
}
$install_sqls['ALTER_DATABASE_UTF'] = "
@@ -238,10 +238,10 @@ CREATE TABLE `{$dbprefix}filters` (
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin AUTO_INCREMENT=1 ;
";
-$install_sqls['stats_insert'] = "INSERT INTO `{$dbprefix}stats` VALUES (0,0,1,0,0," . time() . ",0,0,0,0,'',0,0,0,0,'','','','')";
-$install_sqls['users_insert'] = "INSERT INTO `{$dbprefix}users` (`id`,`name`,`group_id`,`password`,`password_salt`,`mail`,`founder`,`clean_name`) VALUES (1,'" . $user_name . "', 1, '" . $user_pass . "','" . $user_salt . "', '" . $user_mail . "', 1,'" . $clean_name . "')";
+$install_sqls['stats_insert'] = "INSERT INTO `{$dbprefix}stats` VALUES (0,0,1,0,0," . time() . ",0,0,0,0,'',0,0,0,0,'','','','')";
+$install_sqls['users_insert'] = "INSERT INTO `{$dbprefix}users` (`id`,`name`,`group_id`,`password`,`password_salt`,`mail`,`founder`,`clean_name`) VALUES (1,'" . $user_name . "', 1, '" . $user_pass . "','" . $user_salt . "', '" . $user_mail . "', 1,'" . $clean_name . "')";
$install_sqls['TeamMsg_insert'] = "INSERT INTO `{$dbprefix}call` (`name`,`text`,`mail`,`time`,`ip`) VALUES ('" . $SQL->escape($lang['KLEEJA_TEAM_MSG_NAME']) . "', '" . $SQL->escape($lang['KLEEJA_TEAM_MSG_TEXT']) . "','info@kleeja.com', " . time() . ", '127.0.0.1')";
-$install_sqls['groups_insert'] = "INSERT INTO `{$dbprefix}groups` (`group_id`, `group_name`, `group_is_default`, `group_is_essential`) VALUES
+$install_sqls['groups_insert'] = "INSERT INTO `{$dbprefix}groups` (`group_id`, `group_name`, `group_is_default`, `group_is_essential`) VALUES
(1, '{lang.ADMINS}', 0, 1),
(2, '{lang.GUESTS}', 0, 1),
(3, '{lang.USERS}', 1, 1);";
diff --git a/install/includes/update_files/1.7_to_2.0.php b/install/includes/update_files/1.7_to_2.0.php
index a2d20f1..8639c94 100644
--- a/install/includes/update_files/1.7_to_2.0.php
+++ b/install/includes/update_files/1.7_to_2.0.php
@@ -5,13 +5,13 @@
-$update_sqls = array
-(
- 'files_size_big' => "ALTER TABLE `{$dbprefix}files` CHANGE `size` `size` BIGINT(20) NOT NULL DEFAULT '0';",
- 'group_size_big' => "ALTER TABLE `{$dbprefix}groups_exts` CHANGE `size` `size` BIGINT(20) NOT NULL DEFAULT '0';",
- 'files_index_type' => "ALTER TABLE `{$dbprefix}files` ADD INDEX `type` (`type`);",
- 'id_form_img' => 'INSERT INTO `'.$dbprefix.'config` (`name`, `value`, `option`, `display_order`, `type`, `plg_id`, `dynamic`) VALUES (\'id_form_img\', X\'6964\', \'
\n\', \'21\', X\'75706C6F6164\', \'0\', \'0\');',
-);
+$update_sqls =
+[
+ 'files_size_big' => "ALTER TABLE `{$dbprefix}files` CHANGE `size` `size` BIGINT(20) NOT NULL DEFAULT '0';",
+ 'group_size_big' => "ALTER TABLE `{$dbprefix}groups_exts` CHANGE `size` `size` BIGINT(20) NOT NULL DEFAULT '0';",
+ 'files_index_type' => "ALTER TABLE `{$dbprefix}files` ADD INDEX `type` (`type`);",
+ 'id_form_img' => 'INSERT INTO `' . $dbprefix . 'config` (`name`, `value`, `option`, `display_order`, `type`, `plg_id`, `dynamic`) VALUES (\'id_form_img\', X\'6964\', \'
\n\', \'21\', X\'75706C6F6164\', \'0\', \'0\');',
+];
//$update_functions = array
@@ -29,4 +29,4 @@ $update_sqls = array
//(
// 'note .......',
// 'note 2 .......',
-//);
\ No newline at end of file
+//);
diff --git a/install/index.php b/install/index.php
index 091bfaf..e879e27 100755
--- a/install/index.php
+++ b/install/index.php
@@ -42,9 +42,9 @@ if (! function_exists('mysqli_connect'))
-if(file_exists($_path . 'config.php'))
+if (file_exists($_path . 'config.php'))
{
- include_once ($_path . 'config.php');
+ include_once $_path . 'config.php';
}
include_once $_path . 'includes/functions.php';
@@ -58,9 +58,9 @@ include_once 'includes/functions_install.php';
/**
* print header
*/
-if (!ip('lang'))
+if (! ip('lang'))
{
- echo gettpl('header.html');
+ echo gettpl('header.html');
}
@@ -72,53 +72,58 @@ switch (g('step', 'str'))
default:
case 'language':
- if(ig('ln') && g('ln', 'str', '') !== '')
- {
-// header('Location: ./?step=official&lang=' . g('ln'));
- echo '
';
- exit;
- }
+ if (ig('ln') && g('ln', 'str', '') !== '')
+ {
+ // header('Location: ./?step=official&lang=' . g('ln'));
+ echo '
';
- echo gettpl('lang.html');
+ exit;
+ }
+
+ echo gettpl('lang.html');
break;
+
case 'what_is_kleeja':
- echo gettpl('what_is_kleeja.html');
+ echo gettpl('what_is_kleeja.html');
break;
+
case 'official':
- echo gettpl('official.html');
+ echo gettpl('official.html');
break;
+
case 'choose' :
- $install_or_no = $php_ver = true;
+ $install_or_no = $php_ver = true;
- //check version of PHP
- if (! function_exists('version_compare')
+ //check version of PHP
+ if (! function_exists('version_compare')
|| version_compare(PHP_VERSION, MIN_PHP_VERSION, '<'))
- {
- $php_ver = false;
- }
+ {
+ $php_ver = false;
+ }
- if(file_exists($_path . 'config.php'))
- {
- include_once $_path . 'config.php';
- if(!empty($dbuser) && !empty($dbname))
- {
- $d = inst_get_config('language');
+ if (file_exists($_path . 'config.php'))
+ {
+ include_once $_path . 'config.php';
- if(!empty($d))
- {
- $install_or_no = false;
- }
- }
- }
+ if (! empty($dbuser) && ! empty($dbname))
+ {
+ $d = inst_get_config('language');
+
+ if (! empty($d))
+ {
+ $install_or_no = false;
+ }
+ }
+ }
+
+ echo gettpl('choose.html');
- echo gettpl('choose.html');
-
break;
}
@@ -127,5 +132,3 @@ break;
* print footer
*/
echo gettpl('footer.html');
-
-
diff --git a/install/install.php b/install/install.php
index ff5cfa7..69906a8 100755
--- a/install/install.php
+++ b/install/install.php
@@ -16,11 +16,12 @@
* include important files
*/
define('IN_COMMON', true);
-$_path = "../";
+$_path = '../';
define('PATH', $_path);
-if(file_exists($_path . 'config.php'))
+
+if (file_exists($_path . 'config.php'))
{
- include_once $_path . 'config.php';
+ include_once $_path . 'config.php';
}
include_once $_path . 'includes/functions_display.php';
include_once $_path . 'includes/functions_alternative.php';
@@ -30,7 +31,7 @@ include_once $_path . 'includes/mysqli.php';
include_once 'includes/functions_install.php';
-#an alias class for plugins class
+//an alias class for plugins class
class Plugins
{
private static $instance;
@@ -43,56 +44,60 @@ class Plugins
return self::$instance;
}
- function run($name){ return null; }
+ public function run($name)
+ {
+ return null;
+ }
}
-if(!ig('step'))
+if (! ig('step'))
{
- //if anyone request this file directly without passing index.php we will return him to index.php
- header('Location: index.php');
- exit;
+ //if anyone request this file directly without passing index.php we will return him to index.php
+ header('Location: index.php');
+
+ exit;
}
//
// Kleeja must be safe ..
//
-if(!empty($dbuser) && !empty($dbname) && !(ig('step') && in_array(g('step'), array('c','check', 'data', 'end', 'wizard'))))
+if (! empty($dbuser) && ! empty($dbname) && ! (ig('step') && in_array(g('step'), ['c','check', 'data', 'end', 'wizard'])))
{
- $d = inst_get_config('language');
- if(!empty($d))
- {
- header('Location: index.php');
- exit;
- }
+ $d = inst_get_config('language');
+
+ if (! empty($d))
+ {
+ header('Location: index.php');
+
+ exit;
+ }
}
/**
* Print header
*/
-if(ip('dbsubmit') && !is_writable($_path))
+if (ip('dbsubmit') && ! is_writable($_path))
{
- // soon
+ // soon
}
else
{
- echo gettpl('header.html');
+ echo gettpl('header.html');
}
-/*
-//navigate ..
-*/
+// //navigate ..
switch (g('step'))
{
default:
case 'license':
-$contentof_license = "GPL version 2
+$contentof_license = 'GPL version 2
GNU General Public License, Free Software Foundation
The GNU General Public License is a Free Software license. Like any Free Software license, it grants to you the four following freedoms:
1. The freedom to run the program for any purpose.
@@ -103,7 +108,7 @@ You may exercise the freedoms specified here provided that you comply with the e
You must conspicuously and appropriately publish on each copy distributed an appropriate copyright notice and disclaimer of warranty and keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of the GNU General Public License along with the Program. Any translation of the GNU General Public License must be accompanied by the GNU General Public License.
If you modify your copy or copies of the program or any portion of it, or develop a program based upon it, you may distribute the resulting work provided you do so under the GNU General Public License. Any translation of the GNU General Public License must be accompanied by the GNU General Public License.
If you copy or distribute the program, you must accompany it with the complete corresponding machine-readable source code or with a written offer, valid for at least three years, to furnish the complete corresponding machine-readable source code.
-Any of the above conditions can be waived if you get permission from the copyright holder.";
+Any of the above conditions can be waived if you get permission from the copyright holder.';
$contentof_license = nl2br($contentof_license);
echo gettpl('license.html');
@@ -111,278 +116,326 @@ break;
case 'f':
- $check_ok = true;
- $advices = $register_globals = $get_magic_quotes_gpc = false;
+ $check_ok = true;
+ $advices = $register_globals = $get_magic_quotes_gpc = false;
- if (@ini_get('register_globals') == '1' || strtolower(@ini_get('register_globals')) == 'on')
- {
- $register_globals = true;
- }
- if( (function_exists("get_magic_quotes_gpc") && get_magic_quotes_gpc()) ||
- (@ini_get('magic_quotes_sybase') && (strtolower(@ini_get('magic_quotes_sybase')) != "off")) )
- {
- $get_magic_quotes_gpc = true;
- }
+ if (@ini_get('register_globals') == '1' || strtolower(@ini_get('register_globals')) == 'on')
+ {
+ $register_globals = true;
+ }
- if($register_globals || $get_magic_quotes_gpc)
- {
- $advices = true;
- }
+ if ( (function_exists('get_magic_quotes_gpc') && get_magic_quotes_gpc()) ||
+ (@ini_get('magic_quotes_sybase') && (strtolower(@ini_get('magic_quotes_sybase')) != 'off')) )
+ {
+ $get_magic_quotes_gpc = true;
+ }
- echo gettpl('check.html');
+ if ($register_globals || $get_magic_quotes_gpc)
+ {
+ $advices = true;
+ }
+
+ echo gettpl('check.html');
break;
+
case 'c':
- // after submit, generate config file
- if(ip('dbsubmit'))
- {
- //lets do it
- do_config_export(
- p('db_server'),
- p('db_user'),
- p('db_pass'),
- p('db_name'),
- p('db_prefix')
- );
- }
+ // after submit, generate config file
+ if (ip('dbsubmit'))
+ {
+ //lets do it
+ do_config_export(
+ p('db_server'),
+ p('db_user'),
+ p('db_pass'),
+ p('db_name'),
+ p('db_prefix')
+ );
+ }
- $no_config = !file_exists($_path . 'config.php') ? false : true;
- $writeable_path = is_writable($_path) ? true : false;
+ $no_config = ! file_exists($_path . 'config.php') ? false : true;
+ $writeable_path = is_writable($_path) ? true : false;
- echo gettpl('configs.html');
+ echo gettpl('configs.html');
break;
case 'check':
- $submit_disabled = $no_connection = $mysql_ver = false;
+ $submit_disabled = $no_connection = $mysql_ver = false;
- //config.php
- if(!empty($dbname) && !empty($dbuser))
- {
- //connect .. for check
+ //config.php
+ if (! empty($dbname) && ! empty($dbuser))
+ {
+ //connect .. for check
$SQL = new KleejaDatabase($dbserver, $dbuser, $dbpass, $dbname);
- if (!$SQL->is_connected())
- {
- $no_connection = true;
- }
- else
- {
- if (!empty($SQL->mysql_version()) && version_compare($SQL->mysql_version(), MIN_MYSQL_VERSION, '<'))
- {
- $mysql_ver = $SQL->mysql_version();
- }
- }
- }
+ if (! $SQL->is_connected())
+ {
+ $no_connection = true;
+ }
+ else
+ {
+ if (! empty($SQL->mysql_version()) && version_compare($SQL->mysql_version(), MIN_MYSQL_VERSION, '<'))
+ {
+ $mysql_ver = $SQL->mysql_version();
+ }
+ }
+ }
- //try to chmod them
- if(function_exists('chmod'))
- {
+ //try to chmod them
+ if (function_exists('chmod'))
+ {
@chmod($_path . 'cache', 0755);
@chmod($_path . 'uploads', 0755);
@chmod($_path . 'uploads/thumbs', 0755);
- }
+ }
- echo gettpl('check_all.html');
+ echo gettpl('check_all.html');
break;
case 'data' :
- if (ip('datasubmit'))
- {
+ if (ip('datasubmit'))
+ {
- //check data ...
- if (empty(p('sitename')) || empty(p('siteurl')) || empty(p('sitemail'))
- || empty(p('username')) || empty(p('password')) || empty(p('password2')) || empty(p('email')) )
- {
- echo $lang['EMPTY_FIELDS'];
- echo $footer_inst;
- exit();
- }
+ //check data ...
+ if (empty(p('sitename')) || empty(p('siteurl')) || empty(p('sitemail'))
+ || empty(p('username')) || empty(p('password')) || empty(p('password2')) || empty(p('email')) )
+ {
+ echo $lang['EMPTY_FIELDS'];
+ echo $footer_inst;
- //fix bug #r1777 (alta3rq revision)
- if(!empty(p('password')) && !empty(p('password2')) && p('password') != p('password2'))
- {
- echo $lang['PASS_NEQ_PASS2'];
- echo $footer_inst;
- exit();
- }
- if (strpos(p('email'),'@') === false)
- {
- echo $lang['WRONG_EMAIL'];
- echo $footer_inst;
- exit();
- }
+ exit();
+ }
- //connect .. for check
+ //fix bug #r1777 (alta3rq revision)
+ if (! empty(p('password')) && ! empty(p('password2')) && p('password') != p('password2'))
+ {
+ echo $lang['PASS_NEQ_PASS2'];
+ echo $footer_inst;
+
+ exit();
+ }
+
+ if (strpos(p('email'), '@') === false)
+ {
+ echo $lang['WRONG_EMAIL'];
+ echo $footer_inst;
+
+ exit();
+ }
+
+ //connect .. for check
$SQL = new KleejaDatabase($dbserver, $dbuser, $dbpass, $dbname);
- include_once '../includes/usr.php';
- include_once '../includes/functions_alternative.php';
- $usrcp = new usrcp;
+ include_once '../includes/usr.php';
+ include_once '../includes/functions_alternative.php';
+ $usrcp = new usrcp;
- $user_salt = substr(kleeja_base64_encode(pack("H*", sha1(mt_rand()))), 0, 7);
- $user_pass = $usrcp->kleeja_hash_password(p('password') . $user_salt);
- $user_name = $SQL->escape(p('username'));
- $user_mail = $SQL->escape(p('email'));
- $config_sitename = $SQL->escape(p('sitename'));
- $config_siteurl = $SQL->escape(p('siteurl'));
- $config_sitemail = $SQL->escape(p('sitemail'));
- $config_time_zone = $SQL->escape(p('time_zone'));
- //$config_style = ip('style') ? $SQL->escape(p('style')) : '';
- $config_urls_type = in_array(p('urls_type'), array('id', 'filename', 'direct')) ? p('urls_type') : 'id';
- $clean_name = $usrcp->cleanusername($SQL->escape($user_name));
+ $user_salt = substr(kleeja_base64_encode(pack('H*', sha1(mt_rand()))), 0, 7);
+ $user_pass = $usrcp->kleeja_hash_password(p('password') . $user_salt);
+ $user_name = $SQL->escape(p('username'));
+ $user_mail = $SQL->escape(p('email'));
+ $config_sitename = $SQL->escape(p('sitename'));
+ $config_siteurl = $SQL->escape(p('siteurl'));
+ $config_sitemail = $SQL->escape(p('sitemail'));
+ $config_time_zone = $SQL->escape(p('time_zone'));
+ //$config_style = ip('style') ? $SQL->escape(p('style')) : '';
+ $config_urls_type = in_array(p('urls_type'), ['id', 'filename', 'direct']) ? p('urls_type') : 'id';
+ $clean_name = $usrcp->cleanusername($SQL->escape($user_name));
- /// ok .. we will get sqls now ..
- include 'includes/install_sqls.php';
- include 'includes/default_values.php';
+ /// ok .. we will get sqls now ..
+ include 'includes/install_sqls.php';
+ include 'includes/default_values.php';
- $err = $dots = 0;
- $errors = '';
+ $err = $dots = 0;
+ $errors = '';
- //do important alter before
- $SQL->query($install_sqls['ALTER_DATABASE_UTF']);
+ //do important alter before
+ $SQL->query($install_sqls['ALTER_DATABASE_UTF']);
- $sqls_done = $sql_err = array();
- foreach($install_sqls as $name=>$sql_content)
- {
- if($name == 'DROP_TABLES' || $name == 'ALTER_DATABASE_UTF')
- {
- continue;
- }
+ $sqls_done = $sql_err = [];
- if($SQL->query($sql_content))
- {
- if ($name == 'call') $sqls_done[] = $lang['INST_CRT_CALL'];
- elseif ($name == 'reports') $sqls_done[] = $lang['INST_CRT_REPRS'];
- elseif ($name == 'stats') $sqls_done[] = $lang['INST_CRT_STS'];
- elseif ($name == 'users') $sqls_done[] = $lang['INST_CRT_USRS'];
- elseif ($name == 'users') $sqls_done[] = $lang['INST_CRT_ADM'];
- elseif ($name == 'files') $sqls_done[] = $lang['INST_CRT_FLS'];
- elseif ($name == 'config') $sqls_done[] = $lang['INST_CRT_CNF'];
- elseif ($name == 'exts') $sqls_done[] = $lang['INST_CRT_EXT'];
- elseif ($name == 'online') $sqls_done[] = $lang['INST_CRT_ONL'];
- elseif ($name == 'hooks') $sqls_done[] = $lang['INST_CRT_HKS'];
- elseif ($name == 'plugins') $sqls_done[] = $lang['INST_CRT_PLG'];
- elseif ($name == 'lang') $sqls_done[] = $lang['INST_CRT_LNG'];
- else
- {
- $sqls_done[] = $name . '...';
- }
- }
- else
- {
- $errors .= implode(':', $SQL->get_error()) . '' . "\n___\n";
- $sql_err[] = $lang['INST_SQL_ERR'] . ' : ' . $name . '[basic]';
- $err++;
- }
+ foreach ($install_sqls as $name=>$sql_content)
+ {
+ if ($name == 'DROP_TABLES' || $name == 'ALTER_DATABASE_UTF')
+ {
+ continue;
+ }
- }#for
+ if ($SQL->query($sql_content))
+ {
+ if ($name == 'call')
+ {
+ $sqls_done[] = $lang['INST_CRT_CALL'];
+ }
+ elseif ($name == 'reports')
+ {
+ $sqls_done[] = $lang['INST_CRT_REPRS'];
+ }
+ elseif ($name == 'stats')
+ {
+ $sqls_done[] = $lang['INST_CRT_STS'];
+ }
+ elseif ($name == 'users')
+ {
+ $sqls_done[] = $lang['INST_CRT_USRS'];
+ }
+ elseif ($name == 'users')
+ {
+ $sqls_done[] = $lang['INST_CRT_ADM'];
+ }
+ elseif ($name == 'files')
+ {
+ $sqls_done[] = $lang['INST_CRT_FLS'];
+ }
+ elseif ($name == 'config')
+ {
+ $sqls_done[] = $lang['INST_CRT_CNF'];
+ }
+ elseif ($name == 'exts')
+ {
+ $sqls_done[] = $lang['INST_CRT_EXT'];
+ }
+ elseif ($name == 'online')
+ {
+ $sqls_done[] = $lang['INST_CRT_ONL'];
+ }
+ elseif ($name == 'hooks')
+ {
+ $sqls_done[] = $lang['INST_CRT_HKS'];
+ }
+ elseif ($name == 'plugins')
+ {
+ $sqls_done[] = $lang['INST_CRT_PLG'];
+ }
+ elseif ($name == 'lang')
+ {
+ $sqls_done[] = $lang['INST_CRT_LNG'];
+ }
+ else
+ {
+ $sqls_done[] = $name . '...';
+ }
+ }
+ else
+ {
+ $errors .= implode(':', $SQL->get_error()) . '' . "\n___\n";
+ $sql_err[] = $lang['INST_SQL_ERR'] . ' : ' . $name . '[basic]';
+ $err++;
+ }
+ }//for
- if($err == 0)
- {
- //add configs
- foreach($config_values as $cn)
- {
- if(empty($cn[6]))
- {
- $cn[6] = 0;
- }
+ if ($err == 0)
+ {
+ //add configs
+ foreach ($config_values as $cn)
+ {
+ if (empty($cn[6]))
+ {
+ $cn[6] = 0;
+ }
- $sql = "INSERT INTO `{$dbprefix}config` (`name`, `value`, `option`, `display_order`, `type`, `plg_id`, `dynamic`) VALUES ('$cn[0]', '$cn[1]', '$cn[2]', '$cn[3]', '$cn[4]', '$cn[5]', '$cn[6]');";
- if(!$SQL->query($sql))
- {
- $errors .= implode(':', $SQL->get_error()) . '' . "\n___\n";
- $sql_err[] = $lang['INST_SQL_ERR'] . ' : [configs_values] ' . $cn;
- $err++;
- }
- }
+ $sql = "INSERT INTO `{$dbprefix}config` (`name`, `value`, `option`, `display_order`, `type`, `plg_id`, `dynamic`) VALUES ('$cn[0]', '$cn[1]', '$cn[2]', '$cn[3]', '$cn[4]', '$cn[5]', '$cn[6]');";
- //add groups configs
- foreach($config_values as $cn)
- {
- if($cn[4] != 'groups' or !$cn[4])
- {
- continue;
- }
+ if (! $SQL->query($sql))
+ {
+ $errors .= implode(':', $SQL->get_error()) . '' . "\n___\n";
+ $sql_err[] = $lang['INST_SQL_ERR'] . ' : [configs_values] ' . $cn;
+ $err++;
+ }
+ }
- $itxt = '';
- foreach(array(1, 2, 3) as $im)
- {
- $itxt .= ($itxt == '' ? '' : ','). "($im, '$cn[0]', '$cn[1]')";
- }
+ //add groups configs
+ foreach ($config_values as $cn)
+ {
+ if ($cn[4] != 'groups' or ! $cn[4])
+ {
+ continue;
+ }
- $sql = "INSERT INTO `{$dbprefix}groups_data` (`group_id`, `name`, `value`) VALUES " . $itxt . ";";
- if(!$SQL->query($sql))
- {
- $errors .= implode(':', $SQL->get_error()) . '' . "\n___\n";
- $sql_err[] = $lang['INST_SQL_ERR'] . ' : [groups_configs_values] ' . $cn;
- $err++;
- }
- }
+ $itxt = '';
- //add exts
- foreach($ext_values as $gid=>$exts)
- {
- $itxt = '';
- foreach($exts as $t=>$v)
- {
- $itxt .= ($itxt == '' ? '' : ','). "('$t', $gid, $v)";
- }
+ foreach ([1, 2, 3] as $im)
+ {
+ $itxt .= ($itxt == '' ? '' : ',') . "($im, '$cn[0]', '$cn[1]')";
+ }
- $sql = "INSERT INTO `{$dbprefix}groups_exts` (`ext`, `group_id`, `size`) VALUES " . $itxt . ";";
- if(!$SQL->query($sql))
- {
- $errors .= implode(':', $SQL->get_error()) . '' . "\n___\n";
- $sql_err[] = $lang['INST_SQL_ERR'] . ' : [ext_values] ' . $gid;
- $err++;
- }
- }
+ $sql = "INSERT INTO `{$dbprefix}groups_data` (`group_id`, `name`, `value`) VALUES " . $itxt . ';';
- //add acls
- foreach($acls_values as $cn=>$ct)
- {
- $it = 1;
- $itxt = '';
- foreach($ct as $ctk)
- {
- $itxt .= ($itxt == '' ? '' : ','). "('$cn', '$it', '$ctk')";
- $it++;
- }
+ if (! $SQL->query($sql))
+ {
+ $errors .= implode(':', $SQL->get_error()) . '' . "\n___\n";
+ $sql_err[] = $lang['INST_SQL_ERR'] . ' : [groups_configs_values] ' . $cn;
+ $err++;
+ }
+ }
+
+ //add exts
+ foreach ($ext_values as $gid=>$exts)
+ {
+ $itxt = '';
+
+ foreach ($exts as $t=>$v)
+ {
+ $itxt .= ($itxt == '' ? '' : ',') . "('$t', $gid, $v)";
+ }
+
+ $sql = "INSERT INTO `{$dbprefix}groups_exts` (`ext`, `group_id`, `size`) VALUES " . $itxt . ';';
+
+ if (! $SQL->query($sql))
+ {
+ $errors .= implode(':', $SQL->get_error()) . '' . "\n___\n";
+ $sql_err[] = $lang['INST_SQL_ERR'] . ' : [ext_values] ' . $gid;
+ $err++;
+ }
+ }
+
+ //add acls
+ foreach ($acls_values as $cn=>$ct)
+ {
+ $it = 1;
+ $itxt = '';
+
+ foreach ($ct as $ctk)
+ {
+ $itxt .= ($itxt == '' ? '' : ',') . "('$cn', '$it', '$ctk')";
+ $it++;
+ }
- $sql = "INSERT INTO `{$dbprefix}groups_acl` (`acl_name`, `group_id`, `acl_can`) VALUES " . $itxt . ";";
- if(!$SQL->query($sql))
- {
- $errors .= implode(':', $SQL->get_error()) . '' . "\n___\n";
- $sql_err[] = $lang['INST_SQL_ERR'] . ' : [acl_values] ' . $cn;
- $err++;
- }
- $it++;
- }
- }
+ $sql = "INSERT INTO `{$dbprefix}groups_acl` (`acl_name`, `group_id`, `acl_can`) VALUES " . $itxt . ';';
- echo gettpl('sqls_done.html');
+ if (! $SQL->query($sql))
+ {
+ $errors .= implode(':', $SQL->get_error()) . '' . "\n___\n";
+ $sql_err[] = $lang['INST_SQL_ERR'] . ' : [acl_values] ' . $cn;
+ $err++;
+ }
+ $it++;
+ }
+ }
- }
- else
- {
- $urlsite = 'http://' . $_SERVER['HTTP_HOST'] . str_replace('install', '', dirname($_SERVER['PHP_SELF']));
- echo gettpl('data.html');
- }
+ echo gettpl('sqls_done.html');
+ }
+ else
+ {
+ $urlsite = 'http://' . $_SERVER['HTTP_HOST'] . str_replace('install', '', dirname($_SERVER['PHP_SELF']));
+ echo gettpl('data.html');
+ }
break;
case 'end' :
- echo gettpl('end.html');
- //for safe ..
- //@rename("install.php", "install.lock");
+ echo gettpl('end.html');
+ //for safe ..
+ //@rename("install.php", "install.lock");
break;
}
@@ -391,6 +444,3 @@ break;
* print footer
*/
echo gettpl('footer.html');
-
-
-
diff --git a/install/update.php b/install/update.php
index 27e2457..e8975c0 100755
--- a/install/update.php
+++ b/install/update.php
@@ -16,11 +16,12 @@
* include important files
*/
define('IN_COMMON', true);
-$_path = "../";
+$_path = '../';
define('PATH', $_path);
-if(file_exists($_path . 'config.php'))
+
+if (file_exists($_path . 'config.php'))
{
- include_once $_path . 'config.php';
+ include_once $_path . 'config.php';
}
include_once $_path . 'includes/functions.php';
@@ -31,20 +32,21 @@ include_once $_path . 'includes/mysqli.php';
include_once 'includes/functions_install.php';
-$order_update_files = array(
- '1.7_to_2.0' => 9,
- // filename => db_version
-);
+$order_update_files = [
+ '1.7_to_2.0' => 9,
+ // filename => db_version
+];
$SQL = new KleejaDatabase($dbserver, $dbuser, $dbpass, $dbname);
-
+
//
// Is current db is up-to-date ?
//
$config['db_version'] = inst_get_config('db_version');
-if($config['db_version'] == false)
+
+if ($config['db_version'] == false)
{
- $SQL->query("INSERT INTO `{$dbprefix}config` (`name` ,`value`) VALUES ('db_version', '')");
+ $SQL->query("INSERT INTO `{$dbprefix}config` (`name` ,`value`) VALUES ('db_version', '')");
}
@@ -54,9 +56,9 @@ $IN_UPDATE = true;
/**
* print header
*/
-if (!ip('action_file_do'))
+if (! ip('action_file_do'))
{
- echo gettpl('header.html');
+ echo gettpl('header.html');
}
@@ -69,141 +71,146 @@ switch (g('step', 'str', 'action_file'))
default:
case 'action_file':
- if (ip('action_file_do'))
- {
- if (p('action_file_do', 'str', '') !== '')
- {
- echo '
';
- }
- }
- else
- {
- //get fles
- $s_path = "includes/update_files";
- $dh = opendir($s_path);
- $upfiles = array();
+ if (ip('action_file_do'))
+ {
+ if (p('action_file_do', 'str', '') !== '')
+ {
+ echo '
';
+ }
+ }
+ else
+ {
+ //get fles
+ $s_path = 'includes/update_files';
+ $dh = opendir($s_path);
+ $upfiles = [];
- while (($file = readdir($dh)) !== false)
- {
- if(substr($file, -3) == 'php')
- {
- $file = str_replace('.php','', $file);
- $db_ver = $order_update_files[$file];
+ while (($file = readdir($dh)) !== false)
+ {
+ if (substr($file, -3) == 'php')
+ {
+ $file = str_replace('.php', '', $file);
+ $db_ver = $order_update_files[$file];
- // var_dump($db_ver);
+ // var_dump($db_ver);
- if((empty($config['db_version']) || $db_ver > $config['db_version']))
- {
+ if ((empty($config['db_version']) || $db_ver > $config['db_version']))
+ {
$upfiles[$db_ver] = $file;
}
- }
- }
- @closedir($dh);
+ }
+ }
+ @closedir($dh);
- ksort($upfiles);
-
- echo gettpl('update_list.html');
- }
+ ksort($upfiles);
+
+ echo gettpl('update_list.html');
+ }
break;
case 'update_now':
-
- if(!ig('action_file_do'))
- {
- echo '
';
- exit();
- }
-
- if(ig('complet_up_func'))
- {
- define('C_U_F', true);
- }
-
- $file_for_up = 'includes/update_files/' . preg_replace('/[^a-z0-9_\-\.]/i', '', g('action_file_do')) . '.php';
- if(!file_exists($file_for_up))
- {
- echo '
' . $lang['INST_ERR_NO_SELECTED_UPFILE_GOOD'] . ' [ ' . $file_for_up . ' ]';
- }
- else
- {
- //get it
- require $file_for_up;
- $complete_update = true;
- $update_msgs_arr = array();
-
- if($config['db_version'] >= LAST_DB_VERSION && !defined('DEV_STAGE'))
- {
- $update_msgs_arr[] = '
' . $lang['INST_UPDATE_CUR_VER_IS_UP']. '';
- $complete_update = false;
- }
-
- //
- //is there any sqls
- //
- if(($complete_update || (defined('DEV_STAGE')) && !defined('C_U_F')))
- {
- $SQL->show_errors = false;
- if(isset($update_sqls) && sizeof($update_sqls) > 0)
- {
- $err = '';
- foreach($update_sqls as $name=>$sql_content)
- {
- $err = '';
- $SQL->query($sql_content);
- $err = $SQL->get_error();
+ if (! ig('action_file_do'))
+ {
+ echo '
';
- if(strpos($err[1], 'Duplicate') !== false || $err[0] == '1062' || $err[0] == '1060')
- {
- $update_msgs_arr[] = '
' . $lang['INST_UPDATE_CUR_VER_IS_UP']. '';
- $complete_update = false;
- }
- }
- }
- }
+ exit();
+ }
- //
- //is there any functions
- //
- if($complete_update || defined('DEV_STAGE') || defined('C_U_F'))
- {
- if(isset($update_functions) && sizeof($update_functions) > 0)
- {
- foreach($update_functions as $n)
- {
- if(is_callable($n))
- {
- $n();
+ if (ig('complet_up_func'))
+ {
+ define('C_U_F', true);
+ }
+
+ $file_for_up = 'includes/update_files/' . preg_replace('/[^a-z0-9_\-\.]/i', '', g('action_file_do')) . '.php';
+
+ if (! file_exists($file_for_up))
+ {
+ echo '
' . $lang['INST_ERR_NO_SELECTED_UPFILE_GOOD'] . ' [ ' . $file_for_up . ' ]';
+ }
+ else
+ {
+ //get it
+ require $file_for_up;
+ $complete_update = true;
+ $update_msgs_arr = [];
+
+
+ if ($config['db_version'] >= LAST_DB_VERSION && ! defined('DEV_STAGE'))
+ {
+ $update_msgs_arr[] = '
' . $lang['INST_UPDATE_CUR_VER_IS_UP'] . '';
+ $complete_update = false;
+ }
+
+ //
+ //is there any sqls
+ //
+ if (($complete_update || (defined('DEV_STAGE')) && ! defined('C_U_F')))
+ {
+ $SQL->show_errors = false;
+
+ if (isset($update_sqls) && sizeof($update_sqls) > 0)
+ {
+ $err = '';
+
+ foreach ($update_sqls as $name=>$sql_content)
+ {
+ $err = '';
+ $SQL->query($sql_content);
+ $err = $SQL->get_error();
+
+ if (strpos($err[1], 'Duplicate') !== false || $err[0] == '1062' || $err[0] == '1060')
+ {
+ $update_msgs_arr[] = '
' . $lang['INST_UPDATE_CUR_VER_IS_UP'] . '';
+ $complete_update = false;
}
- }
- }
- }
-
- //
- //is there any notes
- //
- $NOTES_CUP = false;
- if($complete_update || defined('DEV_STAGE'))
- {
- if(isset($update_notes) && sizeof($update_notes) > 0)
- {
- $i=1;
- $NOTES_CUP = array();
- foreach($update_notes as $n)
- {
- $NOTES_CUP[$i] = $n;
- ++$i;
- }
+ }
+ }
+ }
- }
+ //
+ //is there any functions
+ //
+ if ($complete_update || defined('DEV_STAGE') || defined('C_U_F'))
+ {
+ if (isset($update_functions) && sizeof($update_functions) > 0)
+ {
+ foreach ($update_functions as $n)
+ {
+ if (is_callable($n))
+ {
+ $n();
+ }
+ }
+ }
+ }
+
+ //
+ //is there any notes
+ //
+ $NOTES_CUP = false;
+
+ if ($complete_update || defined('DEV_STAGE'))
+ {
+ if (isset($update_notes) && sizeof($update_notes) > 0)
+ {
+ $i =1;
+ $NOTES_CUP = [];
+
+ foreach ($update_notes as $n)
+ {
+ $NOTES_CUP[$i] = $n;
+ ++$i;
+ }
+ }
$sql = "UPDATE `{$dbprefix}config` SET `value` = '" . LAST_DB_VERSION . "' WHERE `name` = 'db_version'";
$SQL->query($sql);
- }
+ }
- echo gettpl('update_end.html');
- }
+ echo gettpl('update_end.html');
+ }
break;
}
diff --git a/lang/ar/acp.php b/lang/ar/acp.php
index 3c01a02..7239fe2 100755
--- a/lang/ar/acp.php
+++ b/lang/ar/acp.php
@@ -4,283 +4,283 @@
// Arabic
//
-return array(
- 'U_NOT_ADMIN' => 'يجب أن تملك صلاحية الإدارة',
- 'UPDATE_CONFIG' => 'تحديث الإعدادات',
- 'NO_CHANGE' => 'بلا تغيير',
- 'CHANGE_MD5' => 'تغيير مع دالة md5 (8c7dd922ad47494fc02c388e12c00eac.png) ',
- 'CHANGE_TIME' => 'تغيير مع دالة TIME (1501440381.png)',
- 'SITENAME' => 'إسم المركز',
- 'SITEMAIL' => 'بريد المركز',
- 'SITEMAIL2' => 'بريد التبليغات , المراسلات',
- 'SITEURL' => 'رابط المركز
(مع / بنهايته)',
- 'FOLDERNAME' => 'إسم مجلد التحميل
(يمكنك استخدام {year} و {month} و {day} و {week} و {username})',
- 'PREFIXNAME' => 'بادئة أسماء الملفات (مثلا : kleeja_ وستضاف قبل اسم كل ملف مرفوع, يمكن استخدام ايضا {rand:4} و {date:d_Y})',
- 'FILESNUM' => 'عدد حقول ملفات التحميل',
- 'FILESNUM_SHOW' => 'عرض حقول حقول التحميل كلها',
- 'SITECLOSE' => 'إغلاق المركز',
- 'CLOSEMSG' => 'رسالة الإغلاق',
- 'DECODE' => 'تغيير إسم الملف (لاحظ : عند عرض الملف سيظهر اسمه الاصلي, اما هذا فللحماية والتنظيم)',
- 'SEC_DOWN' => 'عدد الثواني قبل بدء التحميل',
- 'STATFOOTER' => 'إحصائيات الصفحة بالفوتر',
- 'GZIP' => 'GZIP (ضاغط المحتويات لتسريع عرضها)',
- 'GOOGLEANALYTICS' => 'Google Analytics',
- 'WELCOME_MSG' => 'كلمة الترحيب',
- 'USER_SYSTEM' => 'نظام العضوية (لاحظ: تغييرها قد يمنعك من الدخول مالم تتبع الشروحات)',
+return [
+ 'U_NOT_ADMIN' => 'يجب أن تملك صلاحية الإدارة',
+ 'UPDATE_CONFIG' => 'تحديث الإعدادات',
+ 'NO_CHANGE' => 'بلا تغيير',
+ 'CHANGE_MD5' => 'تغيير مع دالة md5 (8c7dd922ad47494fc02c388e12c00eac.png) ',
+ 'CHANGE_TIME' => 'تغيير مع دالة TIME (1501440381.png)',
+ 'SITENAME' => 'إسم المركز',
+ 'SITEMAIL' => 'بريد المركز',
+ 'SITEMAIL2' => 'بريد التبليغات , المراسلات',
+ 'SITEURL' => 'رابط المركز (مع / بنهايته)',
+ 'FOLDERNAME' => 'إسم مجلد التحميل
(يمكنك استخدام {year} و {month} و {day} و {week} و {username})',
+ 'PREFIXNAME' => 'بادئة أسماء الملفات (مثلا : kleeja_ وستضاف قبل اسم كل ملف مرفوع, يمكن استخدام ايضا {rand:4} و {date:d_Y})',
+ 'FILESNUM' => 'عدد حقول ملفات التحميل',
+ 'FILESNUM_SHOW' => 'عرض حقول حقول التحميل كلها',
+ 'SITECLOSE' => 'إغلاق المركز',
+ 'CLOSEMSG' => 'رسالة الإغلاق',
+ 'DECODE' => 'تغيير إسم الملف (لاحظ : عند عرض الملف سيظهر اسمه الاصلي, اما هذا فللحماية والتنظيم)',
+ 'SEC_DOWN' => 'عدد الثواني قبل بدء التحميل',
+ 'STATFOOTER' => 'إحصائيات الصفحة بالفوتر',
+ 'GZIP' => 'GZIP (ضاغط المحتويات لتسريع عرضها)',
+ 'GOOGLEANALYTICS' => 'Google Analytics',
+ 'WELCOME_MSG' => 'كلمة الترحيب',
+ 'USER_SYSTEM' => 'نظام العضوية (لاحظ: تغييرها قد يمنعك من الدخول مالم تتبع الشروحات)',
- 'TOTAL_SIZE' => 'أقصى حجم كلي للمركز (ميقا بايت)',
- 'THUMBS_IMGS' => 'أبعاد مصغرات الصور (عرض x إرتفاع)',
- 'WRITE_IMGS' => 'تفعيل ختم الصور',
- 'ID_FORM' => 'شكل روابط الملفات (المباشر لايخضع لحمايتنا ولا للاحصائيات .. )',
- 'IDF' => 'الاساسي (example.com/do.php?id=123)',
- 'IDFF' => 'إسم الملف (example.com/do.php?file=filename.pdf)',
- 'IDFD' => 'رابط مباشر (example.com/uploads/filename.pdf)',
- 'ID_FORM_IMG' => 'شكل روابط الصور (المباشر لايخضع لحمايتنا ولا للاحصائيات .. )',
- 'IDF_IMG' => 'الاساسي (example.com/do.php?img=123)',
- 'IDFF_IMG' => 'إسم الملف (example.com/do.php?imgf=filename.png)',
- 'IDFD_IMG' => 'رابط مباشر (example.com/uploads/filename.png)',
- 'DEL_URL_FILE' => 'تفعيل رابط الحذف المباشر',
- 'WWW_URL' => 'تفعيل التحميل من رابط',
- 'ALLOW_STAT_PG' => 'تفعيل صفحة الإحصائيات',
- 'ALLOW_ONLINE' => 'تفعيل عرض المتواجدون الآن',
- 'DEL_F_DAY' => 'حذف الملفات الخاملة بعد × يوم - صفر للتعطيل',
- 'MOD_WRITER' => 'Mod Rewrite (لاحظ: لن يعمل الا بعد نقل ملف .htaccess للمجلد الرئيسي)',
- 'MOD_WRITER_EX' => 'روابط كـ HTML ..',
- 'NUMFIELD_S' => 'رجاءاً .. الحقول الرقمية .. يجب أن تكون رقمية!',
- 'CONFIGS_UPDATED' => 'تم تحديت الإعدادات بنجاح',
+ 'TOTAL_SIZE' => 'أقصى حجم كلي للمركز (ميقا بايت)',
+ 'THUMBS_IMGS' => 'أبعاد مصغرات الصور (عرض x إرتفاع)',
+ 'WRITE_IMGS' => 'تفعيل ختم الصور',
+ 'ID_FORM' => 'شكل روابط الملفات (المباشر لايخضع لحمايتنا ولا للاحصائيات .. )',
+ 'IDF' => 'الاساسي (example.com/do.php?id=123)',
+ 'IDFF' => 'إسم الملف (example.com/do.php?file=filename.pdf)',
+ 'IDFD' => 'رابط مباشر (example.com/uploads/filename.pdf)',
+ 'ID_FORM_IMG' => 'شكل روابط الصور (المباشر لايخضع لحمايتنا ولا للاحصائيات .. )',
+ 'IDF_IMG' => 'الاساسي (example.com/do.php?img=123)',
+ 'IDFF_IMG' => 'إسم الملف (example.com/do.php?imgf=filename.png)',
+ 'IDFD_IMG' => 'رابط مباشر (example.com/uploads/filename.png)',
+ 'DEL_URL_FILE' => 'تفعيل رابط الحذف المباشر',
+ 'WWW_URL' => 'تفعيل التحميل من رابط',
+ 'ALLOW_STAT_PG' => 'تفعيل صفحة الإحصائيات',
+ 'ALLOW_ONLINE' => 'تفعيل عرض المتواجدون الآن',
+ 'DEL_F_DAY' => 'حذف الملفات الخاملة بعد × يوم - صفر للتعطيل',
+ 'MOD_WRITER' => 'Mod Rewrite (لاحظ: لن يعمل الا بعد نقل ملف .htaccess للمجلد الرئيسي)',
+ 'MOD_WRITER_EX' => 'روابط كـ HTML ..',
+ 'NUMFIELD_S' => 'رجاءاً .. الحقول الرقمية .. يجب أن تكون رقمية!',
+ 'CONFIGS_UPDATED' => 'تم تحديت الإعدادات بنجاح',
- 'E_EXTS' => 'ملاحظة : الأحجام تضبط بالكليوبايت .',
- 'UPDATED_EXTS' => 'تم تحديث الإمتدادات بنجاح',
- 'EXT_DELETED' => 'تم حذف الامتداد بنجاح.',
- 'REPLY' => 'إرسال',
- 'REPLY_REPORT' => 'رد على تبليغ',
- 'U_REPORT_ON' => 'بسبب تبليغك في ',
- 'BY_EMAIL' => 'بواسطة البريد ',
- 'ADMIN_REPLIED' => 'فقد قام المدير بالرد التالي',
- 'IS_SEND_MAIL' => 'تم إرسال الرد البريدي',
- 'REPORTS_UPDATED' => 'تم تحديث التبليغات',
- 'REPLY_CALL' => 'رد على رسالة',
- 'REPLIED_ON_CAL' => 'بخصوص مراسلتك ',
- 'CALLS_UPDATED' => 'تم تحديث المراسلات',
- 'FOUNDER' => 'مؤسس',
- 'USER_UPDATED' => 'تم تحديث بيانات المستخدم ..',
- 'REPAIRE_TABLE' => '[جداول] تم إصلاح ',
- 'REPAIRE_CACHE' => 'تم حذف/تجديد الكاش (الملفات المؤقتة) ...',
- 'KLEEJA_CP' => 'لوحة التحكم',
- 'GENERAL_STAT' => 'إحصائيات عامة',
- 'SEARCH_STAT' => 'إحصائيات محركات البحث',
- 'OTHER_INFO' => 'معلومات أخرى',
- 'AFILES_NUM' => 'عدد جميع الملفات',
- 'AFILES_SIZE_SPACE' => 'المساحة التي تم استهلاكها حتى الآن',
- 'AUSERS_NUM' => 'عدد الأعضاء',
- 'LAST_GOOGLE' => 'آخر زيارة لجوجل',
- 'GOOGLE_NUM' => 'عدد زيارات جوجل',
- 'LAST_BING' => 'آخر زيارات بينق',
- 'BING_NUM' => 'عدد زيارات بينق',
- 'KLEEJA_CP_W' => 'مرحباً بك, في لوحة الإدارة',
- 'PHP_VER' => 'إصدار PHP',
- 'MYSQL_VER' => 'إصدار MySQL',
- 'R_CONFIGS' => 'إعدادات',
- 'R_CPINDEX' => 'بداية لوحة كليجا',
- 'R_EXTS' => 'إعدادات الإمتدادات',
- 'R_FILES' => 'إدارة الملفات',
- 'R_REPORTS' => 'تبليغات',
- 'R_CALLS' => 'رسائل',
- 'R_USERS' => 'الأعضاء والمجموعات',
- 'R_REPAIR' => 'صيانة',
- 'R_LGOUTCP' => 'مسح جلسة الإدارة',
- 'R_BAN' => 'التحكم بالحظر',
- 'BAN_EXP1' => 'قم بتحرير الآيبيات المحظورة وإضافة الجديد من هنا..',
- 'BAN_EXP2' => 'إستخدم رمز النجمة (*)لاستبدال الارقام ..إذا كنت تريد الحظر الشامل ..وأستخدم الفاصل (|) للفصل بين الآيبيات',
- 'UPDATE_BAN' => 'حفظ تعديلات الحظر',
- 'BAN_UPDATED' => 'تم تحديث قائمة الحظر بنجاح..',
- 'R_RULES' => 'شروط الخدمة',
- 'RULES_EXP' => 'من هنا تستطيع تعديل الشروط التي سوف تظهر للزوار والأعضاء',
- 'UPDATE_RULES' => 'تحديث الشروط',
- 'RULES_UPDATED' => 'تم تحديث الشروط بنجاح..',
- 'R_SEARCH' => 'بحث متقدم',
- 'SEARCH_FILES' => 'بحث عن الملفات',
- 'SEARCH_SUBMIT' => 'بحث',
- 'LAST_DOWN' => 'آخر تحميل',
- 'WAS_B4' => 'كان قبل',
- 'SEARCH_USERS' => 'بحث عن مستخدمين',
- 'R_IMG_CTRL' => 'إدارة الصور',
- 'ENABLE_USERFILE' => 'تفعيل مجلدات المستخدمين',
- 'R_EXTRA' => 'هيدر وفوتر إضافي',
- 'EX_HEADER_N' => 'الهيدر الإضافي.. وهو ما يظهر أسفل الهيدر الأصلي ..',
- 'EX_FOOTER_N' => 'الفوتر الإضافي.. وهو ما يظهر أعلى الفوتر الأصلي ..',
- 'UPDATE_EXTRA' => 'تحديث الإضافات القوالبية',
- 'EXTRA_UPDATED' => 'تم تحديث الإضافات القوالبية',
- 'R_STYLES' => 'الستايلات',
- 'NO_TPL_SHOOSED' => 'لم تقم بإختيار قالب!',
+ 'E_EXTS' => 'ملاحظة : الأحجام تضبط بالكليوبايت .',
+ 'UPDATED_EXTS' => 'تم تحديث الإمتدادات بنجاح',
+ 'EXT_DELETED' => 'تم حذف الامتداد بنجاح.',
+ 'REPLY' => 'إرسال',
+ 'REPLY_REPORT' => 'رد على تبليغ',
+ 'U_REPORT_ON' => 'بسبب تبليغك في ',
+ 'BY_EMAIL' => 'بواسطة البريد ',
+ 'ADMIN_REPLIED' => 'فقد قام المدير بالرد التالي',
+ 'IS_SEND_MAIL' => 'تم إرسال الرد البريدي',
+ 'REPORTS_UPDATED' => 'تم تحديث التبليغات',
+ 'REPLY_CALL' => 'رد على رسالة',
+ 'REPLIED_ON_CAL' => 'بخصوص مراسلتك ',
+ 'CALLS_UPDATED' => 'تم تحديث المراسلات',
+ 'FOUNDER' => 'مؤسس',
+ 'USER_UPDATED' => 'تم تحديث بيانات المستخدم ..',
+ 'REPAIRE_TABLE' => '[جداول] تم إصلاح ',
+ 'REPAIRE_CACHE' => 'تم حذف/تجديد الكاش (الملفات المؤقتة) ...',
+ 'KLEEJA_CP' => 'لوحة التحكم',
+ 'GENERAL_STAT' => 'إحصائيات عامة',
+ 'SEARCH_STAT' => 'إحصائيات محركات البحث',
+ 'OTHER_INFO' => 'معلومات أخرى',
+ 'AFILES_NUM' => 'عدد جميع الملفات',
+ 'AFILES_SIZE_SPACE' => 'المساحة التي تم استهلاكها حتى الآن',
+ 'AUSERS_NUM' => 'عدد الأعضاء',
+ 'LAST_GOOGLE' => 'آخر زيارة لجوجل',
+ 'GOOGLE_NUM' => 'عدد زيارات جوجل',
+ 'LAST_BING' => 'آخر زيارات بينق',
+ 'BING_NUM' => 'عدد زيارات بينق',
+ 'KLEEJA_CP_W' => 'مرحباً بك, في لوحة الإدارة',
+ 'PHP_VER' => 'إصدار PHP',
+ 'MYSQL_VER' => 'إصدار MySQL',
+ 'R_CONFIGS' => 'إعدادات',
+ 'R_CPINDEX' => 'بداية لوحة كليجا',
+ 'R_EXTS' => 'إعدادات الإمتدادات',
+ 'R_FILES' => 'إدارة الملفات',
+ 'R_REPORTS' => 'تبليغات',
+ 'R_CALLS' => 'رسائل',
+ 'R_USERS' => 'الأعضاء والمجموعات',
+ 'R_REPAIR' => 'صيانة',
+ 'R_LGOUTCP' => 'مسح جلسة الإدارة',
+ 'R_BAN' => 'التحكم بالحظر',
+ 'BAN_EXP1' => 'قم بتحرير الآيبيات المحظورة وإضافة الجديد من هنا..',
+ 'BAN_EXP2' => 'إستخدم رمز النجمة (*)لاستبدال الارقام ..إذا كنت تريد الحظر الشامل ..وأستخدم الفاصل (|) للفصل بين الآيبيات',
+ 'UPDATE_BAN' => 'حفظ تعديلات الحظر',
+ 'BAN_UPDATED' => 'تم تحديث قائمة الحظر بنجاح..',
+ 'R_RULES' => 'شروط الخدمة',
+ 'RULES_EXP' => 'من هنا تستطيع تعديل الشروط التي سوف تظهر للزوار والأعضاء',
+ 'UPDATE_RULES' => 'تحديث الشروط',
+ 'RULES_UPDATED' => 'تم تحديث الشروط بنجاح..',
+ 'R_SEARCH' => 'بحث متقدم',
+ 'SEARCH_FILES' => 'بحث عن الملفات',
+ 'SEARCH_SUBMIT' => 'بحث',
+ 'LAST_DOWN' => 'آخر تحميل',
+ 'WAS_B4' => 'كان قبل',
+ 'SEARCH_USERS' => 'بحث عن مستخدمين',
+ 'R_IMG_CTRL' => 'إدارة الصور',
+ 'ENABLE_USERFILE' => 'تفعيل مجلدات المستخدمين',
+ 'R_EXTRA' => 'هيدر وفوتر إضافي',
+ 'EX_HEADER_N' => 'الهيدر الإضافي.. وهو ما يظهر أسفل الهيدر الأصلي ..',
+ 'EX_FOOTER_N' => 'الفوتر الإضافي.. وهو ما يظهر أعلى الفوتر الأصلي ..',
+ 'UPDATE_EXTRA' => 'تحديث الإضافات القوالبية',
+ 'EXTRA_UPDATED' => 'تم تحديث الإضافات القوالبية',
+ 'R_STYLES' => 'الستايلات',
+ 'NO_TPL_SHOOSED' => 'لم تقم بإختيار قالب!',
- 'R_PLUGINS' => 'إضافات برمجية',
- 'ADD_NEW_PLUGIN' => 'أضف إضافة برمجية جديدة',
- 'PLUGIN_DELETED' => 'لقد تم حذف الإضافة البرمجية...',
- 'PLGUIN_DISABLED_ENABLED' => 'لقد تم تفعيل \ تعطيل الإضافة البرمجية..',
- 'NO_PLUGINS' => 'لا يوجد أي إضافات برمجية ..',
- 'NEW_PLUGIN_ADDED' => 'لقد تمت إضافة الإضافة البرمجية .. ',
- 'PLUGIN_EXISTS_BEFORE' => 'الاضافة هذه موجودة سابقاً بنفس الاصدار أو أعلى ولاتحتاج تحديث !',
- 'R_CHECK_UPDATE' => 'فحص عن تحديثات',
- 'ERROR_CHECK_VER' => 'خطأ: لا يمكن جلب معلومات عن آخر نسخة في هذه اللحظة، حاول مجدداً لاحقا!.',
- 'UPDATE_KLJ_NOW' => 'يجب أن تقوم بتحديث نسختك إلى آخر نسخة الآن، قم بالذهاب لموقع كليجا لمعلومات أكثر .',
- 'U_LAST_VER_KLJ' => 'أنت تستخدم آخر نسخة من كليجا. شكراً لمتابعة نسختك بإستمرار.',
- 'U_USE_PRE_RE' => 'أنت تستخدم نسخة تطويرية لم تصدر حتى الآن , اضغط هنا لإخبارنا بأي أخطاء برمجية وثغرات قد تقابلك.',
- 'STYLE_IS_DEFAULT' => 'استايل افتراضي',
- 'MAKE_AS_DEFAULT' => 'تعيينه افتراضي',
- 'STYLE_NOW_IS_DEFAULT' => 'تم تعيين الاستايل "%s" ستايل افتراضي',
- 'UPDATE_NOW_S' => 'انت تستخدم نسخة قديمة من كليجا، قم بالترقية فوراً، نسختك الحالية هي %1$s والنسخة الجديدة هي %2$s .',
- 'ADD_NEW_EXT' => 'أضف امتداد جديد',
- 'ADD_NEW_EXT_EXP' => 'قم بكتابة الامتداد ليتم اضافته لهذه المجموعة.',
- 'EMPTY_EXT_FIELD' => 'حقل الامتداد فارغ!',
- 'NEW_EXT_ADD' => 'تم إضافة الامتداد الجديد ',
- 'NEW_EXT_EXISTS_B4' => 'الامتداد الجديد %s موجود مسبقاً !',
- 'CONFIG_WRITEABLE' => 'ملف config.php قابل للكتابة حالياً ونوصي وبشدة تغيير التصريح له لـ 640 أو على الأقل 644.',
- 'USERS_NOT_NORMAL_SYS' => 'نظام العضويات الحالي ليس النظام العادي ، أي أن الأعضاء الحاليين لا يمكن تحريرهم من هنا بل من السكربت الذي تم ربط كليجا به، هؤلا الأعضاء يتبعون لنظام العضويات العادي.',
- 'DIMENSIONS_THMB' => 'أبعاد المصغرات',
+ 'R_PLUGINS' => 'إضافات برمجية',
+ 'ADD_NEW_PLUGIN' => 'أضف إضافة برمجية جديدة',
+ 'PLUGIN_DELETED' => 'لقد تم حذف الإضافة البرمجية...',
+ 'PLGUIN_DISABLED_ENABLED' => 'لقد تم تفعيل \ تعطيل الإضافة البرمجية..',
+ 'NO_PLUGINS' => 'لا يوجد أي إضافات برمجية ..',
+ 'NEW_PLUGIN_ADDED' => 'لقد تمت إضافة الإضافة البرمجية .. ',
+ 'PLUGIN_EXISTS_BEFORE' => 'الاضافة هذه موجودة سابقاً بنفس الاصدار أو أعلى ولاتحتاج تحديث !',
+ 'R_CHECK_UPDATE' => 'فحص عن تحديثات',
+ 'ERROR_CHECK_VER' => 'خطأ: لا يمكن جلب معلومات عن آخر نسخة في هذه اللحظة، حاول مجدداً لاحقا!.',
+ 'UPDATE_KLJ_NOW' => 'يجب أن تقوم بتحديث نسختك إلى آخر نسخة الآن، قم بالذهاب لموقع كليجا لمعلومات أكثر .',
+ 'U_LAST_VER_KLJ' => 'أنت تستخدم آخر نسخة من كليجا. شكراً لمتابعة نسختك بإستمرار.',
+ 'U_USE_PRE_RE' => 'أنت تستخدم نسخة تطويرية لم تصدر حتى الآن , اضغط هنا لإخبارنا بأي أخطاء برمجية وثغرات قد تقابلك.',
+ 'STYLE_IS_DEFAULT' => 'استايل افتراضي',
+ 'MAKE_AS_DEFAULT' => 'تعيينه افتراضي',
+ 'STYLE_NOW_IS_DEFAULT' => 'تم تعيين الاستايل "%s" ستايل افتراضي',
+ 'UPDATE_NOW_S' => 'انت تستخدم نسخة قديمة من كليجا، قم بالترقية فوراً، نسختك الحالية هي %1$s والنسخة الجديدة هي %2$s .',
+ 'ADD_NEW_EXT' => 'أضف امتداد جديد',
+ 'ADD_NEW_EXT_EXP' => 'قم بكتابة الامتداد ليتم اضافته لهذه المجموعة.',
+ 'EMPTY_EXT_FIELD' => 'حقل الامتداد فارغ!',
+ 'NEW_EXT_ADD' => 'تم إضافة الامتداد الجديد ',
+ 'NEW_EXT_EXISTS_B4' => 'الامتداد الجديد %s موجود مسبقاً !',
+ 'CONFIG_WRITEABLE' => 'ملف config.php قابل للكتابة حالياً ونوصي وبشدة تغيير التصريح له لـ 640 أو على الأقل 644.',
+ 'USERS_NOT_NORMAL_SYS' => 'نظام العضويات الحالي ليس النظام العادي ، أي أن الأعضاء الحاليين لا يمكن تحريرهم من هنا بل من السكربت الذي تم ربط كليجا به، هؤلا الأعضاء يتبعون لنظام العضويات العادي.',
+ 'DIMENSIONS_THMB' => 'أبعاد المصغرات',
- 'ADMIN_DELETE_FILE_OK' => 'تم حذف كافة ملفات العضو',
- 'ADMIN_DELETE_FILES' => 'حذف كل ملفات العضوية',
+ 'ADMIN_DELETE_FILE_OK' => 'تم حذف كافة ملفات العضو',
+ 'ADMIN_DELETE_FILES' => 'حذف كل ملفات العضوية',
- 'BCONVERTER' => 'آلة حاسبة لتحويل الأحجام',
- 'NO_HTACCESS_DIR_UP' => 'لايوجد ملف .htaccess في مجلد التحميل "%s", هذا يعني انه لو تم رفع اكواد خبيثه فسيتمكن المخترق من تشغيلها وقد يحدث امور لاتحمد عقباها!',
- 'NO_HTACCESS_DIR_UP_THUMB' => 'لايوجد ملف .htaccess في مجلد المصغرات داخل مجلد التحميل "%s", هذا يعني انه لو تم رفع اكواد خبيثه فسيتمكن المخترق المخترق من تشغيلها وقد يحدث امور لاتحمد عقباها!',
- 'COOKIE_DOMAIN' => 'نطاق الكوكيز',
- 'COOKIE_NAME' => 'بادئة الكوكيز',
- 'COOKIE_PATH' => 'مسار الكوكيز',
- 'COOKIE_SECURE' => 'تفعيل الكوكيز الآمنة',
- 'SHOWFILESBYIP' => 'عرض ملفات الـ IP',
- 'DELETEALLRES' => 'حذف كل ملفات البحث هذا',
- 'ADMIN_DELETE_FILES_OK' => 'تم حذف %s ملف بنجاح',
- 'ADMIN_DELETE_FILES_NOF' => 'لاتوجد نتائج للقيام بعملية الحذف',
- 'NOT_EXSIT_USER' => 'عفواً العضو الذي تبحث عنه غير موجود في قاعدة البيانات .. ربما أنك تحاول الوصول لعضوية غير موجودة او محذوفة!',
- 'ADMIN_DELETE_NO_FILE' => 'هذا المستخدم لا يملك ملفات لحذفها!',
- 'CONFIG_KLJ_MENUS_OTHER' => 'خيارات اخرى',
- 'CONFIG_KLJ_MENUS_GENERAL' => 'خيارات عامة',
- 'CONFIG_KLJ_MENUS_ALL' => 'عرض كل الخيارات',
- 'CONFIG_KLJ_MENUS_UPLOAD' => 'اعدادات التحميل',
- 'CONFIG_KLJ_MENUS_INTERFACE'=> 'خيارات الواجهة والتصميم',
- 'CONFIG_KLJ_MENUS_ADVANCED' => 'خيارات متقدمة',
- 'DELF_CAUTION' => 'تحذير : هذه الخاصية قد تكون خطرة عند وضع ارقام صغيرة أو عند إستخدام الروابط المباشرة.',
- 'PLUGIN_N_CMPT_KLJ' => 'هذه الإضافة غيره متوافقة مع إصدار كليجا الذي تستخدمه ! .',
- 'PHPINI_FILESIZE_SMALL' => 'اعلى حجم يستطيع المستخدمين تحميله لديك "%1$s" بينما إعدادات الـ PHP لديك فيما يتعلق بـ upload_max_filesize هي فقط "%2$s" , قم بسؤال مدير خادمك لرفعها ليستطيع المستخدمين رفع ملفات بالحجم الذي وضعته.',
- 'PHPINI_MPOSTSIZE_SMALL' => 'بما أنك سمحت بتحميل "%1$s" ملفات دفعة واحدة , فيجب ان تسأل مدير خادمك لرفع قيمة post_max_size من اعدادات ال PHP بالخادم لما يقارب "%2$s" لتضمن لكليجا عمل أفضل.',
- 'NUMPER_REPORT' => 'البلاغات',
- 'NO_UP_CHANGE_S' => 'لا يوجد أي تتغير في البيانات , وبالتالي لم يتم تحديث البيانات !.',
- 'ADD_HEADER_EXTRA' => 'هيدر إضافي',
- 'ADD_FOOTER_EXTRA' => 'فوتر إضافي',
- 'ADMIN_USING_IE6' => 'أنت تستخدم متصفح "انترنت اكسبلور قديم" هذا رغم انك صاحب موقع وتعرف اكثر ممايعرفه المستخدمون العاديون ! قم بترقية متصفحك او استخدم فيرفوكس الآن.',
+ 'BCONVERTER' => 'آلة حاسبة لتحويل الأحجام',
+ 'NO_HTACCESS_DIR_UP' => 'لايوجد ملف .htaccess في مجلد التحميل "%s", هذا يعني انه لو تم رفع اكواد خبيثه فسيتمكن المخترق من تشغيلها وقد يحدث امور لاتحمد عقباها!',
+ 'NO_HTACCESS_DIR_UP_THUMB' => 'لايوجد ملف .htaccess في مجلد المصغرات داخل مجلد التحميل "%s", هذا يعني انه لو تم رفع اكواد خبيثه فسيتمكن المخترق المخترق من تشغيلها وقد يحدث امور لاتحمد عقباها!',
+ 'COOKIE_DOMAIN' => 'نطاق الكوكيز',
+ 'COOKIE_NAME' => 'بادئة الكوكيز',
+ 'COOKIE_PATH' => 'مسار الكوكيز',
+ 'COOKIE_SECURE' => 'تفعيل الكوكيز الآمنة',
+ 'SHOWFILESBYIP' => 'عرض ملفات الـ IP',
+ 'DELETEALLRES' => 'حذف كل ملفات البحث هذا',
+ 'ADMIN_DELETE_FILES_OK' => 'تم حذف %s ملف بنجاح',
+ 'ADMIN_DELETE_FILES_NOF' => 'لاتوجد نتائج للقيام بعملية الحذف',
+ 'NOT_EXSIT_USER' => 'عفواً العضو الذي تبحث عنه غير موجود في قاعدة البيانات .. ربما أنك تحاول الوصول لعضوية غير موجودة او محذوفة!',
+ 'ADMIN_DELETE_NO_FILE' => 'هذا المستخدم لا يملك ملفات لحذفها!',
+ 'CONFIG_KLJ_MENUS_OTHER' => 'خيارات اخرى',
+ 'CONFIG_KLJ_MENUS_GENERAL' => 'خيارات عامة',
+ 'CONFIG_KLJ_MENUS_ALL' => 'عرض كل الخيارات',
+ 'CONFIG_KLJ_MENUS_UPLOAD' => 'اعدادات التحميل',
+ 'CONFIG_KLJ_MENUS_INTERFACE'=> 'خيارات الواجهة والتصميم',
+ 'CONFIG_KLJ_MENUS_ADVANCED' => 'خيارات متقدمة',
+ 'DELF_CAUTION' => 'تحذير : هذه الخاصية قد تكون خطرة عند وضع ارقام صغيرة أو عند إستخدام الروابط المباشرة.',
+ 'PLUGIN_N_CMPT_KLJ' => 'هذه الإضافة غيره متوافقة مع إصدار كليجا الذي تستخدمه ! .',
+ 'PHPINI_FILESIZE_SMALL' => 'اعلى حجم يستطيع المستخدمين تحميله لديك "%1$s" بينما إعدادات الـ PHP لديك فيما يتعلق بـ upload_max_filesize هي فقط "%2$s" , قم بسؤال مدير خادمك لرفعها ليستطيع المستخدمين رفع ملفات بالحجم الذي وضعته.',
+ 'PHPINI_MPOSTSIZE_SMALL' => 'بما أنك سمحت بتحميل "%1$s" ملفات دفعة واحدة , فيجب ان تسأل مدير خادمك لرفع قيمة post_max_size من اعدادات ال PHP بالخادم لما يقارب "%2$s" لتضمن لكليجا عمل أفضل.',
+ 'NUMPER_REPORT' => 'البلاغات',
+ 'NO_UP_CHANGE_S' => 'لا يوجد أي تتغير في البيانات , وبالتالي لم يتم تحديث البيانات !.',
+ 'ADD_HEADER_EXTRA' => 'هيدر إضافي',
+ 'ADD_FOOTER_EXTRA' => 'فوتر إضافي',
+ 'ADMIN_USING_IE6' => 'أنت تستخدم متصفح "انترنت اكسبلور قديم" هذا رغم انك صاحب موقع وتعرف اكثر ممايعرفه المستخدمون العاديون ! قم بترقية متصفحك او استخدم فيرفوكس الآن.',
- 'T_CLEANING_FILES_NOW' => 'جاري تنفيذ عملية حذف الملفات الخاملة حالياً على دفعات تفادياً للضغط ,وقت العملية يعتمد على عدد الملفات وحجمها ...',
+ 'T_CLEANING_FILES_NOW' => 'جاري تنفيذ عملية حذف الملفات الخاملة حالياً على دفعات تفادياً للضغط ,وقت العملية يعتمد على عدد الملفات وحجمها ...',
- 'HOW_UPDATE_KLEEJA' => 'كيف تقوم بتحديث كليجا ؟',
- 'HOW_UPDATE_KLEEJA_STEP1' => 'توجه الى موقع سكربت كليجا الرسمي Kleeja.com ثم توجه إلى صفحة التحميل وقم بتنزيل آخر تسخة صدرت من الاسكربت في حال توفر سكربت الترقية قم بتحميله',
- 'HOW_UPDATE_KLEEJA_STEP2' => ' بعد ذلك قم بفك الضغط عن الملف الذي قمت بتحميله ثم رفعه الى موقعك لاستبدال الملفات القدييمة بالجديدة عدا ملف config.php.',
- 'HOW_UPDATE_KLEEJA_STEP3' => 'بعد اتمام الخطوة السابقة بنجاح , قم بطلب العنوان التالي للتحديث قاعدة بيانـات الاسكربت:',
+ 'HOW_UPDATE_KLEEJA' => 'كيف تقوم بتحديث كليجا ؟',
+ 'HOW_UPDATE_KLEEJA_STEP1' => 'توجه الى موقع سكربت كليجا الرسمي Kleeja.com ثم توجه إلى صفحة التحميل وقم بتنزيل آخر تسخة صدرت من الاسكربت في حال توفر سكربت الترقية قم بتحميله',
+ 'HOW_UPDATE_KLEEJA_STEP2' => ' بعد ذلك قم بفك الضغط عن الملف الذي قمت بتحميله ثم رفعه الى موقعك لاستبدال الملفات القدييمة بالجديدة عدا ملف config.php.',
+ 'HOW_UPDATE_KLEEJA_STEP3' => 'بعد اتمام الخطوة السابقة بنجاح , قم بطلب العنوان التالي للتحديث قاعدة بيانـات الاسكربت:',
- 'DEPEND_ON_NO_STYLE_ERR' => 'هذا الستايل يعتمد على ستايل "%s" غير الموجود لديك ضمن الستايلات !.',
- 'PLUGINS_REQ_NO_STYLE_ERR' => 'هذا الستايل يتطلب ان تكون الإضافة/الاضافات [ %s ] مثبتة لديك , ثبتها وحاول من جديد !.',
- 'KLJ_VER_NO_STYLE_ERR' => 'هذا الستايل يتطلب على الاقل اصدار %s من كليجا .',
+ 'DEPEND_ON_NO_STYLE_ERR' => 'هذا الستايل يعتمد على ستايل "%s" غير الموجود لديك ضمن الستايلات !.',
+ 'PLUGINS_REQ_NO_STYLE_ERR' => 'هذا الستايل يتطلب ان تكون الإضافة/الاضافات [ %s ] مثبتة لديك , ثبتها وحاول من جديد !.',
+ 'KLJ_VER_NO_STYLE_ERR' => 'هذا الستايل يتطلب على الاقل اصدار %s من كليجا .',
- 'STYLE_DEPEND_ON' => 'يعتمد على ستايل',
- 'MESSAGE_NONE' => 'حتى الآن لا يوجد أي رسائل ..',
- 'KLEEJA_TEAM' => 'فريق تطوير كليجا',
- 'ERR_SEND_MAIL' => 'هناك خطأ بالارسال , حاول مجدداً!',
- 'FIND_IP_FILES' => 'تم العثور على',
- 'ALPHABETICAL_ORDER_FILES' => 'ترتيب الملفات حسب التسلسل الأبجدي',
- 'ORDER_SIZE' => 'ترتيب الملفات حسب أحجامها من الأكبر حتى الأصغر',
- 'ORDER_TOTAL_DOWNLOADS' => 'ترتيب الملفات حسب عدد مرات التحميل',
- 'LIVEXTS' => 'الامتدادات التي لاتمر على صفحة الانتظار',
- 'COMMA_X' => 'افصل بين الامتدادات باستخدام الفاصلة ( , )
',
- 'NO_SEARCH_WORD' => 'لم تقم بكتابة كلمة بحث !',
- 'USERSECTOUPLOAD' => 'عدد الثواني بين كل عملية رفع',
- 'ADM_UNWANTED_FILES' => 'يبدوا انك قمت بالترقية من نسخة سابقة وبسبب اختلاف اسماء بعض الملفات ستلاحظ وجود ازرار متكررة بلوحة التحكم .
لحل المشكلة قم بإزالة كافة الملفات في المسار "includes/adm" واعادة رفعها من جديد. ايضا قم بحذف ملف admin.php من المجلد الرئيسي اذا وجد.',
- 'HTML_URLS_ENABLED_NO_HTCC' => 'لقد قمت بتفعيل روابط الهتمل ولكنك نسيت أن تقوم بإعادة تسمية الملف htaccess.txt في مجلد كليجا الرئيسي ليصبح ".htaccess". اذا لم تفهم شيئاً من هذا الكلام قم بالسؤال في الدعم الفني لكليجا او قم بتعطيل روابط الهتمل .',
+ 'STYLE_DEPEND_ON' => 'يعتمد على ستايل',
+ 'MESSAGE_NONE' => 'حتى الآن لا يوجد أي رسائل ..',
+ 'KLEEJA_TEAM' => 'فريق تطوير كليجا',
+ 'ERR_SEND_MAIL' => 'هناك خطأ بالارسال , حاول مجدداً!',
+ 'FIND_IP_FILES' => 'تم العثور على',
+ 'ALPHABETICAL_ORDER_FILES' => 'ترتيب الملفات حسب التسلسل الأبجدي',
+ 'ORDER_SIZE' => 'ترتيب الملفات حسب أحجامها من الأكبر حتى الأصغر',
+ 'ORDER_TOTAL_DOWNLOADS' => 'ترتيب الملفات حسب عدد مرات التحميل',
+ 'LIVEXTS' => 'الامتدادات التي لاتمر على صفحة الانتظار',
+ 'COMMA_X' => '
افصل بين الامتدادات باستخدام الفاصلة ( , )
',
+ 'NO_SEARCH_WORD' => 'لم تقم بكتابة كلمة بحث !',
+ 'USERSECTOUPLOAD' => 'عدد الثواني بين كل عملية رفع',
+ 'ADM_UNWANTED_FILES' => 'يبدوا انك قمت بالترقية من نسخة سابقة وبسبب اختلاف اسماء بعض الملفات ستلاحظ وجود ازرار متكررة بلوحة التحكم .
لحل المشكلة قم بإزالة كافة الملفات في المسار "includes/adm" واعادة رفعها من جديد. ايضا قم بحذف ملف admin.php من المجلد الرئيسي اذا وجد.',
+ 'HTML_URLS_ENABLED_NO_HTCC' => 'لقد قمت بتفعيل روابط الهتمل ولكنك نسيت أن تقوم بإعادة تسمية الملف htaccess.txt في مجلد كليجا الرئيسي ليصبح ".htaccess". اذا لم تفهم شيئاً من هذا الكلام قم بالسؤال في الدعم الفني لكليجا او قم بتعطيل روابط الهتمل .',
- 'PLUGIN_CONFIRM_ADD' => 'انتبه, الاضافات هي تعديلات برمجية على السكربت و قد تكون ضارة أحياناً , لذا ان كنت غير متأكد من مصدر الإضافة ولم تقم بتحميلها من موقع كليجا فالافضل ان تراجع نفسك الآن . ',
+ 'PLUGIN_CONFIRM_ADD' => 'انتبه, الاضافات هي تعديلات برمجية على السكربت و قد تكون ضارة أحياناً , لذا ان كنت غير متأكد من مصدر الإضافة ولم تقم بتحميلها من موقع كليجا فالافضل ان تراجع نفسك الآن . ',
- 'LOADING' => 'جاري التنفيذ',
+ 'LOADING' => 'جاري التنفيذ',
- 'WELCOME' => 'مرحباً',
- 'ENABLE_CAPTCHA' => 'تفعيل كود الامان بكليجا',
- 'NO_THUMB_FOLDER' => 'يبدو ان المصغرات مُفعلة لديك ولكن في نفس الوقت مجلد %s غير متوفر مما يمنع عملية انشاء المصغرات, قم بإنشاء المجلد.',
- 'DELETE_EARLIER_30DAYS' => 'حذف ما مضى عليه 30 يوماً',
- 'DELETE_ALL' => 'حذف الكل',
- 'DELETE_PROCESS_QUEUED' => 'تم اضافة عملية الحذف لقائمة الانتظار, سيتم تنفيذها تدريجياً لكي لايتم زيادة الحمل على الخادم.',
- 'DELETE_PROCESS_IN_WORK' => 'جاري تنفيذ عملية الحذف التدريجية حالياً ...',
- 'SHOW_FROM_24H' => 'عرض آخر 24 ساعة',
- 'THUMB_DIS_LONGTIME' => 'المصغرات معطلة, هذا سيجعل كليجا تقوم بتصغير الصور الكبيرة لك هنا, وبالتالي ستاخذ وقتاً طويلاً لعرضها, فعل المصغرات الآن.',
+ 'WELCOME' => 'مرحباً',
+ 'ENABLE_CAPTCHA' => 'تفعيل كود الامان بكليجا',
+ 'NO_THUMB_FOLDER' => 'يبدو ان المصغرات مُفعلة لديك ولكن في نفس الوقت مجلد %s غير متوفر مما يمنع عملية انشاء المصغرات, قم بإنشاء المجلد.',
+ 'DELETE_EARLIER_30DAYS' => 'حذف ما مضى عليه 30 يوماً',
+ 'DELETE_ALL' => 'حذف الكل',
+ 'DELETE_PROCESS_QUEUED' => 'تم اضافة عملية الحذف لقائمة الانتظار, سيتم تنفيذها تدريجياً لكي لايتم زيادة الحمل على الخادم.',
+ 'DELETE_PROCESS_IN_WORK' => 'جاري تنفيذ عملية الحذف التدريجية حالياً ...',
+ 'SHOW_FROM_24H' => 'عرض آخر 24 ساعة',
+ 'THUMB_DIS_LONGTIME' => 'المصغرات معطلة, هذا سيجعل كليجا تقوم بتصغير الصور الكبيرة لك هنا, وبالتالي ستاخذ وقتاً طويلاً لعرضها, فعل المصغرات الآن.',
- 'R_GROUPS' => 'ادارة المجموعات',
- 'ESSENTIAL_GROUPS' => 'مجموعات اساسية',
- 'CUSTOM_GROUPS' => 'مجموعات معرفة بواسطة المستخدم',
- 'EDIT_DATA' => ' تعديل البيانات',
- 'EDIT_ACL' => 'تعديل الصلاحيات',
- 'HE_CAN' => 'يستطيع',
- 'HE_CAN_NOT' => 'لا يستطيع',
- #ACLS roles
- 'ACLS_ENTER_ACP' => 'دخول لوحة التحكم',
- 'ACLS_ACCESS_FILEUSER' => 'الوصول لمجلد ملفاته',
+ 'R_GROUPS' => 'ادارة المجموعات',
+ 'ESSENTIAL_GROUPS' => 'مجموعات اساسية',
+ 'CUSTOM_GROUPS' => 'مجموعات معرفة بواسطة المستخدم',
+ 'EDIT_DATA' => ' تعديل البيانات',
+ 'EDIT_ACL' => 'تعديل الصلاحيات',
+ 'HE_CAN' => 'يستطيع',
+ 'HE_CAN_NOT' => 'لا يستطيع',
+ //ACLS roles
+ 'ACLS_ENTER_ACP' => 'دخول لوحة التحكم',
+ 'ACLS_ACCESS_FILEUSER' => 'الوصول لمجلد ملفاته',
'ACLS_ACCESS_FILEUSERS' => 'تصفح مجلدات الملفات للاعضاء',
- 'ACLS_ACCESS_CALL' => 'الوصول لصفحة اتصل بنا',
- 'ACLS_ACCESS_REPORT' => 'إظهار صفحة ابلاغ عن محتوى',
- 'ACLS_ACCESS_STATS' => 'الوصول لصفحة الإحصائيات',
+ 'ACLS_ACCESS_CALL' => 'الوصول لصفحة اتصل بنا',
+ 'ACLS_ACCESS_REPORT' => 'إظهار صفحة ابلاغ عن محتوى',
+ 'ACLS_ACCESS_STATS' => 'الوصول لصفحة الإحصائيات',
- 'GROUP_IS_DEFAULT' => 'هذه المجموعة افتراضية عند التسجيل',
- 'ADD_NEW_GROUP' => 'اضف مجموعة جديدة',
- 'DELETE_GROUP' => 'حذف مجموعة',
- 'GROUP_NAME' => 'اسم المجموعة',
- 'COPY_FROM' => 'نسخ من',
- 'USERNAME_NOT_YOU' => 'ليس انت؟ %1$sسجل خروج%2$s',
- 'DEFAULT_GROUP' => 'المجموعة الافتراضية',
- 'G_USERS_MOVE_TO' => 'نقل اعضاء المجموعة لـ',
- 'TAKEN_NAMES' => 'هذا الاسم من الاسماء المحجوزة، قم باختيار غيره!.',
- 'GROUP_DELETED' => 'تم حذف المجموعة "%1$s" وتم نقل العضويات الخاصة بها للمجموعة "%2$s".',
- 'NO_MOVE_SAME_GRP' => 'لايمكن نقل الاعضاء لنفس المجموعة !.',
- 'DEFAULT_GRP_NO_DEL' => 'لايمكن حذف المجموعة الافتراضية, قم بتغيير المجموعة الافتراضية لمجموعة اخرى ثم قم بحذف هذه المجموعة من جديد!.',
- 'GROUP_ADDED' => 'تم اضافة المجموعة "%s" بنجاح... ',
- 'SEARCH4FILES_BYIP' => 'بحث عن الملفات بواسطة الـ IP',
- 'SEARCH4FILES_BYUSER' => 'بحث عن الملفات لهذا المستخدم',
- 'USER_DELETED' => 'تم حذف المستخدم بنجاح !.',
- 'USER_ADDED' => 'تم اضافة المستخدم بنجاح..',
- 'DIRECT_FILE_NOTE' => 'هذا ملف مباشر, الملفات المباشرة لايتم عمل احصائيات لها.',
- 'IMAGEFOLDER' => 'مجلد الصور والملفات المباشرة',
- 'IMAGEFOLDEREXTS' => 'صيغ الصور والملفات المباشرة - مثل: mp3, mp4, swf (لن تمر على صفحة إنتظار وسيتم تخزينها بمجلد مختلف أن أردت)',
- 'IMAGEFOLDERE' => 'تغيير اسم الملف او الصورة المباشرة',
- 'LAST_VIEW' => 'آخر استعراض',
- 'HURRY_HURRY' => 'إعدادات سريعة',
- 'RESYNC' => 'إعادة مزامنة',
- 'DEL_CACHE' => 'حذف الكاش - الملفات المؤقتة',
- 'SYNCING' => 'جاري عمل المزامنة: (%s), إنتظر ...',
- 'SYNCING_DONE' => 'تم الإنتهاء من عمل المزامنة (%s).',
- 'WHY_SYNCING' => 'كليجا تستخدم التزايد التلقائي بحيث لايتم حساب الاعداد كل مرة لزيادة اداء كليجا, استخدم هذه الميزة بعد الترقية او عندما يتم طلب ذلك منك.',
- 'REPAIR_DB_TABLES' => 'إصلاح جداول قاعدة البيانات',
- 'NO_RESULT_USE_SYNC' => 'لايوجد نتائج, اذا كان المركز جديد فهذا امر عادي.
اما اذا كنت قد قمت بالترقية مؤخرا فقم بعمل مزامنة من صفحة الصيانة لعدد الملفات او الصور.',
+ 'GROUP_IS_DEFAULT' => 'هذه المجموعة افتراضية عند التسجيل',
+ 'ADD_NEW_GROUP' => 'اضف مجموعة جديدة',
+ 'DELETE_GROUP' => 'حذف مجموعة',
+ 'GROUP_NAME' => 'اسم المجموعة',
+ 'COPY_FROM' => 'نسخ من',
+ 'USERNAME_NOT_YOU' => 'ليس انت؟ %1$sسجل خروج%2$s',
+ 'DEFAULT_GROUP' => 'المجموعة الافتراضية',
+ 'G_USERS_MOVE_TO' => 'نقل اعضاء المجموعة لـ',
+ 'TAKEN_NAMES' => 'هذا الاسم من الاسماء المحجوزة، قم باختيار غيره!.',
+ 'GROUP_DELETED' => 'تم حذف المجموعة "%1$s" وتم نقل العضويات الخاصة بها للمجموعة "%2$s".',
+ 'NO_MOVE_SAME_GRP' => 'لايمكن نقل الاعضاء لنفس المجموعة !.',
+ 'DEFAULT_GRP_NO_DEL' => 'لايمكن حذف المجموعة الافتراضية, قم بتغيير المجموعة الافتراضية لمجموعة اخرى ثم قم بحذف هذه المجموعة من جديد!.',
+ 'GROUP_ADDED' => 'تم اضافة المجموعة "%s" بنجاح... ',
+ 'SEARCH4FILES_BYIP' => 'بحث عن الملفات بواسطة الـ IP',
+ 'SEARCH4FILES_BYUSER' => 'بحث عن الملفات لهذا المستخدم',
+ 'USER_DELETED' => 'تم حذف المستخدم بنجاح !.',
+ 'USER_ADDED' => 'تم اضافة المستخدم بنجاح..',
+ 'DIRECT_FILE_NOTE' => 'هذا ملف مباشر, الملفات المباشرة لايتم عمل احصائيات لها.',
+ 'IMAGEFOLDER' => 'مجلد الصور والملفات المباشرة',
+ 'IMAGEFOLDEREXTS' => 'صيغ الصور والملفات المباشرة - مثل: mp3, mp4, swf (لن تمر على صفحة إنتظار وسيتم تخزينها بمجلد مختلف أن أردت)',
+ 'IMAGEFOLDERE' => 'تغيير اسم الملف او الصورة المباشرة',
+ 'LAST_VIEW' => 'آخر استعراض',
+ 'HURRY_HURRY' => 'إعدادات سريعة',
+ 'RESYNC' => 'إعادة مزامنة',
+ 'DEL_CACHE' => 'حذف الكاش - الملفات المؤقتة',
+ 'SYNCING' => 'جاري عمل المزامنة: (%s), إنتظر ...',
+ 'SYNCING_DONE' => 'تم الإنتهاء من عمل المزامنة (%s).',
+ 'WHY_SYNCING' => 'كليجا تستخدم التزايد التلقائي بحيث لايتم حساب الاعداد كل مرة لزيادة اداء كليجا, استخدم هذه الميزة بعد الترقية او عندما يتم طلب ذلك منك.',
+ 'REPAIR_DB_TABLES' => 'إصلاح جداول قاعدة البيانات',
+ 'NO_RESULT_USE_SYNC' => 'لايوجد نتائج, اذا كان المركز جديد فهذا امر عادي.
اما اذا كنت قد قمت بالترقية مؤخرا فقم بعمل مزامنة من صفحة الصيانة لعدد الملفات او الصور.',
'ADVICE_CRON_LINK' => 'يفضل وضع رابط طابور المهام المتكررة كعملية Cron كل ساعة أو ساعتين',
'UPLOAD_LOCAL_PC' => 'رفع من جهازك',
'NO_ZIP_ARCHIVE' => 'يبدو أن ZipArchive ليس متوفراً علي خادمك، قم بتثبيته فهو من المتطلبات.',
'EXTRACT_ZIP_FAILED' => 'صادفتنا مشكلة أثناء فك الأرشيف! تأكد من أنه ملف zip صالح، وأن مجلد "%s" قابل للكتابة.',
- 'NO_PROBLEM_AFTER_ZIP' => 'لقد تم فك الملف بنجاح وهو جاهز للتفعيل.',
- 'SESSION_ENDED' => 'انتهت الجلسة، هل تريد تسجل الدخول من جديد؟',
- //3.0.3
- 'CUSTOMIZATION' => 'تخصيص',
- 'SHOW' => 'عرض',
- 'HIDE' => 'إخفاء',
- 'VIEW' => 'إستعراض',
- 'INSTALL' => 'تثبيت',
- 'CLOSE' => 'إغلاق',
- 'STATS_BOXES' => 'صناديق الإحصائيات',
- 'PLUGIN_UPDATED' => 'الإضافة "%s" تم تحديثها بنجاح ..',
- 'PLUGIN_DOWNLOADED' => 'الإضافة "%s" تم تحميلها بنجاح ..',
- 'PLUGIN_FILE_NOT_FOUND' => 'ملف الإضافة مفقود لايمكن إيجاده!',
- 'PLUGIN_REMOTE_FILE_MISSING' => 'الإضافة "%s" ليست على موجوة على متجر كليجا الخارجي!',
- 'PLUGINS_SERVER_ERROR' => 'واجهنا خطأ أثناء الإتصال بخادم متجر كليجا الخارجي...',
- 'INSTALLED_PLUGINS' => 'الإضافات المثبتة',
- 'LOCAL_PLUGINS' => 'الإضافات المحلية',
- 'KLEEJA_STORE' => 'متجر كليجا',
- 'KLJ_VER_NO_PLUGIN' => 'هذه الإضافة يمكنها العمل على إصدار كليجا %1$s حتى إصدار %2$s.',
- 'VERSION' => 'الإصدار',
- 'DEVELOPER' => 'المطور',
- 'ALL_PLUGINS_UPDATED' => 'لا يوجد إضافات تحتاج تحديث حالياً ... ',
-);
+ 'NO_PROBLEM_AFTER_ZIP' => 'لقد تم فك الملف بنجاح وهو جاهز للتفعيل.',
+ 'SESSION_ENDED' => 'انتهت الجلسة، هل تريد تسجل الدخول من جديد؟',
+ //3.0.3
+ 'CUSTOMIZATION' => 'تخصيص',
+ 'SHOW' => 'عرض',
+ 'HIDE' => 'إخفاء',
+ 'VIEW' => 'إستعراض',
+ 'INSTALL' => 'تثبيت',
+ 'CLOSE' => 'إغلاق',
+ 'STATS_BOXES' => 'صناديق الإحصائيات',
+ 'PLUGIN_UPDATED' => 'الإضافة "%s" تم تحديثها بنجاح ..',
+ 'PLUGIN_DOWNLOADED' => 'الإضافة "%s" تم تحميلها بنجاح ..',
+ 'PLUGIN_FILE_NOT_FOUND' => 'ملف الإضافة مفقود لايمكن إيجاده!',
+ 'PLUGIN_REMOTE_FILE_MISSING' => 'الإضافة "%s" ليست على موجوة على متجر كليجا الخارجي!',
+ 'PLUGINS_SERVER_ERROR' => 'واجهنا خطأ أثناء الإتصال بخادم متجر كليجا الخارجي...',
+ 'INSTALLED_PLUGINS' => 'الإضافات المثبتة',
+ 'LOCAL_PLUGINS' => 'الإضافات المحلية',
+ 'KLEEJA_STORE' => 'متجر كليجا',
+ 'KLJ_VER_NO_PLUGIN' => 'هذه الإضافة يمكنها العمل على إصدار كليجا %1$s حتى إصدار %2$s.',
+ 'VERSION' => 'الإصدار',
+ 'DEVELOPER' => 'المطور',
+ 'ALL_PLUGINS_UPDATED' => 'لا يوجد إضافات تحتاج تحديث حالياً ... ',
+];
diff --git a/lang/ar/common.php b/lang/ar/common.php
index 5e892b1..a384579 100755
--- a/lang/ar/common.php
+++ b/lang/ar/common.php
@@ -4,251 +4,251 @@
// Arabic
//
-return array(
+return [
//language information
- 'DIR' => 'rtl',
- 'LANG_SMALL_NAME' => 'ar-sa',
+ 'DIR' => 'rtl',
+ 'LANG_SMALL_NAME' => 'ar-sa',
- 'HOME' => 'البداية',
- 'INDEX' => 'الرئيسية',
- 'SITE_CLOSED' => 'الموقع مغلق !',
- 'STOP_FOR_SIZE' => 'متوقف حالياً !',
- 'SIZES_EXCCEDED' => 'الحجم الكلي للمركز استنفذ .. سوف نعود قريباً',
- 'SAFE_CODE' => 'تفعيل الكود الأمني في التحميل',
- 'LAST_VISIT' => 'آخر زيارة',
- 'FLS_LST_VST_SEARCH' => 'عرض الملفات منذ',
- 'IMG_LST_VST_SEARCH' => 'عرض الصور منذ',
- 'NEXT' => 'التالي »',
- 'PREV' => '« السابق',
- 'INFORMATION' => 'تعليمات',
- 'WELCOME' => 'مرحباً بك',
- 'KLEEJA_VERSION' => 'إصدار كليجا',
- 'NUMBER_ONLINE' => 'الاعضاء المتواجدون حالياً',
- #'NUMBER_UONLINE' => 'أعضاء',
- #'NUMBER_VONLINE' => 'زوار',
- 'USERS_SYSTEM' => 'نظام المستخدمين',
- 'ERROR_NAVIGATATION' => 'خطأ بالتوجه..',
- 'USER_LOGIN' => 'تسجيل الدخول',
- 'LOGIN' => 'دخول',
- 'USERNAME' => 'اسم المستخدم',
- 'PASSWORD' => 'كلمة المرور',
- #'EMPTY_USERNAME' => 'حقل اسم المستخدم فارغ',
- #'EMPTY_PASSWORD' => 'حقل كلمة المرور فارغ',
- 'LOSS_PASSWORD' => 'نسيت كلمة المرور؟',
- 'LOGINED_BEFORE' => 'أنت داخل بالفعل',
- 'LOGOUT' => 'خروج',
- 'EMPTY_FIELDS' => 'خطأ.. حقول ناقصة!',
- 'LOGIN_SUCCESFUL' => 'لقد تم الدخول بنجاح',
- 'LOGIN_ERROR' => 'خطأ.. لا يمكن الدخول!',
- 'REGISTER_CLOSED' => 'نأسف.. التسجيل مقفل حالياً',
- 'PLACE_NO_YOU' => 'منطقة محظورة',
- 'NOT_EXSIT_USER' => 'لا يوجد لدينا عضو بهذه البيانات , او انه تم حذفه!',
- 'REGISTERED_BEFORE' => 'لقد قمت بالتسجيل سابقاً',
- 'REGISTER' => 'تسجيل عضوية',
- 'EMAIL' => 'البريد الإلكتروني',
- 'VERTY_CODE' => 'كود الأمان',
- 'NOTE_CODE' => 'ادخل الأحرف الموجود في الصورة بالشكل الصحيح مرتبة بشكل دقيق.',
- 'WRONG_EMAIL' => 'بريد خاطيء',
- 'WRONG_NAME' => 'الاسم يجب أن يكون بين 4 احرف و 25 حرف وبدون مسافات أو أحرف خاصة (فقط _- مسموحة)!.',
- #'WRONG_LINK' => 'رابط خاطيء..',
- 'EXIST_NAME' => 'الاسم موجود مسبقاً',
- 'EXIST_EMAIL' => 'البريد موجود مسبقاً',
- 'WRONG_VERTY_CODE' => 'كود الأمان خاطيء',
- #'CANT_UPDATE_SQL' => 'لا يمكن التحديث لقاعدة البيانات',
- #'CANT_INSERT_SQL' => 'لا يمكن إدخال المعلومات لقاعدة البيانات',
- 'REGISTER_SUCCESFUL' => 'شكراً لتسجيلك معناً',
- 'LOGOUT_SUCCESFUL' => 'تم الخروج بنجاح',
- 'LOGOUT_ERROR' => 'هناك مشكلة بالخروج',
- #'FILECP' => 'إدارة الملفات',
- 'DEL_SELECTED' => 'حذف المحدد',
- 'DEL_ALL' => 'حذف كل ملفاتي',
+ 'HOME' => 'البداية',
+ 'INDEX' => 'الرئيسية',
+ 'SITE_CLOSED' => 'الموقع مغلق !',
+ 'STOP_FOR_SIZE' => 'متوقف حالياً !',
+ 'SIZES_EXCCEDED' => 'الحجم الكلي للمركز استنفذ .. سوف نعود قريباً',
+ 'SAFE_CODE' => 'تفعيل الكود الأمني في التحميل',
+ 'LAST_VISIT' => 'آخر زيارة',
+ 'FLS_LST_VST_SEARCH' => 'عرض الملفات منذ',
+ 'IMG_LST_VST_SEARCH' => 'عرض الصور منذ',
+ 'NEXT' => 'التالي »',
+ 'PREV' => '« السابق',
+ 'INFORMATION' => 'تعليمات',
+ 'WELCOME' => 'مرحباً بك',
+ 'KLEEJA_VERSION' => 'إصدار كليجا',
+ 'NUMBER_ONLINE' => 'الاعضاء المتواجدون حالياً',
+ //'NUMBER_UONLINE' => 'أعضاء',
+ //'NUMBER_VONLINE' => 'زوار',
+ 'USERS_SYSTEM' => 'نظام المستخدمين',
+ 'ERROR_NAVIGATATION' => 'خطأ بالتوجه..',
+ 'USER_LOGIN' => 'تسجيل الدخول',
+ 'LOGIN' => 'دخول',
+ 'USERNAME' => 'اسم المستخدم',
+ 'PASSWORD' => 'كلمة المرور',
+ //'EMPTY_USERNAME' => 'حقل اسم المستخدم فارغ',
+ //'EMPTY_PASSWORD' => 'حقل كلمة المرور فارغ',
+ 'LOSS_PASSWORD' => 'نسيت كلمة المرور؟',
+ 'LOGINED_BEFORE' => 'أنت داخل بالفعل',
+ 'LOGOUT' => 'خروج',
+ 'EMPTY_FIELDS' => 'خطأ.. حقول ناقصة!',
+ 'LOGIN_SUCCESFUL' => 'لقد تم الدخول بنجاح',
+ 'LOGIN_ERROR' => 'خطأ.. لا يمكن الدخول!',
+ 'REGISTER_CLOSED' => 'نأسف.. التسجيل مقفل حالياً',
+ 'PLACE_NO_YOU' => 'منطقة محظورة',
+ 'NOT_EXSIT_USER' => 'لا يوجد لدينا عضو بهذه البيانات , او انه تم حذفه!',
+ 'REGISTERED_BEFORE' => 'لقد قمت بالتسجيل سابقاً',
+ 'REGISTER' => 'تسجيل عضوية',
+ 'EMAIL' => 'البريد الإلكتروني',
+ 'VERTY_CODE' => 'كود الأمان',
+ 'NOTE_CODE' => 'ادخل الأحرف الموجود في الصورة بالشكل الصحيح مرتبة بشكل دقيق.',
+ 'WRONG_EMAIL' => 'بريد خاطيء',
+ 'WRONG_NAME' => 'الاسم يجب أن يكون بين 4 احرف و 25 حرف وبدون مسافات أو أحرف خاصة (فقط _- مسموحة)!.',
+ //'WRONG_LINK' => 'رابط خاطيء..',
+ 'EXIST_NAME' => 'الاسم موجود مسبقاً',
+ 'EXIST_EMAIL' => 'البريد موجود مسبقاً',
+ 'WRONG_VERTY_CODE' => 'كود الأمان خاطيء',
+ //'CANT_UPDATE_SQL' => 'لا يمكن التحديث لقاعدة البيانات',
+ //'CANT_INSERT_SQL' => 'لا يمكن إدخال المعلومات لقاعدة البيانات',
+ 'REGISTER_SUCCESFUL' => 'شكراً لتسجيلك معناً',
+ 'LOGOUT_SUCCESFUL' => 'تم الخروج بنجاح',
+ 'LOGOUT_ERROR' => 'هناك مشكلة بالخروج',
+ //'FILECP' => 'إدارة الملفات',
+ 'DEL_SELECTED' => 'حذف المحدد',
+ 'DEL_ALL' => 'حذف كل ملفاتي',
'ALL_DELETED' => 'تم حذف كل ملفاتك',
'NO_FILES_DELETE' => 'لا تملك ملفات لحذفها',
- #'EDIT_U_FILES' => 'إدارة ملفاتك',
- 'FILES_UPDATED' => 'تم تحديث الملفات بنجاح',
- 'PUBLIC_USER_FILES' => 'مجلد ملفات العضو',
- 'FILEUSER' => 'مجلد ملفات',
- #'GO_FILECP' => 'اضغط هنا لإدارة ملفاتك هذه',
- 'YOUR_FILEUSER' => 'مجلدك الشخصي',
- 'COPY_AND_GET_DUD' => 'انسخ الرابط وشاركهُ مع أصدقائك ليطلعوا على مجلدك ',
- 'NO_FILE_USER' => 'لا يوجد أي ملفات في حساب العضوية حتى الآن!',
- 'CLOSED_FEATURE' => 'خاصية مغلقة',
- 'USERFILE_CLOSED' => 'خاصية مجلدات المستخدمين مغلقة!',
- 'PFILE_4_FORUM' => 'قم بالذهاب لمنطقة الأعضاء لتغيير بياناتك',
- 'USER_PLACE' => 'منطقة أعضاء',
- 'PROFILE' => 'تعديل البيانات',
- 'EDIT_U_DATA' => 'تحديث بياناتك',
- 'PASS_ON_CHANGE' => 'تغيير كلمة المرور',
- 'OLD' => 'القديمة',
- 'NEW' => 'الجديدة',
- 'NEW_AGAIN' => 'تكرار الجديدة',
- 'UPDATE' => 'تحديث',
- 'PASS_O_PASS2' => 'كلمة المرور القديمة مهمة واكتب كلمتا المرور الجديدتان بدقة',
- 'DATA_CHANGED_O_LO' => 'تم تحديث بياناتك وسوف تستخدم بدخولك القادم',
- 'CURRENT_PASS_WRONG' => 'كلمة المرور الحالية خاطئة, أعد كتابتها لتستطيع التعديل!',
- 'DATA_CHANGED_NO' => 'لم تحدث بياناتك.. لن تتغير المعلومات',
- 'LOST_PASS_FORUM' => 'اذهب للمنتدى واسترجع كلمة المرور',
- 'GET_LOSTPASS' => 'استعادة كلمة المرور',
- 'E_GET_LOSTPASS' => 'لاستعادة كلمة المرور يجب أن تكتب البريد الالكتروني المسجل لدينا',
- 'WRONG_DB_EMAIL' => 'لا يوجد بريد كهذا في قاعدة البيانات لدينا',
- 'GET_LOSTPASS_MSG' => "لقد قمت بطلب إستعادة كلمة مرورك , لكن لتجنب السبام قم بالضغط على الرابط التالي لتأكيدها : \r\n %1\$s \r\n كلمة المرور الجديده : %2\$s",
- 'CANT_SEND_NEWPASS' => 'خطأ.. لم يتم إرسال كلمة المرور الجديدة!',
- 'OK_SEND_NEWPASS' => 'تم إرسال كلمة المرور الجديدة..',
- 'OK_APPLY_NEWPASS' => 'تم ضبط كلمة المرور الجديده , يمكنك الآن الدخول بها .',
- 'GUIDE' => 'الملفات المسموحة',
- 'GUIDE_EXP' => 'الملفات المسموحة وامتداداتها',
- 'EXT' => 'الامتداد',
- 'SIZE' => 'الحجم',
- 'REPORT' => 'إبلاغ عن محتوى',
- 'YOURNAME' => 'اسمك',
- 'URL' => 'الرابط',
- 'REASON' => 'السبب',
- 'NO_ID' => 'لم تحدد ملف..!',
- 'NO_ME300RES' => 'رجاءً.. حقل السبب لا يمكن ملأه بأكثر من 300 حرف!',
- 'THNX_REPORTED' => 'تم التبليغ.. شكراً لاهتمامك',
- 'RULES' => 'شروط الخدمة',
- 'NO_RULES_NOW' => 'لا يوجد قوانين حالياً',
- 'E_RULES' => 'هذه هي شروط الخدمة',
- 'CALL' => 'اتصل بنا',
- 'SEND' => 'أرسل',
- 'TEXT' => 'نص الرسالة',
- 'NO_ME300TEXT' => 'رجاءً.. حقل النص لا يمكن ملأه بأكثر من 300 حرف!',
- 'THNX_CALLED' => 'تم الإرسال. . سوف يتم الرد قريباً',
- 'NO_DEL_F' => 'نأسف.. خاصية الحذف المباشر معطلة من المدير',
- 'E_DEL_F' => 'الحذف المباشر',
- 'WRONG_URL' => 'خطأ.. في الرابط..',
+ //'EDIT_U_FILES' => 'إدارة ملفاتك',
+ 'FILES_UPDATED' => 'تم تحديث الملفات بنجاح',
+ 'PUBLIC_USER_FILES' => 'مجلد ملفات العضو',
+ 'FILEUSER' => 'مجلد ملفات',
+ //'GO_FILECP' => 'اضغط هنا لإدارة ملفاتك هذه',
+ 'YOUR_FILEUSER' => 'مجلدك الشخصي',
+ 'COPY_AND_GET_DUD' => 'انسخ الرابط وشاركهُ مع أصدقائك ليطلعوا على مجلدك ',
+ 'NO_FILE_USER' => 'لا يوجد أي ملفات في حساب العضوية حتى الآن!',
+ 'CLOSED_FEATURE' => 'خاصية مغلقة',
+ 'USERFILE_CLOSED' => 'خاصية مجلدات المستخدمين مغلقة!',
+ 'PFILE_4_FORUM' => 'قم بالذهاب لمنطقة الأعضاء لتغيير بياناتك',
+ 'USER_PLACE' => 'منطقة أعضاء',
+ 'PROFILE' => 'تعديل البيانات',
+ 'EDIT_U_DATA' => 'تحديث بياناتك',
+ 'PASS_ON_CHANGE' => 'تغيير كلمة المرور',
+ 'OLD' => 'القديمة',
+ 'NEW' => 'الجديدة',
+ 'NEW_AGAIN' => 'تكرار الجديدة',
+ 'UPDATE' => 'تحديث',
+ 'PASS_O_PASS2' => 'كلمة المرور القديمة مهمة واكتب كلمتا المرور الجديدتان بدقة',
+ 'DATA_CHANGED_O_LO' => 'تم تحديث بياناتك وسوف تستخدم بدخولك القادم',
+ 'CURRENT_PASS_WRONG' => 'كلمة المرور الحالية خاطئة, أعد كتابتها لتستطيع التعديل!',
+ 'DATA_CHANGED_NO' => 'لم تحدث بياناتك.. لن تتغير المعلومات',
+ 'LOST_PASS_FORUM' => 'اذهب للمنتدى واسترجع كلمة المرور',
+ 'GET_LOSTPASS' => 'استعادة كلمة المرور',
+ 'E_GET_LOSTPASS' => 'لاستعادة كلمة المرور يجب أن تكتب البريد الالكتروني المسجل لدينا',
+ 'WRONG_DB_EMAIL' => 'لا يوجد بريد كهذا في قاعدة البيانات لدينا',
+ 'GET_LOSTPASS_MSG' => "لقد قمت بطلب إستعادة كلمة مرورك , لكن لتجنب السبام قم بالضغط على الرابط التالي لتأكيدها : \r\n %1\$s \r\n كلمة المرور الجديده : %2\$s",
+ 'CANT_SEND_NEWPASS' => 'خطأ.. لم يتم إرسال كلمة المرور الجديدة!',
+ 'OK_SEND_NEWPASS' => 'تم إرسال كلمة المرور الجديدة..',
+ 'OK_APPLY_NEWPASS' => 'تم ضبط كلمة المرور الجديده , يمكنك الآن الدخول بها .',
+ 'GUIDE' => 'الملفات المسموحة',
+ 'GUIDE_EXP' => 'الملفات المسموحة وامتداداتها',
+ 'EXT' => 'الامتداد',
+ 'SIZE' => 'الحجم',
+ 'REPORT' => 'إبلاغ عن محتوى',
+ 'YOURNAME' => 'اسمك',
+ 'URL' => 'الرابط',
+ 'REASON' => 'السبب',
+ 'NO_ID' => 'لم تحدد ملف..!',
+ 'NO_ME300RES' => 'رجاءً.. حقل السبب لا يمكن ملأه بأكثر من 300 حرف!',
+ 'THNX_REPORTED' => 'تم التبليغ.. شكراً لاهتمامك',
+ 'RULES' => 'شروط الخدمة',
+ 'NO_RULES_NOW' => 'لا يوجد قوانين حالياً',
+ 'E_RULES' => 'هذه هي شروط الخدمة',
+ 'CALL' => 'اتصل بنا',
+ 'SEND' => 'أرسل',
+ 'TEXT' => 'نص الرسالة',
+ 'NO_ME300TEXT' => 'رجاءً.. حقل النص لا يمكن ملأه بأكثر من 300 حرف!',
+ 'THNX_CALLED' => 'تم الإرسال. . سوف يتم الرد قريباً',
+ 'NO_DEL_F' => 'نأسف.. خاصية الحذف المباشر معطلة من المدير',
+ 'E_DEL_F' => 'الحذف المباشر',
+ 'WRONG_URL' => 'خطأ.. في الرابط..',
- 'DELETE_SUCCESFUL' => 'تم الحذف بنجاح',
- 'STATS' => 'إحصائيات المركز',
- 'STATS_CLOSED' => 'صفحة الإحصائيات معطلة من المدير!',
- 'FILES_ST' => 'تم تحميل ',
- 'FILE' => 'ملف',
- 'IMAGE' => 'صورة',
- 'USERS_ST' => 'عدد الأعضاء',
- 'USER' => 'عضو',
- 'SIZES_ST' => 'حجم جميع الملفات',
- #'LSTFLE_ST' => 'آخر ملف تم رفعه',
- 'LSTDELST' => 'آخر فحص للملفات الخاملة ',
- 'LAST_1_H' => 'هذه الإحصائيات لقبل ساعة من الآن',
- 'DOWNLAOD' => 'تحميل',
- 'DOWNLOAD' => 'تحميل',
- 'FILE_FOUNDED' => 'تم إيجاد الملف',
- 'WAIT' => 'انتظر رجاءً ..',
- 'CLICK_DOWN' => 'اضغط هنا لتنزيل الملف',
- 'JS_MUST_ON' => 'لا بد من تفعيل الجافا سكربت في متصفحك !',
- 'FILE_INFO' => 'معلومات عن الملف',
- 'FILENAME' => 'اسم الملف',
- 'FILESIZE' => 'حجم الملف',
- 'FILETYPE' => 'نوع الملف',
- 'FILEDATE' => 'تاريخ الرفع',
- 'LAST_DOWN' => 'آخر تحميل',
- 'FILEUPS' => 'عدد التحميلات',
- 'FILEREPORT' => 'ملف مخالف : إرسال إبلاغ عن المحتوى',
- 'FILE_NO_FOUNDED' => 'لم نتمكن من إيجاد الملف!',
- 'IMG_NO_FOUNDED' => 'لم نتمكن من إيجاد الصورة!',
- 'NOT_IMG' => 'ليست صورة.. هذا ملف!',
- 'MORE_F_FILES' => 'هذا آخر حد يمكنك تحميله',
- 'DOWNLOAD_F' => 'رفع الملفات',
- 'DOWNLOAD_T' => 'سحب الملفات من رابط',
- 'PAST_URL_HERE' => 'ألصق الرابط هنا',
- 'SAME_FILE_EXIST' => 'الملف "%s" موجود مسبقاً , قم بإعادة تسمية الملف او تحميل ملف آخر.',
- 'NO_FILE_SELECTED' => 'لم تقم بإختيار ملف!',
- 'WRONG_F_NAME' => 'اسم الملف "%s" يحتوي على أحرف غير مسموحة .. الرجاء تغيير اسم الملف والمحاولة من جديد ',
- 'FORBID_EXT' => ' الامتداد "%s" غير مسموح ',
- 'SIZE_F_BIG' => 'الحجم للملف "%1$s" يجب أن يكون أقل من %2$s .',
- #'CANT_CON_FTP' => 'لايمكن الاتصال بـ ',
- 'URL_F_DEL' => 'رابط الحذف',
- 'URL_F_THMB' => 'رابط المصغرة',
- 'URL_F_FILE' => 'رابط الملف',
- 'URL_F_IMG' => 'رابط الصورة المباشر',
- 'URL_F_BBC' => 'رابط للمنتديات',
- 'IMG_DOWNLAODED' => 'تم تحميل الصورة بنجاح',
- 'FILE_DOWNLAODED' => 'تم تحميل الملف بنجاح',
- 'CANT_UPLAOD' => 'خطأ.. لم يتم تحميل الملف "%s" لأسباب غير معروفة',
- 'CANT_DIR_CRT' => 'لم يتم إنشاء مجلد تلقائياً.. قم بإنشاءه انت',
- 'AGREE_RULES' => 'بالضغط على الزر بالاسفل فانت توافق على %1$sشروط الخدمة%2$s.',
- #'CHANG_TO_URL_FILE' => 'تبديل طريقة التحميل.. رابط أو إدخال',
- 'URL_CANT_GET' => 'خطأ في جلب الملف من الرابط',
- 'ADMINCP' => 'مركز التحكم',
- #'JUMPTO' => 'انتقل إلى',
- 'GO_BACK_BROWSER' => 'رجوع للخلف',
- 'U_R_BANNED' => 'لقد تم حظر الآي بي هذا..',
- 'U_R_FLOODER' => 'لقد قمت بتخطي عدد مرات عرض الصفحة بالوقت المحدد..',
- 'YES' => 'نعم',
- 'NO' => 'لا',
- 'LANGUAGE' => 'اللغة',
- 'NORMAL' => 'عادي',
- 'STYLE' => 'الستايل',
- 'GROUP' => 'المجموعة',
- #'UPDATE_FILES' => 'تحديث الملفات',
- 'BY' => 'من',
- 'FILDER' => 'مجلد',
- 'DELETE' => 'حذف',
- 'GUST' => 'زائر',
- 'NAME' => 'الإسم',
- 'CLICKHERE' => 'اضغط هنا',
- 'IP' => 'IP',
- 'TIME' => 'الوقت',
- 'RETURN_HOME' => 'رجوع إلى المركز',
- 'TODAY' => 'اليوم',
- 'DAYS' => 'أيام',
- 'SUBMIT' => 'موافق',
- 'EDIT' => 'تعديل',
- 'DISABLE' => 'تعطيل',
- 'ENABLE' => 'تفعيل',
- 'OPEN' => 'افتح',
- 'NOTE' => 'ملاحظة',
- 'WARN' => 'انتبه',
- #'BITE' => 'بايت',
- 'KILOBYTE' => 'كيلوبايت',
- 'NOT_SAFE_FILE' => 'نظام كليجا اكتشف أن الملف "%s" غير آمن ويحتوي على أكواد خبيثه .. !!',
- 'ARE_YOU_SURE_DO_THIS' => 'هل أنت متأكد من القيام بهذه العملية؟',
- 'SITE_FOR_MEMBER_ONLY' => 'المركز للأعضاء فقط ، قم بالتسجيل أو بالدخول حتى تتمكن من التحميل.',
- 'AUTH_INTEGRATION_N_UTF8_T' => '%s ليست utf8',
- 'AUTH_INTEGRATION_N_UTF8' => '%s يجب أن يكون ترميز قاعدة البيانات الخاصة به utf8 لكي يتم الربط مع كليجا!.',
- 'SCRIPT_AUTH_PATH_WRONG' => 'مسار السكربت %s الذي تم ربط عضويات كليجا معه خاطئ ,قم بضبطه',
- 'SHOW_MY_FILECP' => 'السماح بعرض ملفاتي',
- 'PASS_CHANGE' => 'تغيير كلمة المرور',
- 'EDIT_U_AVATER' => 'تغيير الصورة الرمزية',
- 'EDIT_U_AVATER_LINK' => 'لتغيير الصورة الرمزية, قم بالدخول الى الموقع %1$s" اضغط هنا "%2$s والتسجيل بالبريد الخاص بك. ',
- 'MOST_EVER_ONLINE' => 'اكثر عدد تواجد للاعضاء بالمركز كان',
- 'ON' => 'في',
- 'LAST_REG' => 'آخر عضو مسجل',
- 'NEW_USER' => 'عضو جديد',
- 'COPYRIGHTS_X' => 'جميع الحقوق محفوظة',
- 'CHECK_ALL' => 'تحديد الكل',
- 'BROSWERF' => 'استعراض الملفات',
- 'REMME' => 'تذكرني',
- 'REMME_EXP' => 'علًم هذا الخيار ان كان جهازك غير مشترك مع غيرك',
- 'HOUR' => 'ساعة',
- '5HOURS' => '5 ساعات',
- 'DAY' => 'يوم',
- 'WEEK' => 'اسبوع',
- 'MONTH' => 'شهر',
- 'YEAR' => 'سنة',
- 'INVALID_FORM_KEY' => 'نموذج خاطئ , او انك تعديت الوقت المسموح فيه لملأ النموذج، أعد العملية.',
- 'INVALID_GET_KEY' => 'عفوا, هذا الرابط خاص بجلسة انتهت مدتها وتم منعه للامان, اعد المحاولة .',
- 'REFRESH_CAPTCHA' => 'إضغط لتحديث الصورة بأخرى جديدة',
- 'CHOSE_F' => 'فضلا قم بإختيار ملف واحد على الاقل',
- 'FILES_DELETED' => 'تم حذف الملفات المحددة بنجاح !',
- 'ALL_FILES' => 'عدد جميع الملفات',
- 'ALL_IMAGES' => 'عدد جميع الصور',
- 'WAIT_LOADING' => 'فضلاً انتظر جاري رفع الملفات .....',
- 'NOTICECLOSED' => 'تنبيه : المركز مغلق',
- 'UNKNOWN' => 'غير معروف',
- 'WE_UPDATING_KLEEJA_NOW' => 'الموقع مغلق للتطوير والترقية لاخر نسخة , لذا يرجى الصبر ...',
- 'ERROR_TRY_AGAIN' => 'خطأ , حاول مجدداً.',
- 'VIEW' => 'عرض',
- 'NONE' => 'لا شيء',
- 'NOTHING' => 'لا يوجد شيء!',
- 'YOU_HAVE_TO_WAIT' => 'انتظر %s ثانية وبعد انقضاء الفترة الزمنية قم بإعادة رفع الملفات',
- 'REPEAT_PASS' => 'اعد كلمة المرور',
- 'PASS_NEQ_PASS2' => 'كلمات المرور غير متطابقة !',
- 'ADMINS' => 'المسؤولين',
- 'GUESTS' => 'الزوار',
- 'USERS' => 'الاعضاء',
- 'DELETE_INSTALL_FOLDER' => 'لتستطيع استخدام كليجا الآن، قم بحذف مجلد install. لن تعمل كليجا بوجود هذا المجلد.',
- 'HV_NOT_PRVLG_ACCESS' => 'لاتملك صلاحيات للوصول لهذه الصفحة',
+ 'DELETE_SUCCESFUL' => 'تم الحذف بنجاح',
+ 'STATS' => 'إحصائيات المركز',
+ 'STATS_CLOSED' => 'صفحة الإحصائيات معطلة من المدير!',
+ 'FILES_ST' => 'تم تحميل ',
+ 'FILE' => 'ملف',
+ 'IMAGE' => 'صورة',
+ 'USERS_ST' => 'عدد الأعضاء',
+ 'USER' => 'عضو',
+ 'SIZES_ST' => 'حجم جميع الملفات',
+ //'LSTFLE_ST' => 'آخر ملف تم رفعه',
+ 'LSTDELST' => 'آخر فحص للملفات الخاملة ',
+ 'LAST_1_H' => 'هذه الإحصائيات لقبل ساعة من الآن',
+ 'DOWNLAOD' => 'تحميل',
+ 'DOWNLOAD' => 'تحميل',
+ 'FILE_FOUNDED' => 'تم إيجاد الملف',
+ 'WAIT' => 'انتظر رجاءً ..',
+ 'CLICK_DOWN' => 'اضغط هنا لتنزيل الملف',
+ 'JS_MUST_ON' => 'لا بد من تفعيل الجافا سكربت في متصفحك !',
+ 'FILE_INFO' => 'معلومات عن الملف',
+ 'FILENAME' => 'اسم الملف',
+ 'FILESIZE' => 'حجم الملف',
+ 'FILETYPE' => 'نوع الملف',
+ 'FILEDATE' => 'تاريخ الرفع',
+ 'LAST_DOWN' => 'آخر تحميل',
+ 'FILEUPS' => 'عدد التحميلات',
+ 'FILEREPORT' => 'ملف مخالف : إرسال إبلاغ عن المحتوى',
+ 'FILE_NO_FOUNDED' => 'لم نتمكن من إيجاد الملف!',
+ 'IMG_NO_FOUNDED' => 'لم نتمكن من إيجاد الصورة!',
+ 'NOT_IMG' => 'ليست صورة.. هذا ملف!',
+ 'MORE_F_FILES' => 'هذا آخر حد يمكنك تحميله',
+ 'DOWNLOAD_F' => 'رفع الملفات',
+ 'DOWNLOAD_T' => 'سحب الملفات من رابط',
+ 'PAST_URL_HERE' => 'ألصق الرابط هنا',
+ 'SAME_FILE_EXIST' => 'الملف "%s" موجود مسبقاً , قم بإعادة تسمية الملف او تحميل ملف آخر.',
+ 'NO_FILE_SELECTED' => 'لم تقم بإختيار ملف!',
+ 'WRONG_F_NAME' => 'اسم الملف "%s" يحتوي على أحرف غير مسموحة .. الرجاء تغيير اسم الملف والمحاولة من جديد ',
+ 'FORBID_EXT' => ' الامتداد "%s" غير مسموح ',
+ 'SIZE_F_BIG' => 'الحجم للملف "%1$s" يجب أن يكون أقل من %2$s .',
+ //'CANT_CON_FTP' => 'لايمكن الاتصال بـ ',
+ 'URL_F_DEL' => 'رابط الحذف',
+ 'URL_F_THMB' => 'رابط المصغرة',
+ 'URL_F_FILE' => 'رابط الملف',
+ 'URL_F_IMG' => 'رابط الصورة المباشر',
+ 'URL_F_BBC' => 'رابط للمنتديات',
+ 'IMG_DOWNLAODED' => 'تم تحميل الصورة بنجاح',
+ 'FILE_DOWNLAODED' => 'تم تحميل الملف بنجاح',
+ 'CANT_UPLAOD' => 'خطأ.. لم يتم تحميل الملف "%s" لأسباب غير معروفة',
+ 'CANT_DIR_CRT' => 'لم يتم إنشاء مجلد تلقائياً.. قم بإنشاءه انت',
+ 'AGREE_RULES' => 'بالضغط على الزر بالاسفل فانت توافق على %1$sشروط الخدمة%2$s.',
+ //'CHANG_TO_URL_FILE' => 'تبديل طريقة التحميل.. رابط أو إدخال',
+ 'URL_CANT_GET' => 'خطأ في جلب الملف من الرابط',
+ 'ADMINCP' => 'مركز التحكم',
+ //'JUMPTO' => 'انتقل إلى',
+ 'GO_BACK_BROWSER' => 'رجوع للخلف',
+ 'U_R_BANNED' => 'لقد تم حظر الآي بي هذا..',
+ 'U_R_FLOODER' => 'لقد قمت بتخطي عدد مرات عرض الصفحة بالوقت المحدد..',
+ 'YES' => 'نعم',
+ 'NO' => 'لا',
+ 'LANGUAGE' => 'اللغة',
+ 'NORMAL' => 'عادي',
+ 'STYLE' => 'الستايل',
+ 'GROUP' => 'المجموعة',
+ //'UPDATE_FILES' => 'تحديث الملفات',
+ 'BY' => 'من',
+ 'FILDER' => 'مجلد',
+ 'DELETE' => 'حذف',
+ 'GUST' => 'زائر',
+ 'NAME' => 'الإسم',
+ 'CLICKHERE' => 'اضغط هنا',
+ 'IP' => 'IP',
+ 'TIME' => 'الوقت',
+ 'RETURN_HOME' => 'رجوع إلى المركز',
+ 'TODAY' => 'اليوم',
+ 'DAYS' => 'أيام',
+ 'SUBMIT' => 'موافق',
+ 'EDIT' => 'تعديل',
+ 'DISABLE' => 'تعطيل',
+ 'ENABLE' => 'تفعيل',
+ 'OPEN' => 'افتح',
+ 'NOTE' => 'ملاحظة',
+ 'WARN' => 'انتبه',
+ //'BITE' => 'بايت',
+ 'KILOBYTE' => 'كيلوبايت',
+ 'NOT_SAFE_FILE' => 'نظام كليجا اكتشف أن الملف "%s" غير آمن ويحتوي على أكواد خبيثه .. !!',
+ 'ARE_YOU_SURE_DO_THIS' => 'هل أنت متأكد من القيام بهذه العملية؟',
+ 'SITE_FOR_MEMBER_ONLY' => 'المركز للأعضاء فقط ، قم بالتسجيل أو بالدخول حتى تتمكن من التحميل.',
+ 'AUTH_INTEGRATION_N_UTF8_T' => '%s ليست utf8',
+ 'AUTH_INTEGRATION_N_UTF8' => '%s يجب أن يكون ترميز قاعدة البيانات الخاصة به utf8 لكي يتم الربط مع كليجا!.',
+ 'SCRIPT_AUTH_PATH_WRONG' => 'مسار السكربت %s الذي تم ربط عضويات كليجا معه خاطئ ,قم بضبطه',
+ 'SHOW_MY_FILECP' => 'السماح بعرض ملفاتي',
+ 'PASS_CHANGE' => 'تغيير كلمة المرور',
+ 'EDIT_U_AVATER' => 'تغيير الصورة الرمزية',
+ 'EDIT_U_AVATER_LINK' => 'لتغيير الصورة الرمزية, قم بالدخول الى الموقع %1$s" اضغط هنا "%2$s والتسجيل بالبريد الخاص بك. ',
+ 'MOST_EVER_ONLINE' => 'اكثر عدد تواجد للاعضاء بالمركز كان',
+ 'ON' => 'في',
+ 'LAST_REG' => 'آخر عضو مسجل',
+ 'NEW_USER' => 'عضو جديد',
+ 'COPYRIGHTS_X' => 'جميع الحقوق محفوظة',
+ 'CHECK_ALL' => 'تحديد الكل',
+ 'BROSWERF' => 'استعراض الملفات',
+ 'REMME' => 'تذكرني',
+ 'REMME_EXP' => 'علًم هذا الخيار ان كان جهازك غير مشترك مع غيرك',
+ 'HOUR' => 'ساعة',
+ '5HOURS' => '5 ساعات',
+ 'DAY' => 'يوم',
+ 'WEEK' => 'اسبوع',
+ 'MONTH' => 'شهر',
+ 'YEAR' => 'سنة',
+ 'INVALID_FORM_KEY' => 'نموذج خاطئ , او انك تعديت الوقت المسموح فيه لملأ النموذج، أعد العملية.',
+ 'INVALID_GET_KEY' => 'عفوا, هذا الرابط خاص بجلسة انتهت مدتها وتم منعه للامان, اعد المحاولة .',
+ 'REFRESH_CAPTCHA' => 'إضغط لتحديث الصورة بأخرى جديدة',
+ 'CHOSE_F' => 'فضلا قم بإختيار ملف واحد على الاقل',
+ 'FILES_DELETED' => 'تم حذف الملفات المحددة بنجاح !',
+ 'ALL_FILES' => 'عدد جميع الملفات',
+ 'ALL_IMAGES' => 'عدد جميع الصور',
+ 'WAIT_LOADING' => 'فضلاً انتظر جاري رفع الملفات .....',
+ 'NOTICECLOSED' => 'تنبيه : المركز مغلق',
+ 'UNKNOWN' => 'غير معروف',
+ 'WE_UPDATING_KLEEJA_NOW' => 'الموقع مغلق للتطوير والترقية لاخر نسخة , لذا يرجى الصبر ...',
+ 'ERROR_TRY_AGAIN' => 'خطأ , حاول مجدداً.',
+ 'VIEW' => 'عرض',
+ 'NONE' => 'لا شيء',
+ 'NOTHING' => 'لا يوجد شيء!',
+ 'YOU_HAVE_TO_WAIT' => 'انتظر %s ثانية وبعد انقضاء الفترة الزمنية قم بإعادة رفع الملفات',
+ 'REPEAT_PASS' => 'اعد كلمة المرور',
+ 'PASS_NEQ_PASS2' => 'كلمات المرور غير متطابقة !',
+ 'ADMINS' => 'المسؤولين',
+ 'GUESTS' => 'الزوار',
+ 'USERS' => 'الاعضاء',
+ 'DELETE_INSTALL_FOLDER' => 'لتستطيع استخدام كليجا الآن، قم بحذف مجلد install. لن تعمل كليجا بوجود هذا المجلد.',
+ 'HV_NOT_PRVLG_ACCESS' => 'لاتملك صلاحيات للوصول لهذه الصفحة',
'W_PERIODS_0' => 'ثانية',
@@ -260,14 +260,14 @@ return array(
'W_PERIODS_6' => 'سنة',
'W_PERIODS_7' => 'عقد',
- 'W_PERIODS_DP_0'=> "ثانيتين",
- 'W_PERIODS_DP_1'=> "دقيقتين",
- 'W_PERIODS_DP_2'=> "ساعتين",
- 'W_PERIODS_DP_3'=> "يومين",
- 'W_PERIODS_DP_4'=> "أسبوعين",
- 'W_PERIODS_DP_5'=> "شهرين",
- 'W_PERIODS_DP_6'=> "سنتين",
- 'W_PERIODS_DP_7'=> "عقدين",
+ 'W_PERIODS_DP_0'=> 'ثانيتين',
+ 'W_PERIODS_DP_1'=> 'دقيقتين',
+ 'W_PERIODS_DP_2'=> 'ساعتين',
+ 'W_PERIODS_DP_3'=> 'يومين',
+ 'W_PERIODS_DP_4'=> 'أسبوعين',
+ 'W_PERIODS_DP_5'=> 'شهرين',
+ 'W_PERIODS_DP_6'=> 'سنتين',
+ 'W_PERIODS_DP_7'=> 'عقدين',
'W_PERIODS_P_0' => 'ثواني',
'W_PERIODS_P_1' => 'دقائق',
@@ -279,23 +279,23 @@ return array(
'W_PERIODS_P_7' => 'عقود',
- 'W_FROM' => 'منذ',
- 'W_AGO' => 'مضت',
- 'TIME_PM' => 'م',
- 'TIME_AM' => 'ص',
- 'NOT_YET' => 'ليس بعد!',
- 'NOT_FOUND' => 'إما انه غير موجود , او تم حذفه من قبل المستخدم نفسه , او الادارة , او هناك خطأء في فتح الملف!.',
- 'TIME_ZONE' => 'المنطقة الزمنية',
- 'OR' => 'او',
- 'AND' => 'و',
- 'CHANGE' => 'تغيير',
- 'FOR' => 'لـ',
- 'ALL' => 'الجميع',
- 'NOW' => 'الآن',
+ 'W_FROM' => 'منذ',
+ 'W_AGO' => 'مضت',
+ 'TIME_PM' => 'م',
+ 'TIME_AM' => 'ص',
+ 'NOT_YET' => 'ليس بعد!',
+ 'NOT_FOUND' => 'إما انه غير موجود , او تم حذفه من قبل المستخدم نفسه , او الادارة , او هناك خطأء في فتح الملف!.',
+ 'TIME_ZONE' => 'المنطقة الزمنية',
+ 'OR' => 'او',
+ 'AND' => 'و',
+ 'CHANGE' => 'تغيير',
+ 'FOR' => 'لـ',
+ 'ALL' => 'الجميع',
+ 'NOW' => 'الآن',
'EMAIL_CHANGE_REQ_PASS' => 'لتغيير بريدك الإلكتروني يجب أن تقوم بكتابة كلمة مرورك الحالية.',
- 'DRAG_AND_DROP' => 'جر وأسقط ملف هنا للرفع…',
- 'OR_MANUAL_SELECT' => 'أو قم بالضغط هنا
لإختيار ملف يدوياً..',
- //3.0.3
- 'NOTIFICATIONS' => 'تنبيهات',
- 'KJ_TWEETS' => 'تغريدات كليجا' ,
-);
+ 'DRAG_AND_DROP' => 'جر وأسقط ملف هنا للرفع…',
+ 'OR_MANUAL_SELECT' => 'أو قم بالضغط هنا
لإختيار ملف يدوياً..',
+ //3.0.3
+ 'NOTIFICATIONS' => 'تنبيهات',
+ 'KJ_TWEETS' => 'تغريدات كليجا' ,
+];
diff --git a/lang/ar/install.php b/lang/ar/install.php
index 17fd228..9867029 100755
--- a/lang/ar/install.php
+++ b/lang/ar/install.php
@@ -5,113 +5,113 @@
//
-return array(
- 'DIR' =>'rtl',
- 'INST_INSTALL_WIZARD' =>'معالج تثبيت كليجا',
- 'INST_INSTALL_CLEAN_VER' =>"تثبيت نسخة جديدة ",
- 'INST_UPDATE_P_VER' =>"تحديث نسخة سابقة ",
- 'INST_AGR_LICENSE' =>'أوافق على شروط ترخيص إستخدام كليجا .',
- 'INST_NEXT' =>'التالي',
- 'INST_PREVIOUS' =>'السابق',
- 'INST_SITE_INFO' =>'أدخل بيانات المركز',
- 'INST_ADMIN_INFO' =>'أدخل بيانات مدير المركز',
- 'INST_CHANG_CONFIG' =>'بعض البيانات المهمة ناقصة إملأ ملف config.php',
- 'INST_CONNCET_ERR' =>'لا يمكن الإتصال ...',
+return [
+ 'DIR' => 'rtl',
+ 'INST_INSTALL_WIZARD' => 'معالج تثبيت كليجا',
+ 'INST_INSTALL_CLEAN_VER' => 'تثبيت نسخة جديدة ',
+ 'INST_UPDATE_P_VER' => 'تحديث نسخة سابقة ',
+ 'INST_AGR_LICENSE' => 'أوافق على شروط ترخيص إستخدام كليجا .',
+ 'INST_NEXT' => 'التالي',
+ 'INST_PREVIOUS' => 'السابق',
+ 'INST_SITE_INFO' => 'أدخل بيانات المركز',
+ 'INST_ADMIN_INFO' => 'أدخل بيانات مدير المركز',
+ 'INST_CHANG_CONFIG' => 'بعض البيانات المهمة ناقصة إملأ ملف config.php',
+ 'INST_CONNCET_ERR' => 'لا يمكن الإتصال ...',
- 'INST_NO_WRTABLE' =>'مجلد غير قابل للكتابة .. يحتاج تصريح 777',
- 'INST_GOOD_GO' =>'تم التأكد من المتغييرات والإتصال والتراخيص .. تابع',
- 'INST_MSGINS' =>'يمكنك تحميل ماتشاء وفق المسموح به .. شكراُ لزيارتك',
- 'INST_CRT_CALL' =>'تم إنشاء جدول المراسلات',
- 'INST_CRT_ONL' =>'تم إنشاء جدول المتواجدون الآن',
- 'INST_CRT_REPRS' =>'تم إنشاء جدول التبليغات',
- 'INST_CRT_STS' =>'تم إنشاء جدول الإحصائيات',
- 'INST_CRT_USRS' =>'تم إنشاء جدول الأعضاء',
- 'INST_CRT_ADM' =>'تم إدخال معلومات المسؤول',
- 'INST_CRT_FLS' =>'تم إنشاء جدول الملفات',
- 'INST_CRT_CNF' =>'تم إنشاء جدول الإعدادات',
- 'INST_CRT_EXT' =>'تم إنشاء جدول الإمتدادات',
- 'INST_CRT_HKS' =>'تم إنشاء جدول الخطاطيف',
- 'INST_CRT_LNG' =>'تم إنشاء جدول اللغة',
- 'INST_CRT_PLG' =>'تم إنشاء جدول الإضافات',
- 'INST_SQL_ERR' =>'خطأ في تنفيذ الإستعلام',
- 'INST_FINISH_SQL' =>'تم تثبيت كليجا بنجاح',
- 'INST_NOTES' =>'ملاحظات التثبيت',
- 'INST_END' =>'معالج التثبيت انتهى، يجب الآن حذف مجلد INSTALL
(الموقع لن يعمل في حال وجود المجلد)',
- 'INST_NOTE_D' =>'أي ملاحظات أو مشاكل تتعلق بأداء كليجا، نرجوا التواصل مع مطوري كليجا!',
- 'INST_FINISH_ERRSQL' =>'هناك مشكلة تعيق التثبيت، تأكد من حساب مستخدم القاعدة وحاول مجدداً او استفسر من مطوري كليجا',
- 'INST_KLEEJADEVELOPERS' =>'شكراً لإستخدامك كليجا ... مع أحلى و أطيب التمنيات .. من فريق عمل كليجا',
- 'SITENAME' =>'اسم الموقع',
- 'SITEURL' =>'رابط الموقع',
- 'SITEMAIL' =>'بريد الموقع',
- 'USERNAME' =>'اسم المستخدم',
- 'PASSWORD' =>'كلمة المرور',
- 'PASSWORD2' =>'أعد كلمة المرور',
- 'EMAIL' =>'البريد الالكتروني',
- 'INDEX' =>'الرئيسيه',
- 'ADMINCP' =>'لوحة التحكم',
- 'EMPTY_FIELDS' =>'هناك حقول مهمة, تركتها فارغة!',
- 'WRONG_EMAIL' =>'البريد الإلكتروني خاطئ!',
- //
-
- 'DB_INFO_NW' =>'أدخل بيانات القاعدة بشكل صحيح ، واضغط على (تصدير الملف)وسيقوم المعالج بتصدير ملف config.php لتضعه في مجلد السكربت الرئيسي كما يتضح لك بالصورة!',
- 'DB_INFO' =>'أدخل معلومات قاعدة البيانات',
- 'DB_SERVER' =>'الخادم',
- 'DB_TYPE' =>'نوع قاعدة البيانات',
- 'DB_TYPE_MYSQL' =>'MySQL القياسي',
- 'DB_TYPE_MYSQLI' =>'MySQL المطور',
- 'DB_USER' =>'اسم المستخدم لقاعدة البيانات',
- 'DB_PASSWORD' =>'كلمة المرور لقاعدة البيانات',
- 'DB_NAME' =>'إسم قاعدة البيانات',
- 'DB_PREFIX' =>'بادئة الجداول',
- 'VALIDATING_FORM_WRONG' =>'يبدو أنك تركت أحد الحقول المطلوبة فارغاً ...',
- 'CONFIG_EXISTS' =>'تم إيجاد ملف config.php قم بالمتابعة ...',
- 'INST_SUBMIT_CONFIGOK' =>'أرفع ملف config.php في دليل كليجا الرئيسي وتابع عملية التثبيت !',
- 'INST_EXPORT' =>'تصدير الملف',
- 'INST_OTHER_INFO' =>'معلومات اخرى',
- 'URLS_TYPES' =>'شكل روابط الملفات',
- 'DEFAULT' =>'الافتراضي - ينصح به',
- 'FILENAME_URL' =>'اسماء الملفات',
- 'DIRECT_URL' =>'روابط مباشرة - لايتم تسجيل إحصائيات',
- 'LIKE_THIS' =>'مثال',
-
- //
- 'FUNCTIONS_CHECK' =>'فحص الدوال',
- 'RE_CHECK' =>'إعادة الفحص',
- 'FUNCTION_IS_NOT_EXISTS' =>'الدالة %s مُعطلة لديك.',
- 'FUNCTION_IS_EXISTS' =>'الدالة %s مُفعلة لديك.',
- 'FUNCTION_DISC_UNLINK' =>'دالة unlink يتم استخدامها لحذف الملفات وأيضا لحذف ملفات الكاش وتحديثها.',
- 'FUNCTION_DISC_GD' =>'دالة imagecreatetruecolor هي من دوال مكتبة GD التي تستخدم لإنشاء مصغرات الصور والكود الأمني , عدم وجود الداله غالبا يعني عدم تواجد مكتبه GD على السيرفر .. ',
- 'FUNCTION_DISC_FOPEN' =>'دالة fopen تستخدم في التحكم بالستايل والملفات في كليجا.',
- 'FUNCTION_DISC_MUF' =>'دالة move_uploaded_file تستخدم لتحميل الملفات وهي اهم دالة في السكربت.',
- //
- 'ADVICES_CHECK' =>'فحص متقدم (يمكن تثبيت كليجا بدون تحقق هذا الفحص , لكنه مجرد معلومات لك)',
- 'ADVICES_REGISTER_GLOBALS' =>'
خاصية register_globals مفعلة ! هذه الخاصية غير محبب تفعيلها ويفضل تعطيلها , ومع هذا فكليجا تحاول تعطيل أثارها برمجياً .',
- 'ADVICES_MAGIC_QUOTES' =>'
خاصية magic_quotes مفعله ! هذه الخاصية غير محبب تفعيلها ويفضل تعطيلها , ومع هذا فكليجا تحاول تعطيل أثارها برمجياً ..',
-
- //UPDATOR
- 'INST_CHOOSE_UPDATE_FILE' =>'قم بإختيار التحديث المناسب لك ومن ثم تابع التحديث ..',
- 'INST_ERR_NO_SELECTED_UPFILE_GOOD' =>'ملف التحديث غير مناسب أو أنه غير موجود من الأساس ! ..',
- 'INST_UPDATE_CUR_VER_IS_UP' =>'نسختك الحالية محدثة لهذا التحديث المحدد.',
-
- 'INST_NOTES_UPDATE' =>'ملاحظات التحديث',
+ 'INST_NO_WRTABLE' => 'مجلد غير قابل للكتابة .. يحتاج تصريح 777',
+ 'INST_GOOD_GO' => 'تم التأكد من المتغييرات والإتصال والتراخيص .. تابع',
+ 'INST_MSGINS' => 'يمكنك تحميل ماتشاء وفق المسموح به .. شكراُ لزيارتك',
+ 'INST_CRT_CALL' => 'تم إنشاء جدول المراسلات',
+ 'INST_CRT_ONL' => 'تم إنشاء جدول المتواجدون الآن',
+ 'INST_CRT_REPRS' => 'تم إنشاء جدول التبليغات',
+ 'INST_CRT_STS' => 'تم إنشاء جدول الإحصائيات',
+ 'INST_CRT_USRS' => 'تم إنشاء جدول الأعضاء',
+ 'INST_CRT_ADM' => 'تم إدخال معلومات المسؤول',
+ 'INST_CRT_FLS' => 'تم إنشاء جدول الملفات',
+ 'INST_CRT_CNF' => 'تم إنشاء جدول الإعدادات',
+ 'INST_CRT_EXT' => 'تم إنشاء جدول الإمتدادات',
+ 'INST_CRT_HKS' => 'تم إنشاء جدول الخطاطيف',
+ 'INST_CRT_LNG' => 'تم إنشاء جدول اللغة',
+ 'INST_CRT_PLG' => 'تم إنشاء جدول الإضافات',
+ 'INST_SQL_ERR' => 'خطأ في تنفيذ الإستعلام',
+ 'INST_FINISH_SQL' => 'تم تثبيت كليجا بنجاح',
+ 'INST_NOTES' => 'ملاحظات التثبيت',
+ 'INST_END' => 'معالج التثبيت انتهى، يجب الآن حذف مجلد INSTALL
(الموقع لن يعمل في حال وجود المجلد)',
+ 'INST_NOTE_D' => 'أي ملاحظات أو مشاكل تتعلق بأداء كليجا، نرجوا التواصل مع مطوري كليجا!',
+ 'INST_FINISH_ERRSQL' => 'هناك مشكلة تعيق التثبيت، تأكد من حساب مستخدم القاعدة وحاول مجدداً او استفسر من مطوري كليجا',
+ 'INST_KLEEJADEVELOPERS' => 'شكراً لإستخدامك كليجا ... مع أحلى و أطيب التمنيات .. من فريق عمل كليجا',
+ 'SITENAME' => 'اسم الموقع',
+ 'SITEURL' => 'رابط الموقع',
+ 'SITEMAIL' => 'بريد الموقع',
+ 'USERNAME' => 'اسم المستخدم',
+ 'PASSWORD' => 'كلمة المرور',
+ 'PASSWORD2' => 'أعد كلمة المرور',
+ 'EMAIL' => 'البريد الالكتروني',
+ 'INDEX' => 'الرئيسيه',
+ 'ADMINCP' => 'لوحة التحكم',
+ 'EMPTY_FIELDS' => 'هناك حقول مهمة, تركتها فارغة!',
+ 'WRONG_EMAIL' => 'البريد الإلكتروني خاطئ!',
-
- 'INST_UPDATE_IS_FINISH' =>'معالج التحديث انتهى .. يجب الآن حذف مجلد INSTALL و متابعة عملك في كليجا .',
+ 'DB_INFO_NW' => 'أدخل بيانات القاعدة بشكل صحيح ، واضغط على (تصدير الملف)وسيقوم المعالج بتصدير ملف config.php لتضعه في مجلد السكربت الرئيسي كما يتضح لك بالصورة!',
+ 'DB_INFO' => 'أدخل معلومات قاعدة البيانات',
+ 'DB_SERVER' => 'الخادم',
+ 'DB_TYPE' => 'نوع قاعدة البيانات',
+ 'DB_TYPE_MYSQL' => 'MySQL القياسي',
+ 'DB_TYPE_MYSQLI' => 'MySQL المطور',
+ 'DB_USER' => 'اسم المستخدم لقاعدة البيانات',
+ 'DB_PASSWORD' => 'كلمة المرور لقاعدة البيانات',
+ 'DB_NAME' => 'إسم قاعدة البيانات',
+ 'DB_PREFIX' => 'بادئة الجداول',
+ 'VALIDATING_FORM_WRONG' => 'يبدو أنك تركت أحد الحقول المطلوبة فارغاً ...',
+ 'CONFIG_EXISTS' => 'تم إيجاد ملف config.php قم بالمتابعة ...',
+ 'INST_SUBMIT_CONFIGOK' => 'أرفع ملف config.php في دليل كليجا الرئيسي وتابع عملية التثبيت !',
+ 'INST_EXPORT' => 'تصدير الملف',
+ 'INST_OTHER_INFO' => 'معلومات اخرى',
+ 'URLS_TYPES' => 'شكل روابط الملفات',
+ 'DEFAULT' => 'الافتراضي - ينصح به',
+ 'FILENAME_URL' => 'اسماء الملفات',
+ 'DIRECT_URL' => 'روابط مباشرة - لايتم تسجيل إحصائيات',
+ 'LIKE_THIS' => 'مثال',
- 'INST_PHP_LESSMIN' =>'لتثبيت كليجا يجب على الأقل أن يكون لديك اصدار PHP %1$s , وانت لديك اصدار PHP %2$s.',
- 'INST_MYSQL_LESSMIN' =>'لتثبيت كليجا يجب على الأقل أن يكون لديك اصدار MYSQL %1$s , وانت لديك اصدار MYSQL %2$s.',
- 'IS_IT_OFFICIAL' =>'هل قمت بتحميل النسخة من الموقع الرسمي Kleeja.com ؟',
- 'IS_IT_OFFICIAL_DESC' =>'يصلنا الكثير من الشكاوي والتساؤلات عن سبب بعض المشاكل التي تحدث في بعض النسخ ولا نستطيع معرفة المشكلة غالباً , لكن بعد البحث وجدنا ان هناك نسخاً يتم تحميلها من مواقع اخرى غير رسمية وتكون اما معدلة بطريقة بدائية او مزروع داخلها اكواد خبيثة.
لذا , هل انت متأكد من ان نسختك هذه تم تحميلها من الموقع الرسمي : kleeja.com ؟',
- 'INST_WHAT_IS_KLEEJA_T' =>'ماهي كليجا ؟',
- 'INST_WHAT_IS_KLEEJA' =>'Kleeja تنطق عربياً "كليجا" ! وكتعريف مبسط "كليجا" سكربت رفع ملفات مجاني يأتي مع خصائص فريدة لمساعدة أصحاب المواقع بإمتلاك مركز تحميل قوي ويعتمد عليه , والحقيقة أن "كليجا" سكربت ضخم الامكانيات سهل الإدارة تم بناء نظام الحماية على مستوى عالي ويملك من الأنظمة المعقدة ما يؤمن لموقعك الحماية التامة بإذن الله !',
- 'INST_SPECIAL_KLEEJA' =>'من أهم مميزات كليجا !',
- 'INST_WHAT_IS_KLEEJA_ONE' =>'1. نظام أعضاء قوي تستطيع ربطه بأغلب السكربتات المستخدمة في المواقع الاجتماعية .
2. لوحة تحكم مذهلة ليس فقط للتحكم بالملفات ولكن للتحكم بكل صغيرة وكبيرة .
3. نظام الستايلات البسيط يجعلك تستطيع ان تصنع ستايلك بنفسك.
4. مع كليجا ونظام الإضافات البرمجية تستطيع أن تقوم بتركيب الكثير من الاضافات الرائعة .
5. ليس هذا فحسب بل كليجا تملك الكثير .. لتعرف أكثر رجاءاً قم بزيارة صفحه
معلومات ومميزات .',
- 'YES' =>'نعم',
- 'NO' =>'لا',
+ 'FUNCTIONS_CHECK' => 'فحص الدوال',
+ 'RE_CHECK' => 'إعادة الفحص',
+ 'FUNCTION_IS_NOT_EXISTS' => 'الدالة %s مُعطلة لديك.',
+ 'FUNCTION_IS_EXISTS' => 'الدالة %s مُفعلة لديك.',
+ 'FUNCTION_DISC_UNLINK' => 'دالة unlink يتم استخدامها لحذف الملفات وأيضا لحذف ملفات الكاش وتحديثها.',
+ 'FUNCTION_DISC_GD' => 'دالة imagecreatetruecolor هي من دوال مكتبة GD التي تستخدم لإنشاء مصغرات الصور والكود الأمني , عدم وجود الداله غالبا يعني عدم تواجد مكتبه GD على السيرفر .. ',
+ 'FUNCTION_DISC_FOPEN' => 'دالة fopen تستخدم في التحكم بالستايل والملفات في كليجا.',
+ 'FUNCTION_DISC_MUF' => 'دالة move_uploaded_file تستخدم لتحميل الملفات وهي اهم دالة في السكربت.',
- 'KLEEJA_TEAM_MSG_NAME' =>'فريق تطوير كليجا',
- 'KLEEJA_TEAM_MSG_TEXT' =>"شكراً لاختيارك سكربت الرفع الأول كليجا\n نتمنى حقا ان تستمتع بالسكربت .\nhttp://www.kleeja.com",
+ 'ADVICES_CHECK' => 'فحص متقدم (يمكن تثبيت كليجا بدون تحقق هذا الفحص , لكنه مجرد معلومات لك)',
+ 'ADVICES_REGISTER_GLOBALS' => '
خاصية register_globals مفعلة ! هذه الخاصية غير محبب تفعيلها ويفضل تعطيلها , ومع هذا فكليجا تحاول تعطيل أثارها برمجياً .',
+ 'ADVICES_MAGIC_QUOTES' => '
خاصية magic_quotes مفعله ! هذه الخاصية غير محبب تفعيلها ويفضل تعطيلها , ومع هذا فكليجا تحاول تعطيل أثارها برمجياً ..',
-);
\ No newline at end of file
+ //UPDATOR
+ 'INST_CHOOSE_UPDATE_FILE' => 'قم بإختيار التحديث المناسب لك ومن ثم تابع التحديث ..',
+ 'INST_ERR_NO_SELECTED_UPFILE_GOOD' => 'ملف التحديث غير مناسب أو أنه غير موجود من الأساس ! ..',
+ 'INST_UPDATE_CUR_VER_IS_UP' => 'نسختك الحالية محدثة لهذا التحديث المحدد.',
+
+ 'INST_NOTES_UPDATE' => 'ملاحظات التحديث',
+
+
+
+ 'INST_UPDATE_IS_FINISH' => 'معالج التحديث انتهى .. يجب الآن حذف مجلد INSTALL و متابعة عملك في كليجا .',
+
+ 'INST_PHP_LESSMIN' => 'لتثبيت كليجا يجب على الأقل أن يكون لديك اصدار PHP %1$s , وانت لديك اصدار PHP %2$s.',
+ 'INST_MYSQL_LESSMIN' => 'لتثبيت كليجا يجب على الأقل أن يكون لديك اصدار MYSQL %1$s , وانت لديك اصدار MYSQL %2$s.',
+ 'IS_IT_OFFICIAL' => 'هل قمت بتحميل النسخة من الموقع الرسمي Kleeja.com ؟',
+ 'IS_IT_OFFICIAL_DESC' => 'يصلنا الكثير من الشكاوي والتساؤلات عن سبب بعض المشاكل التي تحدث في بعض النسخ ولا نستطيع معرفة المشكلة غالباً , لكن بعد البحث وجدنا ان هناك نسخاً يتم تحميلها من مواقع اخرى غير رسمية وتكون اما معدلة بطريقة بدائية او مزروع داخلها اكواد خبيثة.
لذا , هل انت متأكد من ان نسختك هذه تم تحميلها من الموقع الرسمي : kleeja.com ؟',
+
+ 'INST_WHAT_IS_KLEEJA_T' => 'ماهي كليجا ؟',
+ 'INST_WHAT_IS_KLEEJA' => 'Kleeja تنطق عربياً "كليجا" ! وكتعريف مبسط "كليجا" سكربت رفع ملفات مجاني يأتي مع خصائص فريدة لمساعدة أصحاب المواقع بإمتلاك مركز تحميل قوي ويعتمد عليه , والحقيقة أن "كليجا" سكربت ضخم الامكانيات سهل الإدارة تم بناء نظام الحماية على مستوى عالي ويملك من الأنظمة المعقدة ما يؤمن لموقعك الحماية التامة بإذن الله !',
+ 'INST_SPECIAL_KLEEJA' => 'من أهم مميزات كليجا !',
+ 'INST_WHAT_IS_KLEEJA_ONE' => '1. نظام أعضاء قوي تستطيع ربطه بأغلب السكربتات المستخدمة في المواقع الاجتماعية .
2. لوحة تحكم مذهلة ليس فقط للتحكم بالملفات ولكن للتحكم بكل صغيرة وكبيرة .
3. نظام الستايلات البسيط يجعلك تستطيع ان تصنع ستايلك بنفسك.
4. مع كليجا ونظام الإضافات البرمجية تستطيع أن تقوم بتركيب الكثير من الاضافات الرائعة .
5. ليس هذا فحسب بل كليجا تملك الكثير .. لتعرف أكثر رجاءاً قم بزيارة صفحه
معلومات ومميزات .',
+ 'YES' => 'نعم',
+ 'NO' => 'لا',
+
+ 'KLEEJA_TEAM_MSG_NAME' => 'فريق تطوير كليجا',
+ 'KLEEJA_TEAM_MSG_TEXT' => "شكراً لاختيارك سكربت الرفع الأول كليجا\n نتمنى حقا ان تستمتع بالسكربت .\nhttp://www.kleeja.com",
+
+];
diff --git a/lang/en/acp.php b/lang/en/acp.php
index 801a2ee..60426f1 100755
--- a/lang/en/acp.php
+++ b/lang/en/acp.php
@@ -4,281 +4,281 @@
// English
//
-return array(
- 'U_NOT_ADMIN' => 'You do not have the administration permissions',
- 'UPDATE_CONFIG' => 'Update Settings',
- 'NO_CHANGE' => 'Do NOT change',
- 'CHANGE_MD5' => 'Change using MD5 (8c7dd922ad47494fc02c388e12c00eac.png)',
- 'CHANGE_TIME' => 'Change using TIME (1501440381.png)',
- 'SITENAME' => 'Service name',
- 'SITEMAIL' => 'Email address',
- 'SITEMAIL2' => 'Email address of reports',
- 'SITEURL' => 'Service URL with / at the end',
- 'FOLDERNAME' => 'Folder name for uploaded files
(you can use {year}, {month}, {day} ,{week} ,{username})',
- 'PREFIXNAME' => 'Files name prefix
(you can also use {rand:4} , {date:d_Y})',
- 'FILESNUM' => 'Number of upload input fields',
- 'FILESNUM_SHOW' => 'Show all upload inputs',
- 'SITECLOSE' => 'Shutdown service',
- 'CLOSEMSG' => 'Shutdown message',
- 'DECODE' => 'Change file name',
- 'SEC_DOWN' => 'Waiting period
(in Seconds, before download button appears)',
- 'STATFOOTER' => 'Page statistics in footer',
- 'GZIP' => 'use gzip',
- 'GOOGLEANALYTICS' => '
Google Analytics',
- 'WELCOME_MSG' => 'Welcome message',
- 'USER_SYSTEM' => 'Users system',
- 'TOTAL_SIZE' => 'Max service size (Megabytes)',
- 'THUMBS_IMGS' => 'thumbnails Dimensions (Width x Height)',
- 'WRITE_IMGS' => 'Enable image watermark',
- 'ID_FORM' => 'Files URLs form
(No stats or protection for Direct URLs)',
- 'IDF' => 'Row ID in database (example.com/do.php?id=123)',
- 'IDFF' => 'File name (example.com/do.php?file=filename.pdf)',
- 'IDFD' => 'Direct (example.com/uploads/filename.pdf)',
- 'ID_FORM_IMG' => 'Images URLs form
(No stats or protection for Direct URLs)',
- 'IDF_IMG' => 'Row ID in database (example.com/do.php?img=123)',
- 'IDFF_IMG' => 'File name (example.com/do.php?imgf=filename.png)',
- 'IDFD_IMG' => 'Direct (example.com/uploads/filename.png)',
- 'DEL_URL_FILE' => 'Enable file deletion URL feature',
- 'WWW_URL' => 'Enable uploading from URL',
- 'ALLOW_STAT_PG' => 'Enable statistics page',
- 'ALLOW_ONLINE' => 'Enable Who is Online',
- 'MOD_WRITER' => 'Mod Rewrite',
- 'MOD_WRITER_EX' => 'HTML links..',
- 'DEL_F_DAY' => 'Auto Delete undownloaded files (days) (0 = disabled)',
- 'NUMFIELD_S' => 'You can only use numbers with some fields !!',
- 'CONFIGS_UPDATED' => 'Settings updated successfully.',
+return [
+ 'U_NOT_ADMIN' => 'You do not have the administration permissions',
+ 'UPDATE_CONFIG' => 'Update Settings',
+ 'NO_CHANGE' => 'Do NOT change',
+ 'CHANGE_MD5' => 'Change using MD5 (8c7dd922ad47494fc02c388e12c00eac.png)',
+ 'CHANGE_TIME' => 'Change using TIME (1501440381.png)',
+ 'SITENAME' => 'Service name',
+ 'SITEMAIL' => 'Email address',
+ 'SITEMAIL2' => 'Email address of reports',
+ 'SITEURL' => 'Service URL with / at the end',
+ 'FOLDERNAME' => 'Folder name for uploaded files
(you can use {year}, {month}, {day} ,{week} ,{username})',
+ 'PREFIXNAME' => 'Files name prefix
(you can also use {rand:4} , {date:d_Y})',
+ 'FILESNUM' => 'Number of upload input fields',
+ 'FILESNUM_SHOW' => 'Show all upload inputs',
+ 'SITECLOSE' => 'Shutdown service',
+ 'CLOSEMSG' => 'Shutdown message',
+ 'DECODE' => 'Change file name',
+ 'SEC_DOWN' => 'Waiting period
(in Seconds, before download button appears)',
+ 'STATFOOTER' => 'Page statistics in footer',
+ 'GZIP' => 'use gzip',
+ 'GOOGLEANALYTICS' => '
Google Analytics',
+ 'WELCOME_MSG' => 'Welcome message',
+ 'USER_SYSTEM' => 'Users system',
+ 'TOTAL_SIZE' => 'Max service size (Megabytes)',
+ 'THUMBS_IMGS' => 'thumbnails Dimensions (Width x Height)',
+ 'WRITE_IMGS' => 'Enable image watermark',
+ 'ID_FORM' => 'Files URLs form
(No stats or protection for Direct URLs)',
+ 'IDF' => 'Row ID in database (example.com/do.php?id=123)',
+ 'IDFF' => 'File name (example.com/do.php?file=filename.pdf)',
+ 'IDFD' => 'Direct (example.com/uploads/filename.pdf)',
+ 'ID_FORM_IMG' => 'Images URLs form
(No stats or protection for Direct URLs)',
+ 'IDF_IMG' => 'Row ID in database (example.com/do.php?img=123)',
+ 'IDFF_IMG' => 'File name (example.com/do.php?imgf=filename.png)',
+ 'IDFD_IMG' => 'Direct (example.com/uploads/filename.png)',
+ 'DEL_URL_FILE' => 'Enable file deletion URL feature',
+ 'WWW_URL' => 'Enable uploading from URL',
+ 'ALLOW_STAT_PG' => 'Enable statistics page',
+ 'ALLOW_ONLINE' => 'Enable Who is Online',
+ 'MOD_WRITER' => 'Mod Rewrite',
+ 'MOD_WRITER_EX' => 'HTML links..',
+ 'DEL_F_DAY' => 'Auto Delete undownloaded files (days) (0 = disabled)',
+ 'NUMFIELD_S' => 'You can only use numbers with some fields !!',
+ 'CONFIGS_UPDATED' => 'Settings updated successfully.',
- 'EXT_DELETED' => 'The extension deleted successfully.',
- 'E_EXTS' => 'Note : Sizes are measured in kilobytes.',
- 'UPDATED_EXTS' => 'Extensions updated successfully.',
- 'REPLY' => 'Reply',
- 'REPLY_REPORT' => 'Reply to this report',
- 'U_REPORT_ON' => 'For your report about ',
- 'BY_EMAIL' => 'By email ',
- 'ADMIN_REPLIED' => 'Admin Reply',
+ 'EXT_DELETED' => 'The extension deleted successfully.',
+ 'E_EXTS' => 'Note : Sizes are measured in kilobytes.',
+ 'UPDATED_EXTS' => 'Extensions updated successfully.',
+ 'REPLY' => 'Reply',
+ 'REPLY_REPORT' => 'Reply to this report',
+ 'U_REPORT_ON' => 'For your report about ',
+ 'BY_EMAIL' => 'By email ',
+ 'ADMIN_REPLIED' => 'Admin Reply',
- 'IS_SEND_MAIL' => 'Reply has been sent.',
- 'REPORTS_UPDATED' => 'Reports have been updated.',
- 'REPLY_CALL' => 'Reply to this message',
- 'REPLIED_ON_CAL' => 'About your Message ',
- 'CALLS_UPDATED' => 'Messages updated successfully.',
- 'FOUNDER' => 'Founder',
- 'USER_UPDATED' => 'User data has been updated successfully.',
- 'REPAIRE_TABLE' => '[Tables] Repaired. ',
- 'REPAIRE_CACHE' => 'Cache has been deleted/refreshed.',
- 'KLEEJA_CP' => 'Control Panel',
- 'GENERAL_STAT' => 'General Stats',
- 'OTHER_INFO' => 'Other Info',
- 'AFILES_NUM' => 'Total number of files',
- 'AFILES_SIZE_SPACE' => 'Space that has been consumed so far',
- 'AUSERS_NUM' => 'Total users',
- 'LAST_GOOGLE' => 'Last visit of a Google Bot',
- 'GOOGLE_NUM' => 'Total Google\'s bot visits',
- 'LAST_BING' => 'Last visit of a Bing Bot',
- 'BING_NUM' => 'Total Bing\'s bot visits',
- 'KLEEJA_CP_W' => 'Hello! Welcome to Kleeja Control Panel',
- 'PHP_VER' => 'PHP version',
- 'MYSQL_VER' => 'MySQL version',
- 'R_CONFIGS' => 'Settings',
- 'R_CPINDEX' => 'Dashboard',
- 'R_EXTS' => 'Files\' Extensions Settings',
- 'R_FILES' => 'Files Control',
- 'R_REPORTS' => 'Reports',
- 'R_CALLS' => 'Messages',
- 'R_USERS' => 'Users & Groups',
- 'R_REPAIR' => 'Maintenance',
- 'R_LGOUTCP' => 'Clear Session',
- 'R_BAN' => 'Ban Control',
- 'BAN_EXP1' => 'Edit the banned IPs and add new ones here ..',
- 'BAN_EXP2' => 'Use the star (*) symbol to replace numbers if you want a total ban.... and use the (|) to separate the IPs',
- 'UPDATE_BAN' => 'Save Changes',
- 'BAN_UPDATED' => 'Changes saved successfully.',
- 'R_RULES' => 'Terms',
- 'RULES_EXP' => 'You can edit the terms and conditions of your service from here',
- 'UPDATE_RULES' => 'Update',
- 'RULES_UPDATED' => 'Terms and conditions updated successfully ..',
- 'R_SEARCH' => 'Advanced search',
- 'SEARCH_FILES' => 'Search for files',
- 'SEARCH_SUBMIT' => 'Search',
- 'LAST_DOWN' => 'Last download',
- 'WAS_B4' => 'Was before',
- 'SEARCH_USERS' => 'Search for users',
- 'R_IMG_CTRL' => 'Image control only',
- 'ENABLE_USERFILE' => 'Enable users files',
- 'R_EXTRA' => 'Extra Templates',
- 'EX_HEADER_N' => 'Extra header ... which shows at the bottom of the original header',
- 'EX_FOOTER_N' => 'Extra footer ... which shows at the top of the original footer',
- 'UPDATE_EXTRA' => 'Update template',
- 'EXTRA_UPDATED' => 'Template additions updated successfully',
- 'R_STYLES' => 'Styles',
+ 'IS_SEND_MAIL' => 'Reply has been sent.',
+ 'REPORTS_UPDATED' => 'Reports have been updated.',
+ 'REPLY_CALL' => 'Reply to this message',
+ 'REPLIED_ON_CAL' => 'About your Message ',
+ 'CALLS_UPDATED' => 'Messages updated successfully.',
+ 'FOUNDER' => 'Founder',
+ 'USER_UPDATED' => 'User data has been updated successfully.',
+ 'REPAIRE_TABLE' => '[Tables] Repaired. ',
+ 'REPAIRE_CACHE' => 'Cache has been deleted/refreshed.',
+ 'KLEEJA_CP' => 'Control Panel',
+ 'GENERAL_STAT' => 'General Stats',
+ 'OTHER_INFO' => 'Other Info',
+ 'AFILES_NUM' => 'Total number of files',
+ 'AFILES_SIZE_SPACE' => 'Space that has been consumed so far',
+ 'AUSERS_NUM' => 'Total users',
+ 'LAST_GOOGLE' => 'Last visit of a Google Bot',
+ 'GOOGLE_NUM' => 'Total Google\'s bot visits',
+ 'LAST_BING' => 'Last visit of a Bing Bot',
+ 'BING_NUM' => 'Total Bing\'s bot visits',
+ 'KLEEJA_CP_W' => 'Hello! Welcome to Kleeja Control Panel',
+ 'PHP_VER' => 'PHP version',
+ 'MYSQL_VER' => 'MySQL version',
+ 'R_CONFIGS' => 'Settings',
+ 'R_CPINDEX' => 'Dashboard',
+ 'R_EXTS' => 'Files\' Extensions Settings',
+ 'R_FILES' => 'Files Control',
+ 'R_REPORTS' => 'Reports',
+ 'R_CALLS' => 'Messages',
+ 'R_USERS' => 'Users & Groups',
+ 'R_REPAIR' => 'Maintenance',
+ 'R_LGOUTCP' => 'Clear Session',
+ 'R_BAN' => 'Ban Control',
+ 'BAN_EXP1' => 'Edit the banned IPs and add new ones here ..',
+ 'BAN_EXP2' => 'Use the star (*) symbol to replace numbers if you want a total ban.... and use the (|) to separate the IPs',
+ 'UPDATE_BAN' => 'Save Changes',
+ 'BAN_UPDATED' => 'Changes saved successfully.',
+ 'R_RULES' => 'Terms',
+ 'RULES_EXP' => 'You can edit the terms and conditions of your service from here',
+ 'UPDATE_RULES' => 'Update',
+ 'RULES_UPDATED' => 'Terms and conditions updated successfully ..',
+ 'R_SEARCH' => 'Advanced search',
+ 'SEARCH_FILES' => 'Search for files',
+ 'SEARCH_SUBMIT' => 'Search',
+ 'LAST_DOWN' => 'Last download',
+ 'WAS_B4' => 'Was before',
+ 'SEARCH_USERS' => 'Search for users',
+ 'R_IMG_CTRL' => 'Image control only',
+ 'ENABLE_USERFILE' => 'Enable users files',
+ 'R_EXTRA' => 'Extra Templates',
+ 'EX_HEADER_N' => 'Extra header ... which shows at the bottom of the original header',
+ 'EX_FOOTER_N' => 'Extra footer ... which shows at the top of the original footer',
+ 'UPDATE_EXTRA' => 'Update template',
+ 'EXTRA_UPDATED' => 'Template additions updated successfully',
+ 'R_STYLES' => 'Styles',
- 'NO_TPL_SHOOSED' => 'You did not select a template!',
+ 'NO_TPL_SHOOSED' => 'You did not select a template!',
- 'R_PLUGINS' => 'Plugins',
- 'ADD_NEW_PLUGIN' => 'Add plugin',
+ 'R_PLUGINS' => 'Plugins',
+ 'ADD_NEW_PLUGIN' => 'Add plugin',
- 'PLUGIN_DELETED' => 'Plugin deleted...',
- 'PLGUIN_DISABLED_ENABLED' => 'Plugin Enabled / Disabled',
- 'NO_PLUGINS' => 'No plugins found! You could start browsing plugins and installing them by clicking the tab "Kleeja Store" or upload a plugin file from the tab "Local Plugins".',
+ 'PLUGIN_DELETED' => 'Plugin deleted...',
+ 'PLGUIN_DISABLED_ENABLED' => 'Plugin Enabled / Disabled',
+ 'NO_PLUGINS' => 'No plugins found! You could start browsing plugins and installing them by clicking the tab "Kleeja Store" or upload a plugin file from the tab "Local Plugins".',
'NEW_PLUGIN_ADDED' => 'Plugin added ... ',
- 'PLUGIN_EXISTS_BEFORE' => 'This plugin exists before with same version or above, so no need to update it!.',
- 'R_CHECK_UPDATE' => 'Check for updates',
- 'ERROR_CHECK_VER' => 'Error: cannot get any update information at this moment , try again later !',
- 'UPDATE_KLJ_NOW' => 'You Have to update your version now!. visit Kleeja.com for more information',
- 'U_LAST_VER_KLJ' => 'You are using the latest version of Kleeja...',
- 'U_USE_PRE_RE' => 'You are using a Pre-release version, Click
here to report any bugs or exploits.',
- 'STYLE_IS_DEFAULT' => 'Default style',
- 'MAKE_AS_DEFAULT' => 'Set as default',
+ 'PLUGIN_EXISTS_BEFORE' => 'This plugin exists before with same version or above, so no need to update it!.',
+ 'R_CHECK_UPDATE' => 'Check for updates',
+ 'ERROR_CHECK_VER' => 'Error: cannot get any update information at this moment , try again later !',
+ 'UPDATE_KLJ_NOW' => 'You Have to update your version now!. visit Kleeja.com for more information',
+ 'U_LAST_VER_KLJ' => 'You are using the latest version of Kleeja...',
+ 'U_USE_PRE_RE' => 'You are using a Pre-release version, Click
here to report any bugs or exploits.',
+ 'STYLE_IS_DEFAULT' => 'Default style',
+ 'MAKE_AS_DEFAULT' => 'Set as default',
- 'STYLE_NOW_IS_DEFAULT' => 'The style "%s" was set as default',
+ 'STYLE_NOW_IS_DEFAULT' => 'The style "%s" was set as default',
- 'UPDATE_NOW_S' => 'You are using an old version of Kleeja. Update Now. Your current version is %1$s and the latest one is %2$s',
- 'ADD_NEW_EXT' => 'Add a new extension',
- 'ADD_NEW_EXT_EXP' => 'Type a file extension to add it to this group (for example: doc)',
- 'EMPTY_EXT_FIELD' => 'The extension field is blank!',
- 'NEW_EXT_ADD' => 'New extension added. ',
- 'NEW_EXT_EXISTS_B4' => 'The extension %s already exists!.',
- 'NOT_SAFE_FILE' => 'The file "%s" does not look safe !',
- 'CONFIG_WRITEABLE' => 'The file config.php is currently writable, We strongly recommend that it be changed to 640 or at least 644.',
- 'USERS_NOT_NORMAL_SYS' => 'The current users system is not the normal one, which means that the current users cannot be edited from here but from the script that was integrated with Kleeja, those users use the normal membership system.',
- 'DIMENSIONS_THMB' => 'Thumbs dimensions',
- 'ADMIN_DELETE_FILE_OK' => 'Done !',
- 'ADMIN_DELETE_FILES' => 'Delete all user files',
+ 'UPDATE_NOW_S' => 'You are using an old version of Kleeja. Update Now. Your current version is %1$s and the latest one is %2$s',
+ 'ADD_NEW_EXT' => 'Add a new extension',
+ 'ADD_NEW_EXT_EXP' => 'Type a file extension to add it to this group (for example: doc)',
+ 'EMPTY_EXT_FIELD' => 'The extension field is blank!',
+ 'NEW_EXT_ADD' => 'New extension added. ',
+ 'NEW_EXT_EXISTS_B4' => 'The extension %s already exists!.',
+ 'NOT_SAFE_FILE' => 'The file "%s" does not look safe !',
+ 'CONFIG_WRITEABLE' => 'The file config.php is currently writable, We strongly recommend that it be changed to 640 or at least 644.',
+ 'USERS_NOT_NORMAL_SYS' => 'The current users system is not the normal one, which means that the current users cannot be edited from here but from the script that was integrated with Kleeja, those users use the normal membership system.',
+ 'DIMENSIONS_THMB' => 'Thumbs dimensions',
+ 'ADMIN_DELETE_FILE_OK' => 'Done !',
+ 'ADMIN_DELETE_FILES' => 'Delete all user files',
- 'BCONVERTER' => 'Byte Converter',
- 'NO_HTACCESS_DIR_UP' => 'No .htaccess file was found in "%s" folder, Which means if malicious codes were injected a hacker can do damage to your website!',
- 'NO_HTACCESS_DIR_UP_THUMB' => 'No .htaccess file was found in Thumbs folder "%s", Which means if malicious codes were injected a hacker can do damage to your website!',
- 'COOKIE_DOMAIN' => 'Cookie domain',
- 'COOKIE_NAME' => 'Cookie prefix',
- 'COOKIE_PATH' => 'Cookie path',
- 'COOKIE_SECURE' => 'Cookie secure',
- #'ADMINISTRATORS' => 'Administrators',
- 'DELETEALLRES' => 'Delete all results',
- 'ADMIN_DELETE_FILES_OK' => 'File %s successfully deleted',
- 'ADMIN_DELETE_FILES_NOF' => 'No files to delete',
- 'NOT_EXSIT_USER' => 'Sorry, the user you are looking for does not exist in our database... perhaps you are trying to reach a deleted membership !!!!',
- 'ADMIN_DELETE_NO_FILE' => 'This user has no files to delete ! .',
- 'CONFIG_KLJ_MENUS_OTHER' => 'Other settings',
- 'CONFIG_KLJ_MENUS_GENERAL' => 'General settings',
- 'CONFIG_KLJ_MENUS_ALL' => 'Display all the settings',
- 'CONFIG_KLJ_MENUS_UPLOAD' => 'Upload settings',
- 'CONFIG_KLJ_MENUS_INTERFACE'=> 'Interface and design settings',
- 'CONFIG_KLJ_MENUS_ADVANCED' => 'Advanced settings',
- 'DELF_CAUTION' => '
Caution: might be dangerous when using small numbers or using direct form of URLS.',
- 'PLUGIN_N_CMPT_KLJ' => 'This plugin is not compatible with your current version of Kleeja.',
- 'PHPINI_FILESIZE_SMALL' => 'Maximum file size allowed for your service is "%1$s" while
upload_max_filesize in your hosts PHP settings is set to "%2$s", update it so that your chosen size can be applied.',
- 'PHPINI_MPOSTSIZE_SMALL' => 'You have allowed the upload of "%1$s" files at once, You need to use a bigger value for
post_max_size in your servers PHP settings, something like "%2$s" for a better performance.',
- 'NUMPER_REPORT' => 'Number of reports',
- 'NO_UP_CHANGE_S' => 'No changes ...',
- 'ADD_HEADER_EXTRA' => 'Extra Header',
- 'ADD_FOOTER_EXTRA' => 'Extra footer',
- 'ADMIN_USING_IE6' => 'You are using an outdated IE browser, Please update your browser or use FireFox now!',
+ 'BCONVERTER' => 'Byte Converter',
+ 'NO_HTACCESS_DIR_UP' => 'No .htaccess file was found in "%s" folder, Which means if malicious codes were injected a hacker can do damage to your website!',
+ 'NO_HTACCESS_DIR_UP_THUMB' => 'No .htaccess file was found in Thumbs folder "%s", Which means if malicious codes were injected a hacker can do damage to your website!',
+ 'COOKIE_DOMAIN' => 'Cookie domain',
+ 'COOKIE_NAME' => 'Cookie prefix',
+ 'COOKIE_PATH' => 'Cookie path',
+ 'COOKIE_SECURE' => 'Cookie secure',
+ //'ADMINISTRATORS' => 'Administrators',
+ 'DELETEALLRES' => 'Delete all results',
+ 'ADMIN_DELETE_FILES_OK' => 'File %s successfully deleted',
+ 'ADMIN_DELETE_FILES_NOF' => 'No files to delete',
+ 'NOT_EXSIT_USER' => 'Sorry, the user you are looking for does not exist in our database... perhaps you are trying to reach a deleted membership !!!!',
+ 'ADMIN_DELETE_NO_FILE' => 'This user has no files to delete ! .',
+ 'CONFIG_KLJ_MENUS_OTHER' => 'Other settings',
+ 'CONFIG_KLJ_MENUS_GENERAL' => 'General settings',
+ 'CONFIG_KLJ_MENUS_ALL' => 'Display all the settings',
+ 'CONFIG_KLJ_MENUS_UPLOAD' => 'Upload settings',
+ 'CONFIG_KLJ_MENUS_INTERFACE'=> 'Interface and design settings',
+ 'CONFIG_KLJ_MENUS_ADVANCED' => 'Advanced settings',
+ 'DELF_CAUTION' => '
Caution: might be dangerous when using small numbers or using direct form of URLS.',
+ 'PLUGIN_N_CMPT_KLJ' => 'This plugin is not compatible with your current version of Kleeja.',
+ 'PHPINI_FILESIZE_SMALL' => 'Maximum file size allowed for your service is "%1$s" while
upload_max_filesize in your hosts PHP settings is set to "%2$s", update it so that your chosen size can be applied.',
+ 'PHPINI_MPOSTSIZE_SMALL' => 'You have allowed the upload of "%1$s" files at once, You need to use a bigger value for
post_max_size in your servers PHP settings, something like "%2$s" for a better performance.',
+ 'NUMPER_REPORT' => 'Number of reports',
+ 'NO_UP_CHANGE_S' => 'No changes ...',
+ 'ADD_HEADER_EXTRA' => 'Extra Header',
+ 'ADD_FOOTER_EXTRA' => 'Extra footer',
+ 'ADMIN_USING_IE6' => 'You are using an outdated IE browser, Please update your browser or use FireFox now!',
- 'T_CLEANING_FILES_NOW' => 'Deleting Un-downloaded files, The process could take a while depending on the size and number of the files.',
- 'HOW_UPDATE_KLEEJA' => 'How to update Kleeja?',
- 'HOW_UPDATE_KLEEJA_STEP1' => 'Visit the official website
Kleeja.com then go to the Download page and download the latest version of the script, or download an upgrade copy if available.',
- 'HOW_UPDATE_KLEEJA_STEP2' => 'Unzip the file and upload it to your website to replace the old files with the new ones
Except config.php and uploads folder.',
- 'HOW_UPDATE_KLEEJA_STEP3' => 'When done, go to the following URL to update the database.',
- 'DEPEND_ON_NO_STYLE_ERR' => 'This style is based on the "%s" style which you dont seem to have',
- 'PLUGINS_REQ_NO_STYLE_ERR' => 'This style requires the [ s% ] plugin(s), install it/them and try again.',
- 'KLJ_VER_NO_STYLE_ERR' => 'This style requires Kleeja version %s or above',
- 'STYLE_DEPEND_ON' => 'Based on',
- 'MESSAGE_NONE' => 'No messages yet ...',
- 'KLEEJA_TEAM' => 'Kleeja development team',
- 'ERR_SEND_MAIL' => 'Mail sending error, try again later !',
- 'FIND_IP_FILES' => 'Found',
- 'ALPHABETICAL_ORDER_FILES' => 'Sort files by alphabetical order',
- 'ORDER_SIZE' => 'Sort files by size from largest to smallest',
- 'ORDER_TOTAL_DOWNLOADS' => 'Sort files by number of downloads',
- 'LIVEXTS' => 'Live Extensions (No waiting page)',
- 'COMMA_X' => '
separate by comma ( , )
',
- 'NO_SEARCH_WORD' => 'You didn\'t type anything in the search form !',
- 'USERSECTOUPLOAD' => 'The seconds between each upload process',
- 'ADM_UNWANTED_FILES' => 'You seem to have upgraded from a previous version, and because some file names are different now, you\'ll notice duplicated buttons in control panel. br> to solve this, remove all the files in "includes/adm" directory and re-upload them.',
- 'HTML_URLS_ENABLED_NO_HTCC' => 'you have enabled the rewrite URLs, but you seem to have forgot to rename .htaccess.txt in Kleeja\'s root directory to ".htaccess", however, if you don\'t know what I\'m talking about, go ask for Kleeja\'s support or simply disable the rewrite urls feature.',
+ 'T_CLEANING_FILES_NOW' => 'Deleting Un-downloaded files, The process could take a while depending on the size and number of the files.',
+ 'HOW_UPDATE_KLEEJA' => 'How to update Kleeja?',
+ 'HOW_UPDATE_KLEEJA_STEP1' => 'Visit the official website
Kleeja.com then go to the Download page and download the latest version of the script, or download an upgrade copy if available.',
+ 'HOW_UPDATE_KLEEJA_STEP2' => 'Unzip the file and upload it to your website to replace the old files with the new ones
Except config.php and uploads folder.',
+ 'HOW_UPDATE_KLEEJA_STEP3' => 'When done, go to the following URL to update the database.',
+ 'DEPEND_ON_NO_STYLE_ERR' => 'This style is based on the "%s" style which you dont seem to have',
+ 'PLUGINS_REQ_NO_STYLE_ERR' => 'This style requires the [ s% ] plugin(s), install it/them and try again.',
+ 'KLJ_VER_NO_STYLE_ERR' => 'This style requires Kleeja version %s or above',
+ 'STYLE_DEPEND_ON' => 'Based on',
+ 'MESSAGE_NONE' => 'No messages yet ...',
+ 'KLEEJA_TEAM' => 'Kleeja development team',
+ 'ERR_SEND_MAIL' => 'Mail sending error, try again later !',
+ 'FIND_IP_FILES' => 'Found',
+ 'ALPHABETICAL_ORDER_FILES' => 'Sort files by alphabetical order',
+ 'ORDER_SIZE' => 'Sort files by size from largest to smallest',
+ 'ORDER_TOTAL_DOWNLOADS' => 'Sort files by number of downloads',
+ 'LIVEXTS' => 'Live Extensions (No waiting page)',
+ 'COMMA_X' => '
separate by comma ( , )
',
+ 'NO_SEARCH_WORD' => 'You didn\'t type anything in the search form !',
+ 'USERSECTOUPLOAD' => 'The seconds between each upload process',
+ 'ADM_UNWANTED_FILES' => 'You seem to have upgraded from a previous version, and because some file names are different now, you\'ll notice duplicated buttons in control panel. br> to solve this, remove all the files in "includes/adm" directory and re-upload them.',
+ 'HTML_URLS_ENABLED_NO_HTCC' => 'you have enabled the rewrite URLs, but you seem to have forgot to rename .htaccess.txt in Kleeja\'s root directory to ".htaccess", however, if you don\'t know what I\'m talking about, go ask for Kleeja\'s support or simply disable the rewrite urls feature.',
'PLUGIN_CONFIRM_ADD' => 'Caution: the plugins make changes to the script, and they could be harmful at times. so be sure to check the plugin source and make sure that it is an official Kleeja plugin.',
- 'LOADING' => 'Loading',
- 'WELCOME' => 'Welcome',
- 'ENABLE_CAPTCHA' => 'Enable Captcha in Kleeja',
- 'NO_THUMB_FOLDER' => 'It seems you enabled Thumbs but in same time the folder %s does not exist! create it.',
- 'DELETE_EARLIER_30DAYS' => 'Delete items older than 30 days',
- 'DELETE_ALL' => 'Delete all',
- 'DELETE_PROCESS_QUEUED' => 'The delete process has been added to the waiting list to execute it gradually to reduce the load.',
- 'DELETE_PROCESS_IN_WORK' => 'Currently, the delete process is executing ...',
- 'SHOW_FROM_24H' => 'Show past 24 hours',
- 'THUMB_DIS_LONGTIME' => 'Thumbs are disabled, this will force Kleeja to resize every images to be small here, and cost you time and bandwidth!. Enable thumbs now.',
+ 'LOADING' => 'Loading',
+ 'WELCOME' => 'Welcome',
+ 'ENABLE_CAPTCHA' => 'Enable Captcha in Kleeja',
+ 'NO_THUMB_FOLDER' => 'It seems you enabled Thumbs but in same time the folder %s does not exist! create it.',
+ 'DELETE_EARLIER_30DAYS' => 'Delete items older than 30 days',
+ 'DELETE_ALL' => 'Delete all',
+ 'DELETE_PROCESS_QUEUED' => 'The delete process has been added to the waiting list to execute it gradually to reduce the load.',
+ 'DELETE_PROCESS_IN_WORK' => 'Currently, the delete process is executing ...',
+ 'SHOW_FROM_24H' => 'Show past 24 hours',
+ 'THUMB_DIS_LONGTIME' => 'Thumbs are disabled, this will force Kleeja to resize every images to be small here, and cost you time and bandwidth!. Enable thumbs now.',
- 'R_GROUPS' => 'Groups Management',
- 'ESSENTIAL_GROUPS' => 'Fundamental Groups',
- 'CUSTOM_GROUPS' => 'User-defined Groups',
- 'EDIT_DATA' => 'Edit data',
- 'EDIT_ACL' => 'Edit Permissions',
- 'HE_CAN' => 'Can',
- 'HE_CAN_NOT' => 'Cannot',
- #ACLS roles
- 'ACLS_ENTER_ACP' => 'Access Admin control panel',
- 'ACLS_ACCESS_FILEUSER' => 'Access his own files\' folder',
+ 'R_GROUPS' => 'Groups Management',
+ 'ESSENTIAL_GROUPS' => 'Fundamental Groups',
+ 'CUSTOM_GROUPS' => 'User-defined Groups',
+ 'EDIT_DATA' => 'Edit data',
+ 'EDIT_ACL' => 'Edit Permissions',
+ 'HE_CAN' => 'Can',
+ 'HE_CAN_NOT' => 'Cannot',
+ //ACLS roles
+ 'ACLS_ENTER_ACP' => 'Access Admin control panel',
+ 'ACLS_ACCESS_FILEUSER' => 'Access his own files\' folder',
'ACLS_ACCESS_FILEUSERS' => 'Browse any user files\' folder',
- 'ACLS_ACCESS_CALL' => 'Access "call us" page',
- 'ACLS_ACCESS_REPORT' => 'View "Report" page',
- 'ACLS_ACCESS_STATS' => 'Access "statistics" page',
+ 'ACLS_ACCESS_CALL' => 'Access "call us" page',
+ 'ACLS_ACCESS_REPORT' => 'View "Report" page',
+ 'ACLS_ACCESS_STATS' => 'Access "statistics" page',
- 'GROUP_IS_DEFAULT' => 'This group is default at registeration',
- 'ADD_NEW_GROUP' => 'Add new group',
- 'DELETE_GROUP' => 'Delete group',
- 'GROUP_NAME' => 'Group name',
- 'COPY_FROM' => 'Copy from',
- 'USERNAME_NOT_YOU' => 'Not you ? %1$slogout%2$s',
- 'DEFAULT_GROUP' => 'The default group',
- 'G_USERS_MOVE_TO' => 'Move the group users to',
- 'TAKEN_NAMES' => 'This name is taken. Choose another name',
+ 'GROUP_IS_DEFAULT' => 'This group is default at registeration',
+ 'ADD_NEW_GROUP' => 'Add new group',
+ 'DELETE_GROUP' => 'Delete group',
+ 'GROUP_NAME' => 'Group name',
+ 'COPY_FROM' => 'Copy from',
+ 'USERNAME_NOT_YOU' => 'Not you ? %1$slogout%2$s',
+ 'DEFAULT_GROUP' => 'The default group',
+ 'G_USERS_MOVE_TO' => 'Move the group users to',
+ 'TAKEN_NAMES' => 'This name is taken. Choose another name',
- 'GROUP_DELETED' => 'Group "%1$s" has been deleted and its user moved to group "%2$s".',
- 'NO_MOVE_SAME_GRP' => 'You can not move the users to the same group!.',
- 'DEFAULT_GRP_NO_DEL' => 'You can not delete this group becuase it is the current default group, change the default group then try to delete it!.',
- 'GROUP_ADDED' => 'Group "%s" has been added successfully ...',
- 'SEARCH4FILES_BYIP' => 'Search files via selected IP',
- 'SEARCH4FILES_BYUSER' => 'Search files for this user',
- 'USER_DELETED' => 'User has been deleted successfully ...',
- 'USER_ADDED' => 'User has been added successfully ...',
- 'DIRECT_FILE_NOTE' => 'This is a Direct file. Direct files have no stats.',
- 'IMAGEFOLDER' => 'Folder of Live links feature',
- 'IMAGEFOLDEREXTS' => 'Files\' Extensions of Live links feature (No waiting page of these files, and has separated folder) (ex: swf, mp4, mp3) ',
- 'IMAGEFOLDERE' => 'Change file name',
- 'LAST_VIEW' => 'Last viewing',
- 'HURRY_HURRY' => 'Quick Actions',
- 'RESYNC' => 're-sync',
- 'DEL_CACHE' => 'Delete Cache (temporary files)',
- 'SYNCING' => 'Sync\'ing is going on : (%s), wait ...',
- 'SYNCING_DONE' => 'Sync\'ing is done for (%s).',
- 'WHY_SYNCING' => 'Kleeja uses auto increment to not perform calculation of total numbers everytime, this rises Kleeja performance. Use this after upgrade or when Kleeja asks you to.',
- 'REPAIR_DB_TABLES' => 'Repair Data base tables',
- 'NO_RESULT_USE_SYNC' => 'There are no results, if you just installed Kleeja then that ok.
If you just made an upgrade, then go to "Mentenance page" then do a "re-sync" for files or images.',
+ 'GROUP_DELETED' => 'Group "%1$s" has been deleted and its user moved to group "%2$s".',
+ 'NO_MOVE_SAME_GRP' => 'You can not move the users to the same group!.',
+ 'DEFAULT_GRP_NO_DEL' => 'You can not delete this group becuase it is the current default group, change the default group then try to delete it!.',
+ 'GROUP_ADDED' => 'Group "%s" has been added successfully ...',
+ 'SEARCH4FILES_BYIP' => 'Search files via selected IP',
+ 'SEARCH4FILES_BYUSER' => 'Search files for this user',
+ 'USER_DELETED' => 'User has been deleted successfully ...',
+ 'USER_ADDED' => 'User has been added successfully ...',
+ 'DIRECT_FILE_NOTE' => 'This is a Direct file. Direct files have no stats.',
+ 'IMAGEFOLDER' => 'Folder of Live links feature',
+ 'IMAGEFOLDEREXTS' => 'Files\' Extensions of Live links feature (No waiting page of these files, and has separated folder) (ex: swf, mp4, mp3) ',
+ 'IMAGEFOLDERE' => 'Change file name',
+ 'LAST_VIEW' => 'Last viewing',
+ 'HURRY_HURRY' => 'Quick Actions',
+ 'RESYNC' => 're-sync',
+ 'DEL_CACHE' => 'Delete Cache (temporary files)',
+ 'SYNCING' => 'Sync\'ing is going on : (%s), wait ...',
+ 'SYNCING_DONE' => 'Sync\'ing is done for (%s).',
+ 'WHY_SYNCING' => 'Kleeja uses auto increment to not perform calculation of total numbers everytime, this rises Kleeja performance. Use this after upgrade or when Kleeja asks you to.',
+ 'REPAIR_DB_TABLES' => 'Repair Data base tables',
+ 'NO_RESULT_USE_SYNC' => 'There are no results, if you just installed Kleeja then that ok.
If you just made an upgrade, then go to "Mentenance page" then do a "re-sync" for files or images.',
'ADVICE_CRON_LINK' => 'It\'s recommended to add Kleeja queue link as a Cron job every hour or two hours',
'UPLOAD_LOCAL_PC' => 'Upload from Your Computer',
'NO_ZIP_ARCHIVE' => 'ZipArchive is not installed on your server, it\'s required.',
'EXTRACT_ZIP_FAILED' => 'We encounter a problem while extracting this archive file, make sure it\'s a valid zip file, and that "%s" folder is writable',
'NO_PROBLEM_AFTER_ZIP' => 'The file has been extracted successfully and it\'s ready to be enabled',
- 'SESSION_ENDED' => 'Session has ended, do you want to login again?',
- //3.0.3
- 'CUSTOMIZATION' => 'Customization',
- 'SHOW' => 'Show',
- 'HIDE' => 'Hide',
- 'VIEW' => 'View',
- 'INSTALL' => 'Install',
- 'CLOSE' => 'Close',
- 'STATS_BOXES' => 'Stats Boxes',
- 'PLUGIN_UPDATED' => 'Plugin "%s" has been updated successfully ..',
- 'PLUGIN_DOWNLOADED' => 'Plugin "%s" has been downloaded successfully ..',
- 'PLUGIN_FILE_NOT_FOUND' => 'The plugin file is missing!',
- 'PLUGIN_REMOTE_FILE_MISSING'=> 'The plugin "%s" is not on Kleeja remote server!',
- 'PLUGINS_SERVER_ERROR' => 'We encountered an error while connecting to the plugins remote server ...',
- 'INSTALLED_PLUGINS' => 'Installed Plugins',
- 'LOCAL_PLUGINS' => 'Local Plugins',
- 'KLEEJA_STORE' => 'Kleeja Store',
- 'KLJ_VER_NO_PLUGIN' => 'This plugin can works on Kleeja version %1$s up to version %2$s.',
- 'VERSION' => 'Version',
- 'DEVELOPER' => 'Developer',
- 'ALL_PLUGINS_UPDATED' => 'There are no plugins that require an update currently...',
-);
+ 'SESSION_ENDED' => 'Session has ended, do you want to login again?',
+ //3.0.3
+ 'CUSTOMIZATION' => 'Customization',
+ 'SHOW' => 'Show',
+ 'HIDE' => 'Hide',
+ 'VIEW' => 'View',
+ 'INSTALL' => 'Install',
+ 'CLOSE' => 'Close',
+ 'STATS_BOXES' => 'Stats Boxes',
+ 'PLUGIN_UPDATED' => 'Plugin "%s" has been updated successfully ..',
+ 'PLUGIN_DOWNLOADED' => 'Plugin "%s" has been downloaded successfully ..',
+ 'PLUGIN_FILE_NOT_FOUND' => 'The plugin file is missing!',
+ 'PLUGIN_REMOTE_FILE_MISSING'=> 'The plugin "%s" is not on Kleeja remote server!',
+ 'PLUGINS_SERVER_ERROR' => 'We encountered an error while connecting to the plugins remote server ...',
+ 'INSTALLED_PLUGINS' => 'Installed Plugins',
+ 'LOCAL_PLUGINS' => 'Local Plugins',
+ 'KLEEJA_STORE' => 'Kleeja Store',
+ 'KLJ_VER_NO_PLUGIN' => 'This plugin can works on Kleeja version %1$s up to version %2$s.',
+ 'VERSION' => 'Version',
+ 'DEVELOPER' => 'Developer',
+ 'ALL_PLUGINS_UPDATED' => 'There are no plugins that require an update currently...',
+];
diff --git a/lang/en/common.php b/lang/en/common.php
index 559b85a..5f48aca 100755
--- a/lang/en/common.php
+++ b/lang/en/common.php
@@ -4,260 +4,260 @@
* Locale: en, English
*/
-return array(
- 'DIR' => 'ltr',
- 'LANG_SMALL_NAME' => 'en-us',
+return [
+ 'DIR' => 'ltr',
+ 'LANG_SMALL_NAME' => 'en-us',
- 'HOME' => 'Home',
- 'INDEX' => 'Homepage',
- 'SITE_CLOSED' => 'The website is closed.',
- 'STOP_FOR_SIZE' => 'The service is suspended.',
- 'SIZES_EXCCEDED' => 'We have ran out of space ... we will be back soon.',
- 'SAFE_CODE' => 'Enable safety code for downloads',
- 'LAST_VISIT' => 'Last visit',
- 'FLS_LST_VST_SEARCH' => 'Show files since',
- 'IMG_LST_VST_SEARCH' => 'Show images since',
- 'NEXT' => 'Next »',
- 'PREV' => '« Previous',
- 'INFORMATION' => 'Instructions',
- 'WELCOME' => 'Welcome',
- 'KLEEJA_VERSION' => 'Kleeja version',
- 'NUMBER_ONLINE' => 'registered online users',
- 'USERS_SYSTEM' => 'Users System',
- 'ERROR_NAVIGATATION' => 'Redirection Error ..',
- 'LOGIN' => 'Login',
- 'USERNAME' => 'User name',
- 'PASSWORD' => 'Password',
- 'LOSS_PASSWORD' => 'Forgot Password?',
- 'LOGINED_BEFORE' => 'You are already logged in.',
- 'LOGOUT' => 'Logout ',
- 'EMPTY_FIELDS' => 'Error ... Missing Fields!',
- 'LOGIN_SUCCESFUL' => 'You have logged in successfully.',
- 'LOGIN_ERROR' => 'Error ... cannot login!',
- 'REGISTER_CLOSED' => 'Sorry, the registration is currently closed.',
- 'PLACE_NO_YOU' => 'Restricted Area',
- 'NOT_EXSIT_USER' => 'The requested user doesn\'t exist, or it has been deleted.',
- 'REGISTERED_BEFORE' => 'already',
- 'REGISTER' => 'Register',
- 'EMAIL' => 'Email address',
- 'VERTY_CODE' => 'Security code',
- 'WRONG_EMAIL' => 'Incorrect email address!',
- 'WRONG_NAME' => 'The username must be 4 to 25 characters, and without spaces or special chars (only _- are allowed)!',
- 'EXIST_NAME' => 'Someone has already registered with this username!',
- 'EXIST_EMAIL' => 'Someone with this email address has already registered!',
- 'WRONG_VERTY_CODE' => 'Incorrect security code!',
- 'REGISTER_SUCCESFUL' => 'Thank you for registering.ً',
- 'LOGOUT_SUCCESFUL' => 'Logged out successfully.',
- 'LOGOUT_ERROR' => 'Logout Error!',
- 'DEL_SELECTED' => 'Delete selected',
- 'DEL_ALL' => 'Delete all my files',
+ 'HOME' => 'Home',
+ 'INDEX' => 'Homepage',
+ 'SITE_CLOSED' => 'The website is closed.',
+ 'STOP_FOR_SIZE' => 'The service is suspended.',
+ 'SIZES_EXCCEDED' => 'We have ran out of space ... we will be back soon.',
+ 'SAFE_CODE' => 'Enable safety code for downloads',
+ 'LAST_VISIT' => 'Last visit',
+ 'FLS_LST_VST_SEARCH' => 'Show files since',
+ 'IMG_LST_VST_SEARCH' => 'Show images since',
+ 'NEXT' => 'Next »',
+ 'PREV' => '« Previous',
+ 'INFORMATION' => 'Instructions',
+ 'WELCOME' => 'Welcome',
+ 'KLEEJA_VERSION' => 'Kleeja version',
+ 'NUMBER_ONLINE' => 'registered online users',
+ 'USERS_SYSTEM' => 'Users System',
+ 'ERROR_NAVIGATATION' => 'Redirection Error ..',
+ 'LOGIN' => 'Login',
+ 'USERNAME' => 'User name',
+ 'PASSWORD' => 'Password',
+ 'LOSS_PASSWORD' => 'Forgot Password?',
+ 'LOGINED_BEFORE' => 'You are already logged in.',
+ 'LOGOUT' => 'Logout ',
+ 'EMPTY_FIELDS' => 'Error ... Missing Fields!',
+ 'LOGIN_SUCCESFUL' => 'You have logged in successfully.',
+ 'LOGIN_ERROR' => 'Error ... cannot login!',
+ 'REGISTER_CLOSED' => 'Sorry, the registration is currently closed.',
+ 'PLACE_NO_YOU' => 'Restricted Area',
+ 'NOT_EXSIT_USER' => 'The requested user doesn\'t exist, or it has been deleted.',
+ 'REGISTERED_BEFORE' => 'already',
+ 'REGISTER' => 'Register',
+ 'EMAIL' => 'Email address',
+ 'VERTY_CODE' => 'Security code',
+ 'WRONG_EMAIL' => 'Incorrect email address!',
+ 'WRONG_NAME' => 'The username must be 4 to 25 characters, and without spaces or special chars (only _- are allowed)!',
+ 'EXIST_NAME' => 'Someone has already registered with this username!',
+ 'EXIST_EMAIL' => 'Someone with this email address has already registered!',
+ 'WRONG_VERTY_CODE' => 'Incorrect security code!',
+ 'REGISTER_SUCCESFUL' => 'Thank you for registering.ً',
+ 'LOGOUT_SUCCESFUL' => 'Logged out successfully.',
+ 'LOGOUT_ERROR' => 'Logout Error!',
+ 'DEL_SELECTED' => 'Delete selected',
+ 'DEL_ALL' => 'Delete all my files',
'ALL_DELETED' => 'All files has been deleted',
'NO_FILES_DELETE' => 'There is no files to delete them',
- 'FILES_UPDATED' => 'File updated successfully.',
- 'PUBLIC_USER_FILES' => 'User files' folder',
- 'FILEUSER' => 'files' folder',
- 'YOUR_FILEUSER' => 'Your folder',
- 'COPY_AND_GET_DUD' => 'Copy URL and give it to your friends To see your files ',
- 'CLOSED_FEATURE' => 'Closed feature',
- 'USERFILE_CLOSED' => 'Users folders feature is closed !',
- 'PFILE_4_FORUM' => 'Go to the users cp to change your details',
- 'USER_PLACE' => 'Users Area',
- 'PROFILE' => 'Profile',
- 'EDIT_U_DATA' => 'Update your details',
- 'PASS_ON_CHANGE' => 'Edit Password',
- 'OLD' => 'Old',
- 'NEW' => 'New',
- 'NEW_AGAIN' => 'Confirm',
- 'UPDATE' => 'Update',
- 'PASS_O_PASS2' => 'The old password is required, and enter the new password carefully.',
- 'DATA_CHANGED_O_LO' => 'Your details have been updated.',
- 'CURRENT_PASS_WRONG' => 'Current password is wrong, it must be written correctly to change your data!',
- 'DATA_CHANGED_NO' => 'No new details entered.',
- 'LOST_PASS_FORUM' => 'Go to the forum to change your details ?',
- 'GET_LOSTPASS' => 'Get your password',
- 'E_GET_LOSTPASS' => 'Enter your email to receive your password.',
- 'WRONG_DB_EMAIL' => 'The specified email address cannot be found in our database!',
- 'GET_LOSTPASS_MSG' => "You have asked for your password to be reset but, to avoid spam click on the link below for confirmation : \r\n %1\$s \r\n New Password : %2\$s",
- 'CANT_SEND_NEWPASS' => 'Error... the new password could not be sent!',
- 'OK_SEND_NEWPASS' => 'We have sent you the new password',
- 'OK_APPLY_NEWPASS' => 'New password set. you can now login to your account.',
- 'GUIDE' => 'Allowed Extensions',
- 'GUIDE_EXP' => 'Allowed extensions & Sizes',
- 'EXT' => 'Extension',
- 'SIZE' => 'Size',
- 'REPORT' => 'Report',
- 'YOURNAME' => 'Your name',
- 'URL' => 'Link',
- 'REASON' => 'Reason',
- 'NO_ID' => 'No file selected ..!!',
- 'NO_ME300RES' => 'The Reason field cannot be more than 300 characters!!',
- 'THNX_REPORTED' => 'We have received your report, Thank you.',
- 'RULES' => 'Terms',
- 'NO_RULES_NOW' => 'No terms have been specified currently.',
- 'E_RULES' => 'Below are the terms of our service',
- 'CALL' => 'Contact Us',
- 'SEND' => 'Send',
- 'TEXT' => 'Comments',
- 'NO_ME300TEXT' => 'The Comments field cannot be more than 300 characters!!',
- 'THNX_CALLED' => 'Sent ... you will get a reply from us as soon as possible.',
- 'NO_DEL_F' => 'Sorry, file deletion URL feature is disabled by admin',
- 'E_DEL_F' => 'File deletion URL',
- 'WRONG_URL' => 'There is something wrong with the URL ..',
- 'DELETE_SUCCESFUL' => 'Deleted successfully.',
- 'STATS' => 'Statistics',
- 'STATS_CLOSED' => 'The statistics page is closed by the administrator.',
- 'FILES_ST' => 'Uploaded',
- 'FILE' => 'File',
- 'IMAGE' => 'Image',
- 'USERS_ST' => 'Total Users',
- 'USER' => 'user',
- 'SIZES_ST' => 'Total size of uploaded files',
- 'LSTDELST' => 'Last check for un-downloaded (inactive) files',
+ 'FILES_UPDATED' => 'File updated successfully.',
+ 'PUBLIC_USER_FILES' => 'User files' folder',
+ 'FILEUSER' => 'files' folder',
+ 'YOUR_FILEUSER' => 'Your folder',
+ 'COPY_AND_GET_DUD' => 'Copy URL and give it to your friends To see your files ',
+ 'CLOSED_FEATURE' => 'Closed feature',
+ 'USERFILE_CLOSED' => 'Users folders feature is closed !',
+ 'PFILE_4_FORUM' => 'Go to the users cp to change your details',
+ 'USER_PLACE' => 'Users Area',
+ 'PROFILE' => 'Profile',
+ 'EDIT_U_DATA' => 'Update your details',
+ 'PASS_ON_CHANGE' => 'Edit Password',
+ 'OLD' => 'Old',
+ 'NEW' => 'New',
+ 'NEW_AGAIN' => 'Confirm',
+ 'UPDATE' => 'Update',
+ 'PASS_O_PASS2' => 'The old password is required, and enter the new password carefully.',
+ 'DATA_CHANGED_O_LO' => 'Your details have been updated.',
+ 'CURRENT_PASS_WRONG' => 'Current password is wrong, it must be written correctly to change your data!',
+ 'DATA_CHANGED_NO' => 'No new details entered.',
+ 'LOST_PASS_FORUM' => 'Go to the forum to change your details ?',
+ 'GET_LOSTPASS' => 'Get your password',
+ 'E_GET_LOSTPASS' => 'Enter your email to receive your password.',
+ 'WRONG_DB_EMAIL' => 'The specified email address cannot be found in our database!',
+ 'GET_LOSTPASS_MSG' => "You have asked for your password to be reset but, to avoid spam click on the link below for confirmation : \r\n %1\$s \r\n New Password : %2\$s",
+ 'CANT_SEND_NEWPASS' => 'Error... the new password could not be sent!',
+ 'OK_SEND_NEWPASS' => 'We have sent you the new password',
+ 'OK_APPLY_NEWPASS' => 'New password set. you can now login to your account.',
+ 'GUIDE' => 'Allowed Extensions',
+ 'GUIDE_EXP' => 'Allowed extensions & Sizes',
+ 'EXT' => 'Extension',
+ 'SIZE' => 'Size',
+ 'REPORT' => 'Report',
+ 'YOURNAME' => 'Your name',
+ 'URL' => 'Link',
+ 'REASON' => 'Reason',
+ 'NO_ID' => 'No file selected ..!!',
+ 'NO_ME300RES' => 'The Reason field cannot be more than 300 characters!!',
+ 'THNX_REPORTED' => 'We have received your report, Thank you.',
+ 'RULES' => 'Terms',
+ 'NO_RULES_NOW' => 'No terms have been specified currently.',
+ 'E_RULES' => 'Below are the terms of our service',
+ 'CALL' => 'Contact Us',
+ 'SEND' => 'Send',
+ 'TEXT' => 'Comments',
+ 'NO_ME300TEXT' => 'The Comments field cannot be more than 300 characters!!',
+ 'THNX_CALLED' => 'Sent ... you will get a reply from us as soon as possible.',
+ 'NO_DEL_F' => 'Sorry, file deletion URL feature is disabled by admin',
+ 'E_DEL_F' => 'File deletion URL',
+ 'WRONG_URL' => 'There is something wrong with the URL ..',
+ 'DELETE_SUCCESFUL' => 'Deleted successfully.',
+ 'STATS' => 'Statistics',
+ 'STATS_CLOSED' => 'The statistics page is closed by the administrator.',
+ 'FILES_ST' => 'Uploaded',
+ 'FILE' => 'File',
+ 'IMAGE' => 'Image',
+ 'USERS_ST' => 'Total Users',
+ 'USER' => 'user',
+ 'SIZES_ST' => 'Total size of uploaded files',
+ 'LSTDELST' => 'Last check for un-downloaded (inactive) files',
- 'LAST_1_H' => 'Statistics for the past hour',
- 'DOWNLAOD' => 'Download',
- 'DOWNLOAD' => 'Download',
- 'FILE_FOUNDED' => 'File has been found .. ',
- 'WAIT' => 'Please wait ..',
- 'CLICK_DOWN' => 'Click here to download',
- 'JS_MUST_ON' => 'Enable JavaScript in your browser!',
- 'FILE_INFO' => 'File Info',
- 'FILENAME' => 'File name',
- 'FILESIZE' => 'File size',
- 'FILETYPE' => 'File type',
- 'FILEDATE' => 'File date',
- 'LAST_DOWN' => 'Last download',
- 'FILEUPS' => 'Number of downloads',
- 'FILEREPORT' => 'Report violation of terms',
- 'FILE_NO_FOUNDED' => 'File cannot be found!',
- 'IMG_NO_FOUNDED' => 'Image cannot be found!',
- 'NOT_IMG' => 'This is not an image!',
- 'MORE_F_FILES' => 'This is the final limit for input fields',
- 'DOWNLOAD_F' => 'Upload Files',
- 'DOWNLOAD_T' => 'Download From Link',
- 'PAST_URL_HERE' => 'Paste Link Here',
- 'SAME_FILE_EXIST' => 'File "%s" already exist, Rename it and try again.',
- 'NO_FILE_SELECTED' => 'No file selected!',
- 'WRONG_F_NAME' => 'File name "%s" contains restricted characters.',
- 'FORBID_EXT' => 'Extension "%s" not supported.',
- 'SIZE_F_BIG' => 'File size of "%1$s" must be smaller than %2$s .',
+ 'LAST_1_H' => 'Statistics for the past hour',
+ 'DOWNLAOD' => 'Download',
+ 'DOWNLOAD' => 'Download',
+ 'FILE_FOUNDED' => 'File has been found .. ',
+ 'WAIT' => 'Please wait ..',
+ 'CLICK_DOWN' => 'Click here to download',
+ 'JS_MUST_ON' => 'Enable JavaScript in your browser!',
+ 'FILE_INFO' => 'File Info',
+ 'FILENAME' => 'File name',
+ 'FILESIZE' => 'File size',
+ 'FILETYPE' => 'File type',
+ 'FILEDATE' => 'File date',
+ 'LAST_DOWN' => 'Last download',
+ 'FILEUPS' => 'Number of downloads',
+ 'FILEREPORT' => 'Report violation of terms',
+ 'FILE_NO_FOUNDED' => 'File cannot be found!',
+ 'IMG_NO_FOUNDED' => 'Image cannot be found!',
+ 'NOT_IMG' => 'This is not an image!',
+ 'MORE_F_FILES' => 'This is the final limit for input fields',
+ 'DOWNLOAD_F' => 'Upload Files',
+ 'DOWNLOAD_T' => 'Download From Link',
+ 'PAST_URL_HERE' => 'Paste Link Here',
+ 'SAME_FILE_EXIST' => 'File "%s" already exist, Rename it and try again.',
+ 'NO_FILE_SELECTED' => 'No file selected!',
+ 'WRONG_F_NAME' => 'File name "%s" contains restricted characters.',
+ 'FORBID_EXT' => 'Extension "%s" not supported.',
+ 'SIZE_F_BIG' => 'File size of "%1$s" must be smaller than %2$s .',
- 'URL_F_DEL' => 'Link to delete the file',
- 'URL_F_THMB' => 'Thumbnail Link',
- 'URL_F_FILE' => 'File Link',
- 'URL_F_IMG' => 'Image Link',
- 'URL_F_BBC' => 'Forums Link (BBCode)',
- 'IMG_DOWNLAODED' => 'Image uploaded successfully',
- 'FILE_DOWNLAODED' => 'File uploaded successfully',
- 'CANT_UPLAOD' => 'Error: cannot upload file "%s" for UNKNOWN reason!',
- 'CANT_DIR_CRT' => 'The folder has not been created automatically, you must create it manually.',
- 'AGREE_RULES' => 'By clicking on the button below, you agree to %1$sService terms%2$s.',
- 'URL_CANT_GET' => 'error during get file from url..',
- 'ADMINCP' => 'Control Panel',
+ 'URL_F_DEL' => 'Link to delete the file',
+ 'URL_F_THMB' => 'Thumbnail Link',
+ 'URL_F_FILE' => 'File Link',
+ 'URL_F_IMG' => 'Image Link',
+ 'URL_F_BBC' => 'Forums Link (BBCode)',
+ 'IMG_DOWNLAODED' => 'Image uploaded successfully',
+ 'FILE_DOWNLAODED' => 'File uploaded successfully',
+ 'CANT_UPLAOD' => 'Error: cannot upload file "%s" for UNKNOWN reason!',
+ 'CANT_DIR_CRT' => 'The folder has not been created automatically, you must create it manually.',
+ 'AGREE_RULES' => 'By clicking on the button below, you agree to %1$sService terms%2$s.',
+ 'URL_CANT_GET' => 'error during get file from url..',
+ 'ADMINCP' => 'Control Panel',
- 'GO_BACK_BROWSER' => 'Go back',
- 'U_R_BANNED' => 'Your IP has been banned.',
- 'U_R_FLOODER' => 'it's anti-flood system ...',
- 'YES' => 'Yes',
- 'NO' => 'No',
- 'LANGUAGE' => 'Language',
- 'STYLE' => 'Style',
- 'NORMAL' => 'Normal',
- 'UPDATE_FILES' => 'Update Files',
- 'BY' => 'By',
- 'FILDER' => 'Folder',
- 'DELETE' => 'Delete',
- 'GUST' => 'Guest',
- 'NAME' => 'Name',
- 'CLICKHERE' => 'Click Here',
- 'TIME' => 'Time',
- 'IP' => 'IP',
- 'RETURN_HOME' => 'Return to home',
- 'TODAY' => 'Today',
- 'DAYS' => 'Days',
- 'BITE' => 'byte',
- 'SUBMIT' => 'Submit',
- 'EDIT' => 'Edit',
- 'DISABLE' => 'Disable',
- 'ENABLE' => 'Enable',
- 'OPEN' => 'Open',
- 'KILOBYTE' => 'Kilobyte',
- 'NOTE' => 'Note',
- 'WARN' => 'Warning',
- 'NOT_SAFE_FILE' => 'Kleeja found that the File "%s" is not safe!',
- 'ARE_YOU_SURE_DO_THIS' => 'Are you sure you want to do this?',
- 'SITE_FOR_MEMBER_ONLY' => 'This center is only for members, register or login to upload your files.',
- 'AUTH_INTEGRATION_N_UTF8_T' => '%s is not utf8',
- 'AUTH_INTEGRATION_N_UTF8' => '%s database must be utf8 to be integrated with Kleeja !.',
- 'SCRIPT_AUTH_PATH_WRONG' => 'Path of %s is not valid, change it now.',
- 'SHOW_MY_FILECP' => 'Show my files',
- 'PASS_CHANGE' => 'Change password',
- 'EDIT_U_AVATER' => 'ُEdit your avatar',
- 'EDIT_U_AVATER_LINK' => 'to change your avatar, go to this site %1$s" Click Here "s%2$s then register via a Email that you register in the defaultUploader site.',
- 'MOST_EVER_ONLINE' => 'Most registered users ever online was',
- 'ON' => 'on',
- 'LAST_REG' => 'newest member',
- 'NEW_USER' => 'New user',
+ 'GO_BACK_BROWSER' => 'Go back',
+ 'U_R_BANNED' => 'Your IP has been banned.',
+ 'U_R_FLOODER' => 'it's anti-flood system ...',
+ 'YES' => 'Yes',
+ 'NO' => 'No',
+ 'LANGUAGE' => 'Language',
+ 'STYLE' => 'Style',
+ 'NORMAL' => 'Normal',
+ 'UPDATE_FILES' => 'Update Files',
+ 'BY' => 'By',
+ 'FILDER' => 'Folder',
+ 'DELETE' => 'Delete',
+ 'GUST' => 'Guest',
+ 'NAME' => 'Name',
+ 'CLICKHERE' => 'Click Here',
+ 'TIME' => 'Time',
+ 'IP' => 'IP',
+ 'RETURN_HOME' => 'Return to home',
+ 'TODAY' => 'Today',
+ 'DAYS' => 'Days',
+ 'BITE' => 'byte',
+ 'SUBMIT' => 'Submit',
+ 'EDIT' => 'Edit',
+ 'DISABLE' => 'Disable',
+ 'ENABLE' => 'Enable',
+ 'OPEN' => 'Open',
+ 'KILOBYTE' => 'Kilobyte',
+ 'NOTE' => 'Note',
+ 'WARN' => 'Warning',
+ 'NOT_SAFE_FILE' => 'Kleeja found that the File "%s" is not safe!',
+ 'ARE_YOU_SURE_DO_THIS' => 'Are you sure you want to do this?',
+ 'SITE_FOR_MEMBER_ONLY' => 'This center is only for members, register or login to upload your files.',
+ 'AUTH_INTEGRATION_N_UTF8_T' => '%s is not utf8',
+ 'AUTH_INTEGRATION_N_UTF8' => '%s database must be utf8 to be integrated with Kleeja !.',
+ 'SCRIPT_AUTH_PATH_WRONG' => 'Path of %s is not valid, change it now.',
+ 'SHOW_MY_FILECP' => 'Show my files',
+ 'PASS_CHANGE' => 'Change password',
+ 'EDIT_U_AVATER' => 'ُEdit your avatar',
+ 'EDIT_U_AVATER_LINK' => 'to change your avatar, go to this site %1$s" Click Here "s%2$s then register via a Email that you register in the defaultUploader site.',
+ 'MOST_EVER_ONLINE' => 'Most registered users ever online was',
+ 'ON' => 'on',
+ 'LAST_REG' => 'newest member',
+ 'NEW_USER' => 'New user',
- 'COPYRIGHTS_X' => 'All rights reserved',
- 'CHECK_ALL' => 'Check all',
- 'BROSWERF' => 'User files',
- 'REMME' => 'Remember me',
- 'REMME_EXP' => 'Check this if your device isn\'t shared with others',
- 'HOUR' => 'an hour',
- '5HOURS' => '5 hours',
- 'DAY' => 'a day',
- 'WEEK' => 'a week',
- 'MONTH' => 'a month',
- 'YEAR' => 'a year',
- 'INVALID_FORM_KEY' => 'Invalid form, or your session was expired.',
- 'INVALID_GET_KEY' => 'Sorry, The requested link is expired, and is blocked for security reason, go back and try again.',
- 'REFRESH_CAPTCHA' => 'Click to get a new CAPTCHA image',
- 'CHOSE_F' => 'Please select at least one file',
+ 'COPYRIGHTS_X' => 'All rights reserved',
+ 'CHECK_ALL' => 'Check all',
+ 'BROSWERF' => 'User files',
+ 'REMME' => 'Remember me',
+ 'REMME_EXP' => 'Check this if your device isn\'t shared with others',
+ 'HOUR' => 'an hour',
+ '5HOURS' => '5 hours',
+ 'DAY' => 'a day',
+ 'WEEK' => 'a week',
+ 'MONTH' => 'a month',
+ 'YEAR' => 'a year',
+ 'INVALID_FORM_KEY' => 'Invalid form, or your session was expired.',
+ 'INVALID_GET_KEY' => 'Sorry, The requested link is expired, and is blocked for security reason, go back and try again.',
+ 'REFRESH_CAPTCHA' => 'Click to get a new CAPTCHA image',
+ 'CHOSE_F' => 'Please select at least one file',
- 'NOTE_CODE' => 'Enter the letters shown in the image accurately',
- 'USER_LOGIN' => ' Login + Members Only ',
- 'FILES_DELETED' => 'Files successfully deleted.',
- 'ALL_FILES' => 'Number of all files',
- 'ALL_IMAGES' => 'Number of all images',
- 'NO_FILE_USER' => 'No files were found in the account!',
- 'SHOWFILESBYIP' => 'Show files by IP',
- 'WAIT_LOADING' => 'Please wait, the files are being uploaded to the server...',
- 'NOTICECLOSED' => 'Note: website is closed',
- 'UNKNOWN' => 'Unknown',
- 'WE_UPDATING_KLEEJA_NOW' => 'Closed for maintenance, Check back soon...',
- 'ERROR_TRY_AGAIN' => 'Error, try again.',
- 'VIEW' => 'View',
- 'NONE' => 'None',
- 'SEARCH_STAT' => 'Search Engines Stats',
- 'NOTHING' => 'There are no nothing!',
- 'YOU_HAVE_TO_WAIT' => 'Wait %s seconds .. then try to re-upload your files',
- 'REPEAT_PASS' => 'Repeat Password',
- 'PASS_NEQ_PASS2' => 'Passwords are not equal!',
+ 'NOTE_CODE' => 'Enter the letters shown in the image accurately',
+ 'USER_LOGIN' => ' Login + Members Only ',
+ 'FILES_DELETED' => 'Files successfully deleted.',
+ 'ALL_FILES' => 'Number of all files',
+ 'ALL_IMAGES' => 'Number of all images',
+ 'NO_FILE_USER' => 'No files were found in the account!',
+ 'SHOWFILESBYIP' => 'Show files by IP',
+ 'WAIT_LOADING' => 'Please wait, the files are being uploaded to the server...',
+ 'NOTICECLOSED' => 'Note: website is closed',
+ 'UNKNOWN' => 'Unknown',
+ 'WE_UPDATING_KLEEJA_NOW' => 'Closed for maintenance, Check back soon...',
+ 'ERROR_TRY_AGAIN' => 'Error, try again.',
+ 'VIEW' => 'View',
+ 'NONE' => 'None',
+ 'SEARCH_STAT' => 'Search Engines Stats',
+ 'NOTHING' => 'There are no nothing!',
+ 'YOU_HAVE_TO_WAIT' => 'Wait %s seconds .. then try to re-upload your files',
+ 'REPEAT_PASS' => 'Repeat Password',
+ 'PASS_NEQ_PASS2' => 'Passwords are not equal!',
- 'GROUP' => 'Group',
- 'ADMINS' => 'Admins',
- 'GUESTS' => 'Guests',
- 'USERS' => 'Users',
- 'DELETE_INSTALL_FOLDER' => 'To start using Kleeja, delete "install" folder, Kleeja will never work while this folder exists.',
- 'HV_NOT_PRVLG_ACCESS' => 'You don\'t have privilege to access this page.',
- 'W_PERIODS_0' => 'second',
- 'W_PERIODS_1' => 'minute',
- 'W_PERIODS_2' => 'hour',
- 'W_PERIODS_3' => 'day',
- 'W_PERIODS_4' => 'week',
- 'W_PERIODS_5' => 'month',
- 'W_PERIODS_6' => 'year',
- 'W_PERIODS_7' => 'decade',
+ 'GROUP' => 'Group',
+ 'ADMINS' => 'Admins',
+ 'GUESTS' => 'Guests',
+ 'USERS' => 'Users',
+ 'DELETE_INSTALL_FOLDER' => 'To start using Kleeja, delete "install" folder, Kleeja will never work while this folder exists.',
+ 'HV_NOT_PRVLG_ACCESS' => 'You don\'t have privilege to access this page.',
+ 'W_PERIODS_0' => 'second',
+ 'W_PERIODS_1' => 'minute',
+ 'W_PERIODS_2' => 'hour',
+ 'W_PERIODS_3' => 'day',
+ 'W_PERIODS_4' => 'week',
+ 'W_PERIODS_5' => 'month',
+ 'W_PERIODS_6' => 'year',
+ 'W_PERIODS_7' => 'decade',
- 'W_PERIODS_DP_0'=> "two seconds",
- 'W_PERIODS_DP_1'=> "two minutes",
- 'W_PERIODS_DP_2'=> "two hours",
- 'W_PERIODS_DP_3'=> "two days",
- 'W_PERIODS_DP_4'=> "two weeks",
- 'W_PERIODS_DP_5'=> "two months",
- 'W_PERIODS_DP_6'=> "two years",
- 'W_PERIODS_DP_7'=> "two decades",
+ 'W_PERIODS_DP_0'=> 'two seconds',
+ 'W_PERIODS_DP_1'=> 'two minutes',
+ 'W_PERIODS_DP_2'=> 'two hours',
+ 'W_PERIODS_DP_3'=> 'two days',
+ 'W_PERIODS_DP_4'=> 'two weeks',
+ 'W_PERIODS_DP_5'=> 'two months',
+ 'W_PERIODS_DP_6'=> 'two years',
+ 'W_PERIODS_DP_7'=> 'two decades',
'W_PERIODS_P_0' => 'seconds',
'W_PERIODS_P_1' => 'minutes',
@@ -269,23 +269,23 @@ return array(
'W_PERIODS_P_7' => 'decades',
- 'W_FROM' => 'from',
- 'W_AGO' => 'ago',
- 'TIME_PM' => 'pm',
- 'TIME_AM' => 'am',
- 'NOT_YET' => 'Not yet!',
- 'NOT_FOUND' => 'This file is not exist. either deleted by the user or the administrator or there is an error opening the file!.',
- 'TIME_ZONE' => 'Time zone',
- 'OR' => 'or',
- 'AND' => 'and',
- 'CHANGE' => 'Change',
- 'FOR' => 'for',
- 'ALL' => 'All',
- 'NOW' => 'Now',
- 'EMAIL_CHANGE_REQ_PASS' => 'In order to change your email address, It\'s required to type your current password.',
- 'DRAG_AND_DROP' => 'Drop a file inside…',
- 'OR_MANUAL_SELECT' => 'Or click here to
Select a file manually..',
- //3.0.3
- 'NOTIFICATIONS' => 'Notifications',
- 'KJ_TWEETS' => 'Kleeja Tweets' ,
-);
+ 'W_FROM' => 'from',
+ 'W_AGO' => 'ago',
+ 'TIME_PM' => 'pm',
+ 'TIME_AM' => 'am',
+ 'NOT_YET' => 'Not yet!',
+ 'NOT_FOUND' => 'This file is not exist. either deleted by the user or the administrator or there is an error opening the file!.',
+ 'TIME_ZONE' => 'Time zone',
+ 'OR' => 'or',
+ 'AND' => 'and',
+ 'CHANGE' => 'Change',
+ 'FOR' => 'for',
+ 'ALL' => 'All',
+ 'NOW' => 'Now',
+ 'EMAIL_CHANGE_REQ_PASS' => 'In order to change your email address, It\'s required to type your current password.',
+ 'DRAG_AND_DROP' => 'Drop a file inside…',
+ 'OR_MANUAL_SELECT' => 'Or click here to
Select a file manually..',
+ //3.0.3
+ 'NOTIFICATIONS' => 'Notifications',
+ 'KJ_TWEETS' => 'Kleeja Tweets' ,
+];
diff --git a/lang/en/install.php b/lang/en/install.php
index e180684..d1a5763 100755
--- a/lang/en/install.php
+++ b/lang/en/install.php
@@ -5,113 +5,113 @@
//
-return array(
- 'DIR' => 'ltr',
- 'INST_INSTALL_WIZARD' => 'Kleeja installing wizard',
- 'INST_INSTALL_CLEAN_VER'=> 'New Installation',
- 'INST_UPDATE_P_VER' => 'Update ',
- 'INST_AGR_LICENSE' => 'I agree to terms and agreements',
- 'INST_NEXT' => 'Next',
- 'INST_PREVIOUS' => 'back',
- 'INST_SITE_INFO' => 'Site Info',
- 'INST_ADMIN_INFO' => 'Admin Info',
- 'INST_CHANG_CONFIG' => 'Missing requirements ... make sure you have edited the config.php file.',
- 'INST_CONNCET_ERR' => 'Cannot connect ..',
- 'INST_NO_WRTABLE' => 'The directory is not writable',
- 'INST_GOOD_GO' => 'Everything seems to be OK .... continue',
- 'INST_MSGINS' => 'Welcome to our uploading service, here you can upload anything as long as it does not violate our terms.',
- 'INST_CRT_CALL' => 'Comments table created.',
- 'INST_CRT_ONL' => 'Online users table created.',
- 'INST_CRT_REPRS' => 'Reports table created.',
- 'INST_CRT_STS' => 'Statistics table created.',
- 'INST_CRT_USRS' => 'Users table created.',
- 'INST_CRT_ADM' => 'Admin details created.',
- 'INST_CRT_FLS' => 'Files table created.',
- 'INST_CRT_CNF' => 'Settings table created.',
- 'INST_CRT_EXT' => 'Extensions table created.',
- 'INST_CRT_HKS' => 'Hacks table created',
- 'INST_CRT_LNG' => 'Language table created',
+return [
+ 'DIR' => 'ltr',
+ 'INST_INSTALL_WIZARD' => 'Kleeja installing wizard',
+ 'INST_INSTALL_CLEAN_VER'=> 'New Installation',
+ 'INST_UPDATE_P_VER' => 'Update ',
+ 'INST_AGR_LICENSE' => 'I agree to terms and agreements',
+ 'INST_NEXT' => 'Next',
+ 'INST_PREVIOUS' => 'back',
+ 'INST_SITE_INFO' => 'Site Info',
+ 'INST_ADMIN_INFO' => 'Admin Info',
+ 'INST_CHANG_CONFIG' => 'Missing requirements ... make sure you have edited the config.php file.',
+ 'INST_CONNCET_ERR' => 'Cannot connect ..',
+ 'INST_NO_WRTABLE' => 'The directory is not writable',
+ 'INST_GOOD_GO' => 'Everything seems to be OK .... continue',
+ 'INST_MSGINS' => 'Welcome to our uploading service, here you can upload anything as long as it does not violate our terms.',
+ 'INST_CRT_CALL' => 'Comments table created.',
+ 'INST_CRT_ONL' => 'Online users table created.',
+ 'INST_CRT_REPRS' => 'Reports table created.',
+ 'INST_CRT_STS' => 'Statistics table created.',
+ 'INST_CRT_USRS' => 'Users table created.',
+ 'INST_CRT_ADM' => 'Admin details created.',
+ 'INST_CRT_FLS' => 'Files table created.',
+ 'INST_CRT_CNF' => 'Settings table created.',
+ 'INST_CRT_EXT' => 'Extensions table created.',
+ 'INST_CRT_HKS' => 'Hacks table created',
+ 'INST_CRT_LNG' => 'Language table created',
- 'INST_CRT_PLG' => 'Plugins table created',
- 'INST_SQL_ERR' => 'Error Executing SQL .. ',
- 'INST_FINISH_SQL' => 'Kleeja was installed successfully',
- 'INST_NOTES' => 'Installation Notes ..!',
- 'INST_END' => 'The installation wizard is finished ,, Please remove the INSTALL directory..!',
- 'INST_NOTE_D' => 'Any observations or problems , please contact with the developers kleeja..!!',
- 'INST_FINISH_ERRSQL' => 'Oops! there seems to be a problem, try again.',
- 'INST_KLEEJADEVELOPERS' => 'Thank you for using Kleeja, and we wish you a good luck.',
- 'SITENAME' => 'Website title',
- 'SITEURL' => 'Website URL',
- 'SITEMAIL' => 'Website Email',
- 'USERNAME' => 'Username',
- 'PASSWORD' => 'Password',
- 'PASSWORD2' => 'Password Again',
- 'EMAIL' => 'Email',
- 'INDEX' => 'Home',
- 'ADMINCP' => 'Control Panel',
- 'EMPTY_FIELDS' => 'Some important fields were left blank!',
- 'WRONG_EMAIL' => 'Incorrect Email Address!',
-
-
- 'DB_INFO_NW' => 'Enter the database information correctly .. Then press Next and the wizard will export the config.php file and put it in a directory the main script !',
- 'DB_INFO' => 'Enter the database information ..!',
- 'DB_SERVER' => 'Host',
- 'DB_TYPE' => 'Database type',
- 'DB_TYPE_MYSQL' => 'MySQL Standard',
- 'DB_TYPE_MYSQLI' => 'MySQL Improved',
- 'DB_USER' => 'Database Username',
- 'DB_PASSWORD' => 'Database Password',
- 'DB_NAME' => 'Database Name',
- 'DB_PREFIX' => 'Tables prefix',
- 'VALIDATING_FORM_WRONG' => 'A required field was left blank!',
- 'CONFIG_EXISTS' => 'Config.php was found, Continue...',
- 'INST_SUBMIT_CONFIGOK' => 'Upload the file in the main directory',
- 'INST_EXPORT' => 'Export File',
- 'INST_OTHER_INFO' => 'Other info',
- 'URLS_TYPES' => 'Style of File urls',
- 'DEFAULT' => 'Default - recommended',
- 'FILENAME_URL' => 'Filename',
- 'DIRECT_URL' => 'Direct links - no stats',
- 'LIKE_THIS' => 'Example',
-
- //
- 'FUNCTIONS_CHECK' => 'Functions Check',
- 'RE_CHECK' => 'ReCheck',
- 'FUNCTION_IS_NOT_EXISTS' => 'The function %s is disabled.',
- 'FUNCTION_IS_EXISTS' => 'The function %s is enabled.',
- 'FUNCTION_DISC_UNLINK' => 'The function Unlink is used to remove and update cache files.',
- 'FUNCTION_DISC_GD' => 'The function imagecreatetruecolor is function of GD library that is used to create thumbnails & control photos.',
- 'FUNCTION_DISC_FOPEN' => 'The function fopen is used to control styles & files in kleeja.',
- 'FUNCTION_DISC_MUF' => 'The function move_uploaded_file is used to upload files and it\'s the most important function in the script.',
- //
- 'ADVICES_CHECK' => 'Advanced check (Optional)',
- 'ADVICES_REGISTER_GLOBALS' => '
register_globals function is enabled ..! its recommended that you disable it.',
- 'ADVICES_MAGIC_QUOTES' => '
magic_quotes function is enabled ..! it is recommended that you disable it.',
-
- //UPDATE
- 'INST_CHOOSE_UPDATE_FILE' => 'Choose the appropriate update file',
- 'INST_ERR_NO_SELECTED_UPFILE_GOOD' => 'Inappropriate update file, or it is missing!',
- 'INST_UPDATE_CUR_VER_IS_UP' => 'Your current version is newer than this update.',
-
- 'INST_NOTES_UPDATE' => 'Update Notes',
+ 'INST_CRT_PLG' => 'Plugins table created',
+ 'INST_SQL_ERR' => 'Error Executing SQL .. ',
+ 'INST_FINISH_SQL' => 'Kleeja was installed successfully',
+ 'INST_NOTES' => 'Installation Notes ..!',
+ 'INST_END' => 'The installation wizard is finished ,, Please remove the INSTALL directory..!',
+ 'INST_NOTE_D' => 'Any observations or problems , please contact with the developers kleeja..!!',
+ 'INST_FINISH_ERRSQL' => 'Oops! there seems to be a problem, try again.',
+ 'INST_KLEEJADEVELOPERS' => 'Thank you for using Kleeja, and we wish you a good luck.',
+ 'SITENAME' => 'Website title',
+ 'SITEURL' => 'Website URL',
+ 'SITEMAIL' => 'Website Email',
+ 'USERNAME' => 'Username',
+ 'PASSWORD' => 'Password',
+ 'PASSWORD2' => 'Password Again',
+ 'EMAIL' => 'Email',
+ 'INDEX' => 'Home',
+ 'ADMINCP' => 'Control Panel',
+ 'EMPTY_FIELDS' => 'Some important fields were left blank!',
+ 'WRONG_EMAIL' => 'Incorrect Email Address!',
- 'INST_UPDATE_IS_FINISH' => 'Installation completed! you can now delete the INSTALL directory...',
+ 'DB_INFO_NW' => 'Enter the database information correctly .. Then press Next and the wizard will export the config.php file and put it in a directory the main script !',
+ 'DB_INFO' => 'Enter the database information ..!',
+ 'DB_SERVER' => 'Host',
+ 'DB_TYPE' => 'Database type',
+ 'DB_TYPE_MYSQL' => 'MySQL Standard',
+ 'DB_TYPE_MYSQLI' => 'MySQL Improved',
+ 'DB_USER' => 'Database Username',
+ 'DB_PASSWORD' => 'Database Password',
+ 'DB_NAME' => 'Database Name',
+ 'DB_PREFIX' => 'Tables prefix',
+ 'VALIDATING_FORM_WRONG' => 'A required field was left blank!',
+ 'CONFIG_EXISTS' => 'Config.php was found, Continue...',
+ 'INST_SUBMIT_CONFIGOK' => 'Upload the file in the main directory',
+ 'INST_EXPORT' => 'Export File',
+ 'INST_OTHER_INFO' => 'Other info',
+ 'URLS_TYPES' => 'Style of File urls',
+ 'DEFAULT' => 'Default - recommended',
+ 'FILENAME_URL' => 'Filename',
+ 'DIRECT_URL' => 'Direct links - no stats',
+ 'LIKE_THIS' => 'Example',
- 'INST_PHP_LESSMIN' => 'You need PHP %1$s or above to install Kleeja, your current version is %2$s',
- 'INST_MYSQL_LESSMIN' => 'You need MySQL %1$s or above to install Kleeja, your current version is %2$s',
- 'IS_IT_OFFICIAL' => 'Did you get your copy from Kleeja.com (Kleeja official site) ?',
- 'IS_IT_OFFICIAL_DESC' => 'We receive a lot of complaints and questions about the cause of some bugs and issues which occur in kleeja and probably we can\'t figure out what the problem is . After we have checked we have found that there are some unofficially copies released from untrusted publishers .
So are you sure of this copy is downloaded from kleeja official site ?',
- 'INST_WHAT_IS_KLEEJA_T' => 'What is Kleeja ?',
-
- 'INST_WHAT_IS_KLEEJA' => 'Keeja is a free, features rich, files and images upload system. Kleeja is developed to help webmasters to provide a decent files hosting service on their sites . Kleeja comes with a simple source code and powerful User system , also with easy template system so you can easily customize your styles ',
-
- 'INST_SPECIAL_KLEEJA' => 'Some Kleeja features .. !',
- 'INST_WHAT_IS_KLEEJA_ONE' => 'Kleeja has a simple and powerful user system which can be easily integrated with many boards . Kleeja provide simple admin control panel that enables you to control over everything in your site . Also you can customize Kleeja\'s style and install a lot of add-ons ....
more details in Kleeja site ',
- 'YES' => 'Yes',
- 'NO' => 'No',
- 'KLEEJA_TEAM_MSG_NAME' => 'Kleeja Development Team',
- 'KLEEJA_TEAM_MSG_TEXT' => "Thank you for choosing Kleeja to empower your website,\n We really hope you enjoy the unique experience that Kleeja offers to you.\nDon't forget to visit http://kleeja.com for future updates.",
+ 'FUNCTIONS_CHECK' => 'Functions Check',
+ 'RE_CHECK' => 'ReCheck',
+ 'FUNCTION_IS_NOT_EXISTS' => 'The function %s is disabled.',
+ 'FUNCTION_IS_EXISTS' => 'The function %s is enabled.',
+ 'FUNCTION_DISC_UNLINK' => 'The function Unlink is used to remove and update cache files.',
+ 'FUNCTION_DISC_GD' => 'The function imagecreatetruecolor is function of GD library that is used to create thumbnails & control photos.',
+ 'FUNCTION_DISC_FOPEN' => 'The function fopen is used to control styles & files in kleeja.',
+ 'FUNCTION_DISC_MUF' => 'The function move_uploaded_file is used to upload files and it\'s the most important function in the script.',
-);
\ No newline at end of file
+ 'ADVICES_CHECK' => 'Advanced check (Optional)',
+ 'ADVICES_REGISTER_GLOBALS' => '
register_globals function is enabled ..! its recommended that you disable it.',
+ 'ADVICES_MAGIC_QUOTES' => '
magic_quotes function is enabled ..! it is recommended that you disable it.',
+
+ //UPDATE
+ 'INST_CHOOSE_UPDATE_FILE' => 'Choose the appropriate update file',
+ 'INST_ERR_NO_SELECTED_UPFILE_GOOD' => 'Inappropriate update file, or it is missing!',
+ 'INST_UPDATE_CUR_VER_IS_UP' => 'Your current version is newer than this update.',
+
+ 'INST_NOTES_UPDATE' => 'Update Notes',
+
+
+ 'INST_UPDATE_IS_FINISH' => 'Installation completed! you can now delete the INSTALL directory...',
+
+ 'INST_PHP_LESSMIN' => 'You need PHP %1$s or above to install Kleeja, your current version is %2$s',
+ 'INST_MYSQL_LESSMIN' => 'You need MySQL %1$s or above to install Kleeja, your current version is %2$s',
+ 'IS_IT_OFFICIAL' => 'Did you get your copy from Kleeja.com (Kleeja official site) ?',
+ 'IS_IT_OFFICIAL_DESC' => 'We receive a lot of complaints and questions about the cause of some bugs and issues which occur in kleeja and probably we can\'t figure out what the problem is . After we have checked we have found that there are some unofficially copies released from untrusted publishers .
So are you sure of this copy is downloaded from kleeja official site ?',
+ 'INST_WHAT_IS_KLEEJA_T' => 'What is Kleeja ?',
+
+ 'INST_WHAT_IS_KLEEJA' => 'Keeja is a free, features rich, files and images upload system. Kleeja is developed to help webmasters to provide a decent files hosting service on their sites . Kleeja comes with a simple source code and powerful User system , also with easy template system so you can easily customize your styles ',
+
+ 'INST_SPECIAL_KLEEJA' => 'Some Kleeja features .. !',
+ 'INST_WHAT_IS_KLEEJA_ONE' => 'Kleeja has a simple and powerful user system which can be easily integrated with many boards . Kleeja provide simple admin control panel that enables you to control over everything in your site . Also you can customize Kleeja\'s style and install a lot of add-ons ....
more details in Kleeja site ',
+ 'YES' => 'Yes',
+ 'NO' => 'No',
+
+ 'KLEEJA_TEAM_MSG_NAME' => 'Kleeja Development Team',
+ 'KLEEJA_TEAM_MSG_TEXT' => "Thank you for choosing Kleeja to empower your website,\n We really hope you enjoy the unique experience that Kleeja offers to you.\nDon't forget to visit http://kleeja.com for future updates.",
+
+];
diff --git a/serve.php b/serve.php
index d2116b8..1acd3a4 100755
--- a/serve.php
+++ b/serve.php
@@ -17,51 +17,51 @@ define('IN_SERVE', true);
/**
* Defaults rewrite rules
*/
-$rules = array(
- '^index.html$' => ['file' => 'index.php'],
- '^download([0-9]*).html$' => ['file' => 'do.php', 'args' => 'id=$1'],
- '^downloadf-(.*)-([a-zA-Z0-9_-]*).html$' => ['file' => 'do.php', 'args' =>'filename=$1&x=$2'],
- '^down-([0-9]*).html$' => ['file' => 'do.php', 'args' => 'down=$1'],
- '^downf-(.*)-([a-zA-Z0-9_-]*).html$' => ['file' => 'do.php', 'args' => 'downf=$1&x=$2'],
- '^downex-([0-9]*).html$' => ['file' => 'do.php', 'args' => 'down=$1'],
- '^downexf-(.*)-([a-zA-Z0-9_-]*).html$' => ['file' =>'do.php', 'args' => 'downexf=$1&x=$2'],
- '^thumb([0-9]*).html$' => ['file' => 'do.php', 'args' => 'thmb=$1'],
- '^imagef-(.*)-([a-zA-Z0-9_-]*).html$' => ['file' =>'do.php', 'args' => 'imgf=$1&x=$2'],
- '^thumbf-(.*)-([a-zA-Z0-9_-]*).html$' => ['file' => 'do.php', 'args' => 'thmbf=$1&x=$2'],
- '^image([0-9]*).html$' => ['file' => 'do.php', 'args' => 'img=$1'],
- '^del([a-zA-Z0-9_-]*).html$' => ['file' => 'go.php', 'args' => 'go=del&cd=$1'],
- '^(call|guide|rules|stats|report).html$' => ['file' =>'go.php', 'args' => 'go=$1'],
- '^report[_-]([0-9]*).html$' => ['file' => 'go.php', 'args' => 'go=report&id=$1'],
+$rules = [
+ '^index.html$' => ['file' => 'index.php'],
+ '^download([0-9]*).html$' => ['file' => 'do.php', 'args' => 'id=$1'],
+ '^downloadf-(.*)-([a-zA-Z0-9_-]*).html$' => ['file' => 'do.php', 'args' =>'filename=$1&x=$2'],
+ '^down-([0-9]*).html$' => ['file' => 'do.php', 'args' => 'down=$1'],
+ '^downf-(.*)-([a-zA-Z0-9_-]*).html$' => ['file' => 'do.php', 'args' => 'downf=$1&x=$2'],
+ '^downex-([0-9]*).html$' => ['file' => 'do.php', 'args' => 'down=$1'],
+ '^downexf-(.*)-([a-zA-Z0-9_-]*).html$' => ['file' =>'do.php', 'args' => 'downexf=$1&x=$2'],
+ '^thumb([0-9]*).html$' => ['file' => 'do.php', 'args' => 'thmb=$1'],
+ '^imagef-(.*)-([a-zA-Z0-9_-]*).html$' => ['file' =>'do.php', 'args' => 'imgf=$1&x=$2'],
+ '^thumbf-(.*)-([a-zA-Z0-9_-]*).html$' => ['file' => 'do.php', 'args' => 'thmbf=$1&x=$2'],
+ '^image([0-9]*).html$' => ['file' => 'do.php', 'args' => 'img=$1'],
+ '^del([a-zA-Z0-9_-]*).html$' => ['file' => 'go.php', 'args' => 'go=del&cd=$1'],
+ '^(call|guide|rules|stats|report).html$' => ['file' =>'go.php', 'args' => 'go=$1'],
+ '^report[_-]([0-9]*).html$' => ['file' => 'go.php', 'args' => 'go=report&id=$1'],
'^(filecp|profile|fileuser|register|login|logout).html$' => ['file' => 'ucp.php', 'args' => 'go=$1'],
- '^fileuser[_-]([0-9]+).html$' => ['file' => 'ucp.php', 'args' => 'go=fileuser&id=$1'],
- '^fileuser[_-]([0-9]+)-([0-9]+).html$' => ['file' => 'ucp.php', 'args' => 'go=fileuser&id=$1&page=$2'],
+ '^fileuser[_-]([0-9]+).html$' => ['file' => 'ucp.php', 'args' => 'go=fileuser&id=$1'],
+ '^fileuser[_-]([0-9]+)-([0-9]+).html$' => ['file' => 'ucp.php', 'args' => 'go=fileuser&id=$1&page=$2'],
// #for future plugins
'^go-(.*).html$' => ['file' => 'go.php', 'args' => 'go=$1'],
//--------->
//don't remove the next line ever.
- #end_kleeja_rewrites_rules#
+ //end_kleeja_rewrites_rules#
//<---------
-);
+];
$request_uri = trim(strtok($_SERVER['REQUEST_URI'], '?'), '/');
-foreach($rules as $rule_regex => $rule_result)
+foreach ($rules as $rule_regex => $rule_result)
{
- if (preg_match("/{$rule_regex}/", $request_uri, $matches))
+ if (preg_match("/{$rule_regex}/", $request_uri, $matches))
{
- if(! empty($rule_result['args']))
+ if (! empty($rule_result['args']))
{
parse_str($rule_result['args'], $args);
- foreach($args as $arg_key => $arg_value)
+ foreach ($args as $arg_key => $arg_value)
{
- if(preg_match('/^\$/', $arg_value))
+ if (preg_match('/^\$/', $arg_value))
{
$match_number = ltrim($arg_value, '$');
- if(isset($matches[$match_number]))
+ if (isset($matches[$match_number]))
{
$_GET[$arg_key] = $matches[$match_number];
}
@@ -74,10 +74,11 @@ foreach($rules as $rule_regex => $rule_result)
}
include $rule_result['file'];
+
exit;
}
}
-#fallback
+//fallback
define('SERVE_FALLBACK', true);
-include 'go.php';
\ No newline at end of file
+include 'go.php';
diff --git a/ucp.php b/ucp.php
index b7c1c0f..8599160 100755
--- a/ucp.php
+++ b/ucp.php
@@ -20,73 +20,73 @@ require_once 'includes/common.php';
is_array($plugin_run_result = Plugins::getInstance()->run('begin_usrcp_page', get_defined_vars())) ? extract($plugin_run_result) : null; //run hook
-$extra = '';
+$extra = '';
$show_style = true;
$styleePath = null;
switch (g('go'))
{
- //
- //login page
- //
- case 'login' :
+ //
+ //login page
+ //
+ case 'login' :
- //page info
- $stylee = 'login';
- $titlee = $lang['LOGIN'];
- $action = 'ucp.php?go=login' . (ig('return') ? '&return=' . g('return') : '');
- $forget_pass_link = !empty($forgetpass_script_path) && (int) $config['user_system'] != 1 ? $forgetpass_script_path : 'ucp.php?go=get_pass';
- $H_FORM_KEYS = kleeja_add_form_key('login');
- //no error yet
- $ERRORS = false;
+ //page info
+ $stylee = 'login';
+ $titlee = $lang['LOGIN'];
+ $action = 'ucp.php?go=login' . (ig('return') ? '&return=' . g('return') : '');
+ $forget_pass_link = ! empty($forgetpass_script_path) && (int) $config['user_system'] != 1 ? $forgetpass_script_path : 'ucp.php?go=get_pass';
+ $H_FORM_KEYS = kleeja_add_form_key('login');
+ //no error yet
+ $ERRORS = false;
- //_post
- $t_lname = p('lname');
- $t_lpass = p('lpass');
+ //_post
+ $t_lname = p('lname');
+ $t_lpass = p('lpass');
is_array($plugin_run_result = Plugins::getInstance()->run('login_before_submit', get_defined_vars())) ? extract($plugin_run_result) : null; //run hook
- //logon before !
- if ($usrcp->name())
- {
+ //logon before !
+ if ($usrcp->name())
+ {
is_array($plugin_run_result = Plugins::getInstance()->run('login_logon_before', get_defined_vars())) ? extract($plugin_run_result) : null; //run hook
- $errorpage = true;
- $text = $lang['LOGINED_BEFORE'] . ' ..
' . $lang['LOGOUT'] . '';
- kleeja_info($text);
- }
- elseif (ip('submit'))
- {
- $ERRORS = array();
+ $errorpage = true;
+ $text = $lang['LOGINED_BEFORE'] . ' ..
' . $lang['LOGOUT'] . '';
+ kleeja_info($text);
+ }
+ elseif (ip('submit'))
+ {
+ $ERRORS = [];
is_array($plugin_run_result = Plugins::getInstance()->run('login_after_submit', get_defined_vars())) ? extract($plugin_run_result) : null; //run hook
- //check for form key
- if(!kleeja_check_form_key('login'))
- {
- $ERRORS['form_key'] = $lang['INVALID_FORM_KEY'];
- }
-
- if(!kleeja_check_captcha())
+ //check for form key
+ if (! kleeja_check_form_key('login'))
{
- if (function_exists('gd_info'))
- {
+ $ERRORS['form_key'] = $lang['INVALID_FORM_KEY'];
+ }
+
+ if (! kleeja_check_captcha())
+ {
+ if (function_exists('gd_info'))
+ {
$ERRORS['captcha'] = $lang['WRONG_VERTY_CODE'];
}
}
- if (empty(p('lname')) || empty(p('lpass')))
- {
- $ERRORS['empty_fields'] = $lang['EMPTY_FIELDS'];
- }
+ if (empty(p('lname')) || empty(p('lpass')))
+ {
+ $ERRORS['empty_fields'] = $lang['EMPTY_FIELDS'];
+ }
is_array($plugin_run_result = Plugins::getInstance()->run('login_after_submit2', get_defined_vars())) ? extract($plugin_run_result) : null; //run hook
- if(empty($ERRORS))
- {
- if(!$usrcp->data(p('lname'), p('lpass'), false, (!ip('remme') ? false : p('remme'))))
+ if (empty($ERRORS))
+ {
+ if (! $usrcp->data(p('lname'), p('lpass'), false, (! ip('remme') ? false : p('remme'))))
{
$ERRORS['login_check'] = $lang['LOGIN_ERROR'];
}
@@ -95,832 +95,845 @@ switch (g('go'))
$errorpage = true;
is_array($plugin_run_result = Plugins::getInstance()->run('login_data_no_error', get_defined_vars())) ? extract($plugin_run_result) : null; //run hook
- if (ig('return'))
+ if (ig('return'))
{
redirect(urldecode(g('return')));
$SQL->close();
+
exit;
}
-
+
$text = $lang['LOGIN_SUCCESFUL'] . '
' . $lang['HOME'] . '';
kleeja_info($text, '', true, $config['siteurl'], 1);
}
- }
- }
+ }
+ }
- break;
+ break;
- //
- //register page
- //
- case 'register' :
+ //
+ //register page
+ //
+ case 'register' :
- //page info
- $stylee = 'register';
- $titlee = $lang['REGISTER'];
- $action = 'ucp.php?go=register';
- $H_FORM_KEYS = kleeja_add_form_key('register');
- //no error yet
- $ERRORS = false;
+ //page info
+ $stylee = 'register';
+ $titlee = $lang['REGISTER'];
+ $action = 'ucp.php?go=register';
+ $H_FORM_KEYS = kleeja_add_form_key('register');
+ //no error yet
+ $ERRORS = false;
- //config register
- if ((int) $config['register'] != 1 && (int) $config['user_system'] == 1)
- {
- kleeja_info($lang['REGISTER_CLOSED'], $lang['PLACE_NO_YOU']);
- }
- else if ($config['user_system'] != '1')
- {
+ //config register
+ if ((int) $config['register'] != 1 && (int) $config['user_system'] == 1)
+ {
+ kleeja_info($lang['REGISTER_CLOSED'], $lang['PLACE_NO_YOU']);
+ }
+ elseif ($config['user_system'] != '1')
+ {
is_array($plugin_run_result = Plugins::getInstance()->run('register_not_default_sys', get_defined_vars())) ? extract($plugin_run_result) : null; //run hook
- if(!empty($register_script_path))
- {
- $goto_forum_link = $register_script_path;
- }
- else
- {
- if(isset($script_path))
- {
- $goto_forum_link = ($config['user_system'] == 'api') ? dirname($script_path) : $script_path;
- if($config['user_system'] == 'phpbb' || ($config['user_system'] == 'api' && strpos($script_path, 'phpbb') !== false))
- {
- $goto_forum_link .= '/ucp.php?mode=register';
- }
- else if($config['user_system'] == 'vb' || ($config['user_system'] == 'api' && strpos($script_path, 'vb') !== false))
- {
- $goto_forum_link .= '/register.php';
- }
- }
- else
- {
- $goto_forum_link = '...';
- }
- }
+ if (! empty($register_script_path))
+ {
+ $goto_forum_link = $register_script_path;
+ }
+ else
+ {
+ if (isset($script_path))
+ {
+ $goto_forum_link = ($config['user_system'] == 'api') ? dirname($script_path) : $script_path;
- kleeja_info('
' . $lang['REGISTER']. '', $lang['REGISTER']);
- }
+ if ($config['user_system'] == 'phpbb' || ($config['user_system'] == 'api' && strpos($script_path, 'phpbb') !== false))
+ {
+ $goto_forum_link .= '/ucp.php?mode=register';
+ }
+ elseif ($config['user_system'] == 'vb' || ($config['user_system'] == 'api' && strpos($script_path, 'vb') !== false))
+ {
+ $goto_forum_link .= '/register.php';
+ }
+ }
+ else
+ {
+ $goto_forum_link = '...';
+ }
+ }
- //logon before !
- if ($usrcp->name())
- {
+ kleeja_info('
' . $lang['REGISTER'] . '', $lang['REGISTER']);
+ }
+
+ //logon before !
+ if ($usrcp->name())
+ {
is_array($plugin_run_result = Plugins::getInstance()->run('register_logon_before', get_defined_vars())) ? extract($plugin_run_result) : null; //run hook
- kleeja_info($lang['REGISTERED_BEFORE']);
- }
+ kleeja_info($lang['REGISTERED_BEFORE']);
+ }
- //_post
- $t_lname = p('lname');
- $t_lpass = p('lpass');
- $t_lpass2 = p('lpass2');
- $t_lmail = p('lmail');
+ //_post
+ $t_lname = p('lname');
+ $t_lpass = p('lpass');
+ $t_lpass2 = p('lpass2');
+ $t_lmail = p('lmail');
- //no submit
- if (!ip('submit'))
- {
+ //no submit
+ if (! ip('submit'))
+ {
is_array($plugin_run_result = Plugins::getInstance()->run('register_no_submit', get_defined_vars())) ? extract($plugin_run_result) : null; //run hook
- }
- else // submit
- {
- $ERRORS = array();
+ }
+ else
+ { // submit
+ $ERRORS = [];
is_array($plugin_run_result = Plugins::getInstance()->run('register_submit', get_defined_vars())) ? extract($plugin_run_result) : null; //run hook
- //check for form key
- if(!kleeja_check_form_key('register'))
- {
- $ERRORS['form_key'] = $lang['INVALID_FORM_KEY'];
- }
- if(!kleeja_check_captcha())
- {
- $ERRORS['captcha'] = $lang['WRONG_VERTY_CODE'];
- }
- if (trim(p('lname')) == '' || trim(p('lpass')) == '' || trim(p('lmail')) == '')
- {
- $ERRORS['empty_fields'] = $lang['EMPTY_FIELDS'];
- }
- if ($t_lpass != $t_lpass2)
- {
- $ERRORS['pass_neq_pass2'] = $lang['PASS_NEQ_PASS2'];
- }
- if (!preg_match("/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,4})$/i", trim(p('lmail'))))
- {
- $ERRORS['lmail'] = $lang['WRONG_EMAIL'];
- }
- if (strlen(trim(p('lname'))) < 3 || strlen(trim(p('lname'))) > 50 || preg_match('/[^\p{L}_-]/u', p('lname')))
- {
- $ERRORS['lname'] = $lang['WRONG_NAME'];
- }
- else if ($SQL->num_rows($SQL->query("SELECT * FROM {$dbprefix}users WHERE clean_name='" . trim($SQL->escape($usrcp->cleanusername(p('lname')))) . "'")) != 0)
- {
- $ERRORS['name_exists_before'] = $lang['EXIST_NAME'];
- }
- else if ($SQL->num_rows($SQL->query("SELECT * FROM {$dbprefix}users WHERE mail='" . strtolower(trim($SQL->escape(p('lmail')))) . "'")) != 0)
- {
- $ERRORS['mail_exists_before'] = $lang['EXIST_EMAIL'];
- }
+ //check for form key
+ if (! kleeja_check_form_key('register'))
+ {
+ $ERRORS['form_key'] = $lang['INVALID_FORM_KEY'];
+ }
+
+ if (! kleeja_check_captcha())
+ {
+ $ERRORS['captcha'] = $lang['WRONG_VERTY_CODE'];
+ }
+
+ if (trim(p('lname')) == '' || trim(p('lpass')) == '' || trim(p('lmail')) == '')
+ {
+ $ERRORS['empty_fields'] = $lang['EMPTY_FIELDS'];
+ }
+
+ if ($t_lpass != $t_lpass2)
+ {
+ $ERRORS['pass_neq_pass2'] = $lang['PASS_NEQ_PASS2'];
+ }
+
+ if (! preg_match("/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,4})$/i", trim(p('lmail'))))
+ {
+ $ERRORS['lmail'] = $lang['WRONG_EMAIL'];
+ }
+
+ if (strlen(trim(p('lname'))) < 3 || strlen(trim(p('lname'))) > 50 || preg_match('/[^\p{L}_-]/u', p('lname')))
+ {
+ $ERRORS['lname'] = $lang['WRONG_NAME'];
+ }
+ elseif ($SQL->num_rows($SQL->query("SELECT * FROM {$dbprefix}users WHERE clean_name='" . trim($SQL->escape($usrcp->cleanusername(p('lname')))) . "'")) != 0)
+ {
+ $ERRORS['name_exists_before'] = $lang['EXIST_NAME'];
+ }
+ elseif ($SQL->num_rows($SQL->query("SELECT * FROM {$dbprefix}users WHERE mail='" . strtolower(trim($SQL->escape(p('lmail')))) . "'")) != 0)
+ {
+ $ERRORS['mail_exists_before'] = $lang['EXIST_EMAIL'];
+ }
is_array($plugin_run_result = Plugins::getInstance()->run('register_submit2', get_defined_vars())) ? extract($plugin_run_result) : null; //run hook
- //no errors, lets do process
- if(empty($ERRORS))
- {
- $name = (string) $SQL->escape(trim(p('lname')));
- $user_salt = (string) substr(kleeja_base64_encode(pack("H*", sha1(mt_rand()))), 0, 7);
- $pass = (string) $usrcp->kleeja_hash_password($SQL->escape(trim(p('lpass'))) . $user_salt);
- $mail = (string) strtolower(trim($SQL->escape(p('lmail'))));
- $session_id = (string) session_id();
- $clean_name = (string) $usrcp->cleanusername($name);
+ //no errors, lets do process
+ if (empty($ERRORS))
+ {
+ $name = (string) $SQL->escape(trim(p('lname')));
+ $user_salt = (string) substr(kleeja_base64_encode(pack('H*', sha1(mt_rand()))), 0, 7);
+ $pass = (string) $usrcp->kleeja_hash_password($SQL->escape(trim(p('lpass'))) . $user_salt);
+ $mail = (string) strtolower(trim($SQL->escape(p('lmail'))));
+ $session_id = (string) session_id();
+ $clean_name = (string) $usrcp->cleanusername($name);
- $insert_query = array(
- 'INSERT' => 'name ,password, password_salt ,mail, register_time, session_id, clean_name, group_id',
- 'INTO' => "{$dbprefix}users",
- 'VALUES' => "'$name', '$pass', '$user_salt', '$mail', " . time() . ", '$session_id','$clean_name', " . $config['default_group']
- );
+ $insert_query = [
+ 'INSERT' => 'name ,password, password_salt ,mail, register_time, session_id, clean_name, group_id',
+ 'INTO' => "{$dbprefix}users",
+ 'VALUES' => "'$name', '$pass', '$user_salt', '$mail', " . time() . ", '$session_id','$clean_name', " . $config['default_group']
+ ];
is_array($plugin_run_result = Plugins::getInstance()->run('qr_insert_new_user_register', get_defined_vars())) ? extract($plugin_run_result) : null; //run hook
- if ($SQL->build($insert_query))
- {
- $last_user_id = $SQL->insert_id();
- $text = $lang['REGISTER_SUCCESFUL'] . '
' . $lang['HOME'] . '';
+ if ($SQL->build($insert_query))
+ {
+ $last_user_id = $SQL->insert_id();
+ $text = $lang['REGISTER_SUCCESFUL'] . '
' . $lang['HOME'] . '';
- //update number of stats
- $update_query = array(
- 'UPDATE' => "{$dbprefix}stats",
- 'SET' => "users=users+1, lastuser='$name'",
- );
+ //update number of stats
+ $update_query = [
+ 'UPDATE' => "{$dbprefix}stats",
+ 'SET' => "users=users+1, lastuser='$name'",
+ ];
is_array($plugin_run_result = Plugins::getInstance()->run('ok_added_users_register', get_defined_vars())) ? extract($plugin_run_result) : null; //run hook
- if($SQL->build($update_query))
- {
- //delete cache ..
- delete_cache('data_stats');
- }
+ if ($SQL->build($update_query))
+ {
+ //delete cache ..
+ delete_cache('data_stats');
+ }
- //auto login
- $usrcp->data($t_lname, $t_lpass, false, false);
- kleeja_info($text, '', true, $config['siteurl'], 3);
+ //auto login
+ $usrcp->data($t_lname, $t_lpass, false, false);
+ kleeja_info($text, '', true, $config['siteurl'], 3);
+ }
+ }
+ }
- }
- }
- }
+ break;
- break;
-
- //
- //logout action
- //
- case 'logout' :
+ //
+ //logout action
+ //
+ case 'logout' :
is_array($plugin_run_result = Plugins::getInstance()->run('begin_logout', get_defined_vars())) ? extract($plugin_run_result) : null; //run hook
- if ($usrcp->logout())
- {
- $text = $lang['LOGOUT_SUCCESFUL'] . '
' . $lang['HOME'] . '';
- kleeja_info($text, $lang['LOGOUT'], true, $config['siteurl'], 1);
- }
- else
- {
- kleeja_err($lang['LOGOUT_ERROR']);
- }
+ if ($usrcp->logout())
+ {
+ $text = $lang['LOGOUT_SUCCESFUL'] . '
' . $lang['HOME'] . '';
+ kleeja_info($text, $lang['LOGOUT'], true, $config['siteurl'], 1);
+ }
+ else
+ {
+ kleeja_err($lang['LOGOUT_ERROR']);
+ }
is_array($plugin_run_result = Plugins::getInstance()->run('end_logout', get_defined_vars())) ? extract($plugin_run_result) : null; //run hook
- break;
+ break;
- //
- //files user page
- //
- case 'fileuser' :
+ //
+ //files user page
+ //
+ case 'fileuser' :
- is_array($plugin_run_result = Plugins::getInstance()->run('begin_fileuser', get_defined_vars())) ? extract($plugin_run_result) : null; //run hook
+ is_array($plugin_run_result = Plugins::getInstance()->run('begin_fileuser', get_defined_vars())) ? extract($plugin_run_result) : null; //run hook
- $stylee = 'fileuser';
- $H_FORM_KEYS = kleeja_add_form_key('fileuser');
+ $stylee = 'fileuser';
+ $H_FORM_KEYS = kleeja_add_form_key('fileuser');
- $user_id_get = ig('id') ? g('id', 'int') : false;
- $user_id = (!$user_id_get && $usrcp->id()) ? $usrcp->id() : $user_id_get;
- $user_himself = $usrcp->id() == $user_id;
- $action = $config['siteurl'] . 'ucp.php?go=fileuser' . (ig('page') ? '&page=' . g('page', 'int') : '');
+ $user_id_get = ig('id') ? g('id', 'int') : false;
+ $user_id = (! $user_id_get && $usrcp->id()) ? $usrcp->id() : $user_id_get;
+ $user_himself = $usrcp->id() == $user_id;
+ $action = $config['siteurl'] . 'ucp.php?go=fileuser' . (ig('page') ? '&page=' . g('page', 'int') : '');
- //no logon before
- if (!$usrcp->name() && !ig('id'))
- {
- kleeja_err($lang['USER_PLACE'], $lang['PLACE_NO_YOU'], true, 'index.php');
- }
+ //no logon before
+ if (! $usrcp->name() && ! ig('id'))
+ {
+ kleeja_err($lang['USER_PLACE'], $lang['PLACE_NO_YOU'], true, 'index.php');
+ }
//Not allowed to browse files's folders of other users
- if (!user_can('access_fileusers') && !$user_himself)
- {
+ if (! user_can('access_fileusers') && ! $user_himself)
+ {
is_array($plugin_run_result = Plugins::getInstance()->run('user_cannot_access_fileusers', get_defined_vars())) ? extract($plugin_run_result) : null; //run hook
- kleeja_info($lang['HV_NOT_PRVLG_ACCESS'], $lang['HV_NOT_PRVLG_ACCESS']);
- }
+ kleeja_info($lang['HV_NOT_PRVLG_ACCESS'], $lang['HV_NOT_PRVLG_ACCESS']);
+ }
- #Not allowed to access this page ?
- if (!user_can('access_fileuser') && $user_himself) {
+ //Not allowed to access this page ?
+ if (! user_can('access_fileuser') && $user_himself)
+ {
is_array($plugin_run_result = Plugins::getInstance()->run('user_cannot_access_fileuser', get_defined_vars())) ? extract($plugin_run_result) : null; //run hook
kleeja_info($lang['HV_NOT_PRVLG_ACCESS'], $lang['HV_NOT_PRVLG_ACCESS']);
}
- #fileuser is closed ?
- if ((int) $config['enable_userfile'] != 1 && !user_can('enter_acp'))
- {
- kleeja_info($lang['USERFILE_CLOSED'], $lang['CLOSED_FEATURE']);
- }
+ //fileuser is closed ?
+ if ((int) $config['enable_userfile'] != 1 && ! user_can('enter_acp'))
+ {
+ kleeja_info($lang['USERFILE_CLOSED'], $lang['CLOSED_FEATURE']);
+ }
- #get user options and name
- $data_user = $config['user_system'] == 1 ? $usrcp->get_data('name, show_my_filecp', $user_id) : array('name' => $usrcp->usernamebyid($user_id), 'show_my_filecp' => '1');
+ //get user options and name
+ $data_user = $config['user_system'] == 1 ? $usrcp->get_data('name, show_my_filecp', $user_id) : ['name' => $usrcp->usernamebyid($user_id), 'show_my_filecp' => '1'];
- #if there is no username, then there is no user at all
- if(!$data_user['name'])
- {
- kleeja_err($lang['NOT_EXSIT_USER'], $lang['PLACE_NO_YOU']);
- }
+ //if there is no username, then there is no user at all
+ if (! $data_user['name'])
+ {
+ kleeja_err($lang['NOT_EXSIT_USER'], $lang['PLACE_NO_YOU']);
+ }
- #this user closed his folder, and it's not the current user folder
- if(!$data_user['show_my_filecp'] && ($usrcp->id() != $user_id) && !user_can('enter_acp'))
- {
- kleeja_info($lang['USERFILE_CLOSED'], $lang['CLOSED_FEATURE']);
- }
+ //this user closed his folder, and it's not the current user folder
+ if (! $data_user['show_my_filecp'] && ($usrcp->id() != $user_id) && ! user_can('enter_acp'))
+ {
+ kleeja_info($lang['USERFILE_CLOSED'], $lang['CLOSED_FEATURE']);
+ }
- $query = array(
- 'SELECT' => 'f.id, f.name, f.real_filename, f.folder, f.type, f.uploads, f.time, f.size',
- 'FROM' => "{$dbprefix}files f",
- 'WHERE' => 'f.user=' . $user_id,
- 'ORDER BY' => 'f.id DESC'
- );
+ $query = [
+ 'SELECT' => 'f.id, f.name, f.real_filename, f.folder, f.type, f.uploads, f.time, f.size',
+ 'FROM' => "{$dbprefix}files f",
+ 'WHERE' => 'f.user=' . $user_id,
+ 'ORDER BY' => 'f.id DESC'
+ ];
- //pager
- $perpage = 16;
- $result_p = $SQL->build($query);
- $nums_rows = $SQL->num_rows($result_p);
- $currentPage = ig('page') ? g('page', 'int') : 1;
- $Pager = new Pagination($perpage, $nums_rows, $currentPage);
- $start = $Pager->getStartRow();
+ //pager
+ $perpage = 16;
+ $result_p = $SQL->build($query);
+ $nums_rows = $SQL->num_rows($result_p);
+ $currentPage = ig('page') ? g('page', 'int') : 1;
+ $Pager = new Pagination($perpage, $nums_rows, $currentPage);
+ $start = $Pager->getStartRow();
- $your_fileuser = $config['siteurl'] . ($config['mod_writer'] ? 'fileuser-' . $usrcp->id() . '.html' : 'ucp.php?go=fileuser&id=' . $usrcp->id());
- $total_pages = $Pager->getTotalPages();
- $linkgoto = $config['siteurl'] . (
+ $your_fileuser = $config['siteurl'] . ($config['mod_writer'] ? 'fileuser-' . $usrcp->id() . '.html' : 'ucp.php?go=fileuser&id=' . $usrcp->id());
+ $total_pages = $Pager->getTotalPages();
+ $linkgoto = $config['siteurl'] . (
$config['mod_writer']
- ? 'fileuser-' . $user_id . ($currentPage > 1 && $currentPage <= $total_pages ? '-' . $currentPage : '') . '.html'
- : 'ucp.php?go=fileuser' . ( ig('id') ? ( g('id' , 'int') == $usrcp->id() ? '' : '&id=' . g('id') ) : null )
+ ? 'fileuser-' . $user_id . ($currentPage > 1 && $currentPage <= $total_pages ? '-' . $currentPage : '') . '.html'
+ : 'ucp.php?go=fileuser' . ( ig('id') ? ( g('id', 'int') == $usrcp->id() ? '' : '&id=' . g('id') ) : null )
);
- $page_nums = $Pager->print_nums(str_replace('.html', '', $linkgoto));
+ $page_nums = $Pager->print_nums(str_replace('.html', '', $linkgoto));
- $no_results = true;
+ $no_results = true;
- if((int) $config['user_system'] != 1 && $usrcp->id() != $user_id)
- {
- $data_user['name'] = $usrcp->usernamebyid($user_id);
- }
- $user_name = !$data_user['name'] ? false : $data_user['name'];
+ if ((int) $config['user_system'] != 1 && $usrcp->id() != $user_id)
+ {
+ $data_user['name'] = $usrcp->usernamebyid($user_id);
+ }
+ $user_name = ! $data_user['name'] ? false : $data_user['name'];
- #set page title
- $titlee = $lang['FILEUSER'] . ': ' . $user_name;
- #there is result ? show them
- if($nums_rows != 0)
- {
- $no_results = false;
+ //set page title
+ $titlee = $lang['FILEUSER'] . ': ' . $user_name;
+ //there is result ? show them
+ if ($nums_rows != 0)
+ {
+ $no_results = false;
- if (!ip('submit_all_files')) // in delete all files we do not need any limit;
- {
- $query['LIMIT'] = "$start, $perpage";
- }
+ if (! ip('submit_all_files'))
+ { // in delete all files we do not need any limit;
+ $query['LIMIT'] = "$start, $perpage";
+ }
- is_array($plugin_run_result = Plugins::getInstance()->run('qr_select_files_in_fileuser', get_defined_vars())) ? extract($plugin_run_result) : null; //run hook
+ is_array($plugin_run_result = Plugins::getInstance()->run('qr_select_files_in_fileuser', get_defined_vars())) ? extract($plugin_run_result) : null; //run hook
- $result = $SQL->build($query);
+ $result = $SQL->build($query);
- $i = ($currentPage * $perpage) - $perpage;
- $tdnumi = $num = $files_num = $imgs_num = 0;
- while($row=$SQL->fetch_array($result))
- {
- ++$i;
- $file_info = array('::ID::' => $row['id'], '::NAME::' => $row['name'], '::DIR::' => $row['folder'], '::FNAME::' => $row['real_filename']);
+ $i = ($currentPage * $perpage) - $perpage;
+ $tdnumi = $num = $files_num = $imgs_num = 0;
+ while ($row=$SQL->fetch_array($result))
+ {
+ ++$i;
+ $file_info = ['::ID::' => $row['id'], '::NAME::' => $row['name'], '::DIR::' => $row['folder'], '::FNAME::' => $row['real_filename']];
- $is_image = in_array(strtolower(trim($row['type'])), array('gif', 'jpg', 'jpeg', 'bmp', 'png')) ? true : false;
+ $is_image = in_array(strtolower(trim($row['type'])), ['gif', 'jpg', 'jpeg', 'bmp', 'png']) ? true : false;
- $url = $is_image ? kleeja_get_link('image', $file_info) : kleeja_get_link('file', $file_info);
+ $url = $is_image ? kleeja_get_link('image', $file_info) : kleeja_get_link('file', $file_info);
- $url_thumb = kleeja_get_link('thumb', $file_info);
+ $url_thumb = kleeja_get_link('thumb', $file_info);
- $url_fileuser = $is_image
- ? $url
- : (file_exists("images/filetypes/". $row['type'] . ".png") ? "images/filetypes/" . $row['type'] . ".png" : 'images/filetypes/file.png');
+ $url_fileuser = $is_image
+ ? $url
+ : (file_exists('images/filetypes/' . $row['type'] . '.png') ? 'images/filetypes/' . $row['type'] . '.png' : 'images/filetypes/file.png');
$file_name = $row['real_filename'] == '' ? $row['name'] : $row['real_filename'];
- //make new lovely arrays !!
- $arr[] = array(
- 'id' => $row['id'],
- 'name_file' => shorten_text($file_name, 25),
- 'file_type' => $row['type'],
- 'uploads' => $row['uploads'],
- 'tdnum' => $tdnumi == 0 ? '
': '',
- 'tdnum2' => $tdnumi == 4 ? '
' : '',
- 'href' => $url,
- 'size' => readable_size($row['size']),
- 'time' => !empty($row['time']) ? kleeja_date($row['time']) : '...',
- 'thumb_link'=> $is_image ? $url_thumb : $url_fileuser,
- 'is_image' => $is_image,
- );
+ //make new lovely arrays !!
+ $arr[] = [
+ 'id' => $row['id'],
+ 'name_file' => shorten_text($file_name, 25),
+ 'file_type' => $row['type'],
+ 'uploads' => $row['uploads'],
+ 'tdnum' => $tdnumi == 0 ? '
': '',
+ 'tdnum2' => $tdnumi == 4 ? '
' : '',
+ 'href' => $url,
+ 'size' => readable_size($row['size']),
+ 'time' => ! empty($row['time']) ? kleeja_date($row['time']) : '...',
+ 'thumb_link'=> $is_image ? $url_thumb : $url_fileuser,
+ 'is_image' => $is_image,
+ ];
- $tdnumi = $tdnumi == 2 ? 0 : $tdnumi+1;
+ $tdnumi = $tdnumi == 2 ? 0 : $tdnumi+1;
- if (ip('submit_files') && $user_himself)
- {
+ if (ip('submit_files') && $user_himself)
+ {
is_array($plugin_run_result = Plugins::getInstance()->run('submit_in_fileuser', get_defined_vars())) ? extract($plugin_run_result) : null; //run hook
- //check for form key
- if(!kleeja_check_form_key('fileuser', 1800 /* half hour */))
- {
- kleeja_info($lang['INVALID_FORM_KEY']);
- }
+ //check for form key
+ if (! kleeja_check_form_key('fileuser', 1800 /* half hour */))
+ {
+ kleeja_info($lang['INVALID_FORM_KEY']);
+ }
- if ($_POST['del_' . $row['id']])
- {
- //delete from folder ..
- @kleeja_unlink($row['folder'] . '/' . $row['name'] );
+ if ($_POST['del_' . $row['id']])
+ {
+ //delete from folder ..
+ @kleeja_unlink($row['folder'] . '/' . $row['name'] );
- //delete thumb
- if (file_exists($row['folder'] . '/thumbs/' . $row['name'] ))
- {
- @kleeja_unlink($row['folder'] . '/thumbs/' . $row['name'] );
- }
+ //delete thumb
+ if (file_exists($row['folder'] . '/thumbs/' . $row['name'] ))
+ {
+ @kleeja_unlink($row['folder'] . '/thumbs/' . $row['name'] );
+ }
- $ids[] = $row['id'];
- if($is_image)
- {
- $imgs_num++;
- }
- else
- {
- $files_num++;
- }
+ $ids[] = $row['id'];
- $sizes += $row['size'];
- }
- }
+ if ($is_image)
+ {
+ $imgs_num++;
+ }
+ else
+ {
+ $files_num++;
+ }
+
+ $sizes += $row['size'];
+ }
+ }
if (ip('submit_all_files') && $user_himself)
- {
- is_array($plugin_run_result = Plugins::getInstance()->run('submit_in_all_fileuser', get_defined_vars())) ? extract($plugin_run_result) : null; //run hook
-
- //delete all files
- foreach($arr as $row)
- {
+ {
+ is_array($plugin_run_result = Plugins::getInstance()->run('submit_in_all_fileuser', get_defined_vars())) ? extract($plugin_run_result) : null; //run hook
- @kleeja_unlink($row['folder'] . '/' . $row['name'] );
+ //delete all files
+ foreach ($arr as $row)
+ {
+ @kleeja_unlink($row['folder'] . '/' . $row['name'] );
- //delete thumb
- if (file_exists($row['folder'] . '/thumbs/' . $row['name'] ))
- {
- @kleeja_unlink($row['folder'] . '/thumbs/' . $row['name'] );
- }
+ //delete thumb
+ if (file_exists($row['folder'] . '/thumbs/' . $row['name'] ))
+ {
+ @kleeja_unlink($row['folder'] . '/thumbs/' . $row['name'] );
+ }
- $ids[] = $row['id'];
- if($is_image)
- {
- $imgs_num++;
- }
- else
- {
- $files_num++;
- }
+ $ids[] = $row['id'];
- $sizes += $r['size'];
- }
- }
- }
+ if ($is_image)
+ {
+ $imgs_num++;
+ }
+ else
+ {
+ $files_num++;
+ }
- $SQL->freeresult($result_p);
- $SQL->freeresult($result);
+ $sizes += $r['size'];
+ }
+ }
+ }
- //
- //after submit
- //
- if (ip('submit_files') && $user_himself)
- {
- //no files to delete
- if(isset($ids) && !empty($ids))
- {
- $query_del = array(
- 'DELETE' => "{$dbprefix}files",
- 'WHERE' => "id IN (" . implode(',', $ids) . ")"
- );
+ $SQL->freeresult($result_p);
+ $SQL->freeresult($result);
+
+ //
+ //after submit
+ //
+ if (ip('submit_files') && $user_himself)
+ {
+ //no files to delete
+ if (isset($ids) && ! empty($ids))
+ {
+ $query_del = [
+ 'DELETE' => "{$dbprefix}files",
+ 'WHERE' => 'id IN (' . implode(',', $ids) . ')'
+ ];
is_array($plugin_run_result = Plugins::getInstance()->run('qr_del_files_in_filecp', get_defined_vars())) ? extract($plugin_run_result) : null; //run hook
- $SQL->build($query_del);
+ $SQL->build($query_del);
- if(($files_num <= $stat_files) && ($imgs_num <= $stat_imgs))
- {
- //update number of stats
- $update_query = array(
- 'UPDATE' => "{$dbprefix}stats",
- 'SET' => "sizes=sizes-$sizes,files=files-$files_num, imgs=imgs-$imgs_num",
- );
+ if (($files_num <= $stat_files) && ($imgs_num <= $stat_imgs))
+ {
+ //update number of stats
+ $update_query = [
+ 'UPDATE' => "{$dbprefix}stats",
+ 'SET' => "sizes=sizes-$sizes,files=files-$files_num, imgs=imgs-$imgs_num",
+ ];
- $SQL->build($update_query);
- }
+ $SQL->build($update_query);
+ }
- //delete is ok, show msg
- kleeja_info($lang['FILES_DELETED'], '', true, $linkgoto, 2);
- }
- else
- {
- //no file selected, show msg
- kleeja_info($lang['NO_FILE_SELECTED'], '', true, $linkgoto, 2);
- }
- }
+ //delete is ok, show msg
+ kleeja_info($lang['FILES_DELETED'], '', true, $linkgoto, 2);
+ }
+ else
+ {
+ //no file selected, show msg
+ kleeja_info($lang['NO_FILE_SELECTED'], '', true, $linkgoto, 2);
+ }
+ }
- if (ip('submit_all_files') && $user_himself)
- {
- if(isset($ids) && !empty($ids))
- {
- $query_del = array(
- 'DELETE' => "{$dbprefix}files",
- 'WHERE' => "id IN (" . implode(',', $ids) . ")"
- );
+ if (ip('submit_all_files') && $user_himself)
+ {
+ if (isset($ids) && ! empty($ids))
+ {
+ $query_del = [
+ 'DELETE' => "{$dbprefix}files",
+ 'WHERE' => 'id IN (' . implode(',', $ids) . ')'
+ ];
is_array($plugin_run_result = Plugins::getInstance()->run('qr_del_files_in_filecp', get_defined_vars())) ? extract($plugin_run_result) : null; //run hook
- $SQL->build($query_del);
+ $SQL->build($query_del);
- if(($files_num <= $stat_files) && ($imgs_num <= $stat_imgs))
- {
- //update number of stats
- $update_query = array(
- 'UPDATE' => "{$dbprefix}stats",
- 'SET' => "sizes=sizes-$sizes,files=files-$files_num, imgs=imgs-$imgs_num",
- );
+ if (($files_num <= $stat_files) && ($imgs_num <= $stat_imgs))
+ {
+ //update number of stats
+ $update_query = [
+ 'UPDATE' => "{$dbprefix}stats",
+ 'SET' => "sizes=sizes-$sizes,files=files-$files_num, imgs=imgs-$imgs_num",
+ ];
- $SQL->build($update_query);
- }
+ $SQL->build($update_query);
+ }
//write all delete log for current user for last time only
- $log_msg=$usrcp->name()." has deleted all his/her files at this time : " . date('H:i a, d-m-Y') . "] \r\n".
- "files numbers:".$files_num."\r\n".
- "images numbers:".$imgs_num."\r\n";
- $last_id=PATH . 'cache/'.$usrcp->id().$usrcp->name(); //based on user id
- file_put_contents($last_id,$log_msg);
+ $log_msg=$usrcp->name() . ' has deleted all his/her files at this time : ' . date('H:i a, d-m-Y') . "] \r\n" .
+ 'files numbers:' . $files_num . "\r\n" .
+ 'images numbers:' . $imgs_num . "\r\n";
+ $last_id=PATH . 'cache/' . $usrcp->id() . $usrcp->name(); //based on user id
+ file_put_contents($last_id, $log_msg);
//delete all files , show msg
- kleeja_info($lang['ALL_DELETED'], '', true, $linkgoto, 2);
-
-
- }
- else
- {
- //no file selected, show msg
- kleeja_info($lang['NO_FILES_DELETE'], '', true, $linkgoto, 2);
- }
-
- }
- }#num result
+ kleeja_info($lang['ALL_DELETED'], '', true, $linkgoto, 2);
+ }
+ else
+ {
+ //no file selected, show msg
+ kleeja_info($lang['NO_FILES_DELETE'], '', true, $linkgoto, 2);
+ }
+ }
+ }//num result
is_array($plugin_run_result = Plugins::getInstance()->run('end_fileuser', get_defined_vars())) ? extract($plugin_run_result) : null; //run hook
- break;
+ break;
- case 'profile' :
+ case 'profile' :
- //not a user
- if (!$usrcp->name())
- {
- kleeja_info($lang['USER_PLACE'], $lang['PLACE_NO_YOU']);
- }
+ //not a user
+ if (! $usrcp->name())
+ {
+ kleeja_info($lang['USER_PLACE'], $lang['PLACE_NO_YOU']);
+ }
- $stylee = 'profile';
- $titlee = $lang['PROFILE'];
- $action = 'ucp.php?go=profile';
- $name = $usrcp->name();
- $mail = $usrcp->mail();
- extract($usrcp->get_data('show_my_filecp, password_salt'));
- $data_forum = (int) $config['user_system'] == 1 ? true : false ;
- $link_avater = sprintf($lang['EDIT_U_AVATER_LINK'], '
' , '');
- $H_FORM_KEYS = kleeja_add_form_key('profile');
- //no error yet
- $ERRORS = false;
+ $stylee = 'profile';
+ $titlee = $lang['PROFILE'];
+ $action = 'ucp.php?go=profile';
+ $name = $usrcp->name();
+ $mail = $usrcp->mail();
+ extract($usrcp->get_data('show_my_filecp, password_salt'));
+ $data_forum = (int) $config['user_system'] == 1 ? true : false;
+ $link_avater = sprintf($lang['EDIT_U_AVATER_LINK'], '
', '');
+ $H_FORM_KEYS = kleeja_add_form_key('profile');
+ //no error yet
+ $ERRORS = false;
- if(!empty($profile_script_path))
- {
- $goto_forum_link = $profile_script_path;
- }
- else
- {
- if(isset($script_path))
- {
- $goto_forum_link = ($config['user_system'] == 'api') ? dirname($script_path) : $script_path;
- if($config['user_system'] == 'phpbb' || ($config['user_system'] == 'api' && strpos(strtolower($script_path), 'phpbb') !== false))
- {
- $goto_forum_link .= '/ucp.php?i=164';
- }
- else if($config['user_system'] == 'vb' || ($config['user_system'] == 'api' && strpos(strtolower($script_path), 'vb') !== false))
- {
- $goto_forum_link .= '/profile.php?do=editprofile';
- }
- }
- else
- {
- $goto_forum_link = '...';
- }
- }
+ if (! empty($profile_script_path))
+ {
+ $goto_forum_link = $profile_script_path;
+ }
+ else
+ {
+ if (isset($script_path))
+ {
+ $goto_forum_link = ($config['user_system'] == 'api') ? dirname($script_path) : $script_path;
- //_post
- $t_pppass_old = p('pppass_old');
- $t_ppass_old = p('ppass_old');
- $t_ppass_new = p('ppass_new');
- $t_ppass_new2 = p('ppass_new2');
+ if ($config['user_system'] == 'phpbb' || ($config['user_system'] == 'api' && strpos(strtolower($script_path), 'phpbb') !== false))
+ {
+ $goto_forum_link .= '/ucp.php?i=164';
+ }
+ elseif ($config['user_system'] == 'vb' || ($config['user_system'] == 'api' && strpos(strtolower($script_path), 'vb') !== false))
+ {
+ $goto_forum_link .= '/profile.php?do=editprofile';
+ }
+ }
+ else
+ {
+ $goto_forum_link = '...';
+ }
+ }
+
+ //_post
+ $t_pppass_old = p('pppass_old');
+ $t_ppass_old = p('ppass_old');
+ $t_ppass_new = p('ppass_new');
+ $t_ppass_new2 = p('ppass_new2');
is_array($plugin_run_result = Plugins::getInstance()->run('no_submit_profile', get_defined_vars())) ? extract($plugin_run_result) : null; //run hook
- //
- // after submit
- //
- if (ip('submit_data'))
- {
- $ERRORS = array();
+ //
+ // after submit
+ //
+ if (ip('submit_data'))
+ {
+ $ERRORS = [];
is_array($plugin_run_result = Plugins::getInstance()->run('submit_profile', get_defined_vars())) ? extract($plugin_run_result) : null; //run hook
- //check for form key
- if(!kleeja_check_form_key('profile'))
- {
- $ERRORS['form_key'] = $lang['INVALID_FORM_KEY'];
- }
+ //check for form key
+ if (! kleeja_check_form_key('profile'))
+ {
+ $ERRORS['form_key'] = $lang['INVALID_FORM_KEY'];
+ }
- #if there is new pass AND new pass1 = new pass2 AND old pass is exists & true
- if(!empty(p('ppass_new')))
- {
- if(p('ppass_new') != p('ppass_new2'))
- {
- $ERRORS['pass1_neq_pass2'] = $lang['PASS_O_PASS2'];
- }
- #if current pass is not correct
- elseif(empty(p('ppass_old')) || !$usrcp->kleeja_hash_password(p('ppass_old') . $password_salt, $userinfo['password']))
- {
- $ERRORS['curnt_old_pass'] = $lang['CURRENT_PASS_WRONG'];
- }
- }
+ //if there is new pass AND new pass1 = new pass2 AND old pass is exists & true
+ if (! empty(p('ppass_new')))
+ {
+ if (p('ppass_new') != p('ppass_new2'))
+ {
+ $ERRORS['pass1_neq_pass2'] = $lang['PASS_O_PASS2'];
+ }
+ //if current pass is not correct
+ elseif (empty(p('ppass_old')) || ! $usrcp->kleeja_hash_password(p('ppass_old') . $password_salt, $userinfo['password']))
+ {
+ $ERRORS['curnt_old_pass'] = $lang['CURRENT_PASS_WRONG'];
+ }
+ }
- #if email is not equal to current email AND email not exists before
- $new_mail = false;
- if($usrcp->mail() != trim(strtolower(p('pmail'))))
- {
- #if current pass is not correct
- if(empty(p('pppass_old')) || !$usrcp->kleeja_hash_password(p('pppass_old') . $password_salt, $userinfo['password']))
- {
- $ERRORS['curnt_old_pass'] = $lang['CURRENT_PASS_WRONG'];
- }
- #If email is not valid
- elseif(!preg_match('/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,4})$/i', trim(p('pmail'))) || trim(p('pmail')) == '')
- {
- $ERRORS['wrong_email'] = $lang['WRONG_EMAIL'];
- }
- #if email already exists
- elseif ($SQL->num_rows($SQL->query("SELECT * FROM {$dbprefix}users WHERE mail='" . strtolower(trim($SQL->escape(p('pmail')))) . "'")) != 0)
- {
- $ERRORS['mail_exists_before'] = $lang['EXIST_EMAIL'];
- }
+ //if email is not equal to current email AND email not exists before
+ $new_mail = false;
- $new_mail = true;
- }
+ if ($usrcp->mail() != trim(strtolower(p('pmail'))))
+ {
+ //if current pass is not correct
+ if (empty(p('pppass_old')) || ! $usrcp->kleeja_hash_password(p('pppass_old') . $password_salt, $userinfo['password']))
+ {
+ $ERRORS['curnt_old_pass'] = $lang['CURRENT_PASS_WRONG'];
+ }
+ //If email is not valid
+ elseif (! preg_match('/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,4})$/i', trim(p('pmail'))) || trim(p('pmail')) == '')
+ {
+ $ERRORS['wrong_email'] = $lang['WRONG_EMAIL'];
+ }
+ //if email already exists
+ elseif ($SQL->num_rows($SQL->query("SELECT * FROM {$dbprefix}users WHERE mail='" . strtolower(trim($SQL->escape(p('pmail')))) . "'")) != 0)
+ {
+ $ERRORS['mail_exists_before'] = $lang['EXIST_EMAIL'];
+ }
+
+ $new_mail = true;
+ }
is_array($plugin_run_result = Plugins::getInstance()->run('submit_profile2', get_defined_vars())) ? extract($plugin_run_result) : null; //run hook
- //no errors , do it
- if(empty($ERRORS))
- {
- $user_salt = substr(kleeja_base64_encode(pack("H*", sha1(mt_rand()))), 0, 7);
- $mail = $new_mail ? "mail='" . $SQL->escape(strtolower(trim(p('pmail')))) . "'" : '';
- $showmyfile = p('show_my_filecp', 'int') != $show_my_filecp ? ($mail == '' ? '': ',') . "show_my_filecp='" . p('show_my_filecp', 'int') . "'" : '';
- $pass = !empty(p('ppass_new')) ? ($showmyfile != '' || $mail != '' ? ',' : '') . "password='" . $usrcp->kleeja_hash_password($SQL->escape(p('ppass_new')) . $user_salt) .
- "', password_salt='" . $user_salt . "'" : "";
- $id = (int) $usrcp->id();
+ //no errors , do it
+ if (empty($ERRORS))
+ {
+ $user_salt = substr(kleeja_base64_encode(pack('H*', sha1(mt_rand()))), 0, 7);
+ $mail = $new_mail ? "mail='" . $SQL->escape(strtolower(trim(p('pmail')))) . "'" : '';
+ $showmyfile = p('show_my_filecp', 'int') != $show_my_filecp ? ($mail == '' ? '': ',') . "show_my_filecp='" . p('show_my_filecp', 'int') . "'" : '';
+ $pass = ! empty(p('ppass_new')) ? ($showmyfile != '' || $mail != '' ? ',' : '') . "password='" . $usrcp->kleeja_hash_password($SQL->escape(p('ppass_new')) . $user_salt) .
+ "', password_salt='" . $user_salt . "'" : '';
+ $id = (int) $usrcp->id();
- $update_query = array(
- 'UPDATE' => "{$dbprefix}users",
- 'SET' => $mail . $showmyfile . $pass,
- 'WHERE' => 'id=' . $id,
- );
+ $update_query = [
+ 'UPDATE' => "{$dbprefix}users",
+ 'SET' => $mail . $showmyfile . $pass,
+ 'WHERE' => 'id=' . $id,
+ ];
is_array($plugin_run_result = Plugins::getInstance()->run('qr_update_data_in_profile', get_defined_vars())) ? extract($plugin_run_result) : null; //run hook
- if(trim($update_query['SET']) == '')
- {
- $text = $lang['DATA_CHANGED_NO'];
- }
- else
- {
- $text = $lang['DATA_CHANGED_O_LO'];
- $SQL->build($update_query);
- }
+ if (trim($update_query['SET']) == '')
+ {
+ $text = $lang['DATA_CHANGED_NO'];
+ }
+ else
+ {
+ $text = $lang['DATA_CHANGED_O_LO'];
+ $SQL->build($update_query);
+ }
- kleeja_info($text, '', true, $action);
- }
+ kleeja_info($text, '', true, $action);
+ }
+ }//else submit
- }#else submit
+ is_array($plugin_run_result = Plugins::getInstance()->run('end_profile', get_defined_vars())) ? extract($plugin_run_result) : null; //run hook
- is_array($plugin_run_result = Plugins::getInstance()->run('end_profile', get_defined_vars())) ? extract($plugin_run_result) : null; //run hook
+ break;
- break;
+ //
+ //reset password page
+ //
+ case 'get_pass' :
- //
- //reset password page
- //
- case 'get_pass' :
+ //if not default system, let's give him a link for integrated script
+ if ((int) $config['user_system'] != 1)
+ {
+ $text = '
' . $lang['LOST_PASS_FORUM'] . '';
+ kleeja_info($text, $lang['PLACE_NO_YOU']);
+ }
- //if not default system, let's give him a link for integrated script
- if ((int) $config['user_system'] != 1)
- {
- $text = '
' . $lang['LOST_PASS_FORUM'] . '';
- kleeja_info($text, $lang['PLACE_NO_YOU']);
- }
+ //page info
+ $stylee = 'get_pass';
+ $titlee = $lang['GET_LOSTPASS'];
+ $action = 'ucp.php?go=get_pass';
+ $H_FORM_KEYS = kleeja_add_form_key('get_pass');
+ //no error yet
+ $ERRORS = false;
- //page info
- $stylee = 'get_pass';
- $titlee = $lang['GET_LOSTPASS'];
- $action = 'ucp.php?go=get_pass';
- $H_FORM_KEYS = kleeja_add_form_key('get_pass');
- //no error yet
- $ERRORS = false;
+ //after sent mail .. come here
+ //example: http://www.moyad.com/up/ucp.php?go=get_pass&activation_key=1af3405662ec373d672d003cf27cf998&uid=1
- //after sent mail .. come here
- //example: http://www.moyad.com/up/ucp.php?go=get_pass&activation_key=1af3405662ec373d672d003cf27cf998&uid=1
- #
- if(ig('activation_key') && ig('uid'))
- {
+ if (ig('activation_key') && ig('uid'))
+ {
is_array($plugin_run_result = Plugins::getInstance()->run('get_pass_activation_key', get_defined_vars())) ? extract($plugin_run_result) : null; //run hook
- $h_key = preg_replace('![^a-z0-9]!', '', g('activation_key'));
- $u_id = g('uid', 'int');
+ $h_key = preg_replace('![^a-z0-9]!', '', g('activation_key'));
+ $u_id = g('uid', 'int');
- #if it's empty ?
- if(trim($h_key) == '')
- {
- big_error('No hash key', 'This is not a good link ... try again!');
- }
+ //if it's empty ?
+ if (trim($h_key) == '')
+ {
+ big_error('No hash key', 'This is not a good link ... try again!');
+ }
- $result = $SQL->query("SELECT new_password FROM {$dbprefix}users WHERE hash_key='" . $SQL->escape($h_key) . "' AND id=" . $u_id . "");
- if($SQL->num_rows($result))
- {
- $npass = $SQL->fetch_array($result);
- $npass = $npass['new_password'];
- //password now will be same as new password
- $update_query = array(
- 'UPDATE'=> "{$dbprefix}users",
- 'SET' => "password = '" . $npass . "', new_password = '', hash_key = ''",
- 'WHERE' => 'id=' . $u_id,
- );
+ $result = $SQL->query("SELECT new_password FROM {$dbprefix}users WHERE hash_key='" . $SQL->escape($h_key) . "' AND id=" . $u_id . '');
+
+ if ($SQL->num_rows($result))
+ {
+ $npass = $SQL->fetch_array($result);
+ $npass = $npass['new_password'];
+ //password now will be same as new password
+ $update_query = [
+ 'UPDATE'=> "{$dbprefix}users",
+ 'SET' => "password = '" . $npass . "', new_password = '', hash_key = ''",
+ 'WHERE' => 'id=' . $u_id,
+ ];
is_array($plugin_run_result = Plugins::getInstance()->run('qr_update_newpass_activation', get_defined_vars())) ? extract($plugin_run_result) : null; //run hook
- $SQL->build($update_query);
+ $SQL->build($update_query);
- $text = $lang['OK_APPLY_NEWPASS'] . '
' . $lang['LOGIN'] . '';
- kleeja_info($text);
- exit;
- }
+ $text = $lang['OK_APPLY_NEWPASS'] . '
' . $lang['LOGIN'] . '';
+ kleeja_info($text);
- //no else .. just do nothing cuz it's wrong and wrong mean spams !
- redirect($config['siteurl'], true, true);
- exit;//i dont trust functions :)
- }
+ exit;
+ }
- //logon before ?
- if ($usrcp->name())
- {
+ //no else .. just do nothing cuz it's wrong and wrong mean spams !
+ redirect($config['siteurl'], true, true);
+
+ exit;//i dont trust functions :)
+ }
+
+ //logon before ?
+ if ($usrcp->name())
+ {
is_array($plugin_run_result = Plugins::getInstance()->run('get_pass_logon_before', get_defined_vars())) ? extract($plugin_run_result) : null; //run hook
- kleeja_info($lang['LOGINED_BEFORE']);
- }
+ kleeja_info($lang['LOGINED_BEFORE']);
+ }
- //_post
- $t_rmail = p('rmail');
+ //_post
+ $t_rmail = p('rmail');
- //no submit
- if (!ip('submit'))
- {
+ //no submit
+ if (! ip('submit'))
+ {
is_array($plugin_run_result = Plugins::getInstance()->run('no_submit_get_pass', get_defined_vars())) ? extract($plugin_run_result) : null; //run hook
- }
- else // submit
- {
-
- $ERRORS = array();
+ }
+ else
+ { // submit
+ $ERRORS = [];
is_array($plugin_run_result = Plugins::getInstance()->run('submit_get_pass', get_defined_vars())) ? extract($plugin_run_result) : null; //run hook
- //check for form key
- if(!kleeja_check_form_key('get_pass'))
- {
- $ERRORS['form_key'] = $lang['INVALID_FORM_KEY'];
- }
- if(!kleeja_check_captcha())
- {
- $ERRORS['captcha'] = $lang['WRONG_VERTY_CODE'];
- }
- if (empty(p('rmail')))
- {
- $ERRORS['empty_fields'] = $lang['EMPTY_FIELDS'];
- }
- if (!preg_match('/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,4})$/i', trim(strtolower(p('rmail')))))
- {
- $ERRORS['rmail'] = $lang['WRONG_EMAIL'];
- }
- else if ($SQL->num_rows($SQL->query("SELECT name FROM {$dbprefix}users WHERE mail='" . $SQL->escape(strtolower(p('rmail'))) . "'")) == 0)
- {
- $ERRORS['no_rmail'] = $lang['WRONG_DB_EMAIL'];
- }
+ //check for form key
+ if (! kleeja_check_form_key('get_pass'))
+ {
+ $ERRORS['form_key'] = $lang['INVALID_FORM_KEY'];
+ }
+
+ if (! kleeja_check_captcha())
+ {
+ $ERRORS['captcha'] = $lang['WRONG_VERTY_CODE'];
+ }
+
+ if (empty(p('rmail')))
+ {
+ $ERRORS['empty_fields'] = $lang['EMPTY_FIELDS'];
+ }
+
+ if (! preg_match('/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,4})$/i', trim(strtolower(p('rmail')))))
+ {
+ $ERRORS['rmail'] = $lang['WRONG_EMAIL'];
+ }
+ elseif ($SQL->num_rows($SQL->query("SELECT name FROM {$dbprefix}users WHERE mail='" . $SQL->escape(strtolower(p('rmail'))) . "'")) == 0)
+ {
+ $ERRORS['no_rmail'] = $lang['WRONG_DB_EMAIL'];
+ }
is_array($plugin_run_result = Plugins::getInstance()->run('submit_get_pass2', get_defined_vars())) ? extract($plugin_run_result) : null; //run hook
- //no errors, lets do it
- if(empty($ERRORS))
- {
- $query = array(
- 'SELECT'=> 'u.*',
- 'FROM' => "{$dbprefix}users u",
- 'WHERE' => "u.mail='" . $SQL->escape(strtolower(trim(p('rmail')))) . "'"
- );
+ //no errors, lets do it
+ if (empty($ERRORS))
+ {
+ $query = [
+ 'SELECT'=> 'u.*',
+ 'FROM' => "{$dbprefix}users u",
+ 'WHERE' => "u.mail='" . $SQL->escape(strtolower(trim(p('rmail')))) . "'"
+ ];
is_array($plugin_run_result = Plugins::getInstance()->run('qr_select_mail_get_pass', get_defined_vars())) ? extract($plugin_run_result) : null; //run hook
- $result = $SQL->build($query);
+ $result = $SQL->build($query);
- $row = $SQL->fetch_array($result);
+ $row = $SQL->fetch_array($result);
- //generate password
- $chars = 'abcdefghijklmnopqrstuvwxyz0123456789';
- $newpass = '';
- for ($i = 0; $i < 7; ++$i)
- {
- $newpass .= substr($chars, (mt_rand() % strlen($chars)), 1);
- }
+ //generate password
+ $chars = 'abcdefghijklmnopqrstuvwxyz0123456789';
+ $newpass = '';
- $hash_key = md5($newpass . time());
- $pass = (string) $usrcp->kleeja_hash_password($SQL->escape($newpass) . $row['password_salt']);
- $to = $row['mail'];
- $subject = $lang['GET_LOSTPASS'] . ':' . $config['sitename'];
- $activation_link = $config['siteurl'] . 'ucp.php?go=get_pass&activation_key=' . urlencode($hash_key) . '&uid=' . $row['id'];
- $message = "\n " . $lang['WELCOME'] . " " . $row['name'] . "\r\n " . sprintf($lang['GET_LOSTPASS_MSG'], $activation_link, $newpass) . "\r\n\r\n kleeja.com";
+ for ($i = 0; $i < 7; ++$i)
+ {
+ $newpass .= substr($chars, (mt_rand() % strlen($chars)), 1);
+ }
- $update_query = array(
- 'UPDATE'=> "{$dbprefix}users",
- 'SET' => "new_password = '" . $SQL->escape($pass) . "', hash_key = '" . $hash_key . "'",
- 'WHERE' => 'id=' . $row['id'],
- );
+ $hash_key = md5($newpass . time());
+ $pass = (string) $usrcp->kleeja_hash_password($SQL->escape($newpass) . $row['password_salt']);
+ $to = $row['mail'];
+ $subject = $lang['GET_LOSTPASS'] . ':' . $config['sitename'];
+ $activation_link = $config['siteurl'] . 'ucp.php?go=get_pass&activation_key=' . urlencode($hash_key) . '&uid=' . $row['id'];
+ $message = "\n " . $lang['WELCOME'] . ' ' . $row['name'] . "\r\n " . sprintf($lang['GET_LOSTPASS_MSG'], $activation_link, $newpass) . "\r\n\r\n kleeja.com";
+
+ $update_query = [
+ 'UPDATE'=> "{$dbprefix}users",
+ 'SET' => "new_password = '" . $SQL->escape($pass) . "', hash_key = '" . $hash_key . "'",
+ 'WHERE' => 'id=' . $row['id'],
+ ];
is_array($plugin_run_result = Plugins::getInstance()->run('qr_update_newpass_get_pass', get_defined_vars())) ? extract($plugin_run_result) : null; //run hook
- $SQL->build($update_query);
+ $SQL->build($update_query);
- $SQL->freeresult($result);
+ $SQL->freeresult($result);
- //send it
- $send = send_mail($to, $message, $subject, $config['sitemail'], $config['sitename']);
+ //send it
+ $send = send_mail($to, $message, $subject, $config['sitemail'], $config['sitename']);
- if (!$send)
- {
- kleeja_err($lang['CANT_SEND_NEWPASS']);
- }
- else
- {
- $text = $lang['OK_SEND_NEWPASS'] . '
' . $lang['LOGIN'] . '';
- kleeja_info($text);
- }
+ if (! $send)
+ {
+ kleeja_err($lang['CANT_SEND_NEWPASS']);
+ }
+ else
+ {
+ $text = $lang['OK_SEND_NEWPASS'] . '
' . $lang['LOGIN'] . '';
+ kleeja_info($text);
+ }
- //no need of this var
- unset($newpass);
- }
- }
+ //no need of this var
+ unset($newpass);
+ }
+ }
is_array($plugin_run_result = Plugins::getInstance()->run('end_get_pass', get_defined_vars())) ? extract($plugin_run_result) : null; //run hook
- break;
+ break;
- //
- // Wrapper for captcha file
- //
- case 'captcha':
- include PATH . 'includes/captcha.php';
- exit;
+ //
+ // Wrapper for captcha file
+ //
+ case 'captcha':
+ include PATH . 'includes/captcha.php';
- break;;
+ exit;
- //
- //add your own code here
- //
- default:
-
- $no_request = true;
+ break;;
+
+ //
+ //add your own code here
+ //
+ default:
+
+ $no_request = true;
is_array($plugin_run_result = Plugins::getInstance()->run('default_usrcp_page', get_defined_vars())) ? extract($plugin_run_result) : null; //run hook
- if($no_request):
- kleeja_err($lang['ERROR_NAVIGATATION']);
- endif;
+ if ($no_request):
+ kleeja_err($lang['ERROR_NAVIGATATION']);
+ endif;
- break;
-}#end switch
+ break;
+}//end switch
is_array($plugin_run_result = Plugins::getInstance()->run('end_usrcp_page', get_defined_vars())) ? extract($plugin_run_result) : null; //run hook
@@ -931,9 +944,9 @@ $titlee = empty($titlee) ? $lang['USERS_SYSTEM'] : $titlee;
$stylee = empty($stylee) ? 'info' : $stylee;
//show style
-if($show_style)
+if ($show_style)
{
- Saaheader($titlee, $extra);
- echo $tpl->display($stylee , $styleePath);
- Saafooter();
+ Saaheader($titlee, $extra);
+ echo $tpl->display($stylee, $styleePath);
+ Saafooter();
}