-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharg.php
executable file
·59 lines (42 loc) · 1.26 KB
/
arg.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<?php
/*
* @CODOLICENSE
*/
defined('_JEXEC') or die;
class codopm {
public static $secret = "DEd56g3@34azFfGv";
public static $path = "";
public static $xhash = "";
public static $db_prefix = "";
public static $db = null;
public static $config;
public static $language = "english";
public static $sef_q = "";
public static $req_path;
public static $table = array();
public static $upload_path;
public static $profile_id;
public static $profile_path;
public static $profile_name;
protected static $trans = false;
public static function get_lang() {
//$codopm_trans is declared in all language files
//For backward compatibility purposes always include english.php
require 'lang/english.php';
if (self::$language != "english") {
//Overwrite english with the new language
require 'lang/' . self::$language . '.php';
}
return $codopm_trans;
}
public static function t($index) {
if (!self::$trans) {
self::$trans = self::get_lang();
}
if (isset(self::$trans[$index])) {
echo self::$trans[$index];
} else {
echo $index; //echo passed if not found
}
}
}