Lines 40-45
Link Here
|
40 |
|
40 |
|
41 |
define('APP_ROOT', dirname(__FILE__)); |
41 |
define('APP_ROOT', dirname(__FILE__)); |
42 |
|
42 |
|
|
|
43 |
if(isset($template) && preg_match("/\.\.|\//", $template)) { |
44 |
$template='classic'; |
45 |
} |
46 |
|
47 |
if (isset($lng) && preg_match("/\.\.|\//", $lng)) { |
48 |
$lng = 'en'; |
49 |
} |
50 |
|
43 |
// check to see if we have a random template first |
51 |
// check to see if we have a random template first |
44 |
if (isset($template) && $template == 'random') { |
52 |
if (isset($template) && $template == 'random') { |
45 |
$dir = opendir('templates/'); |
53 |
$dir = opendir('templates/'); |