Message: Undefined offset: 3
File: /chroot/home/dymatoco/system/inc/common.php
Line: 58
| 47 |
function __autoload($library)
|
| 48 |
{
|
| 49 |
$path = SYSTEM . 'library/' . str_replace('_', '/', strtolower($library)) . '.php';
|
| 50 |
if (!is_file($path)) {
|
| 51 |
trigger_error('Library "' . $library . '" not found!');
|
| 52 |
}
|
| 53 |
require $path;
|
| 54 |
}
|
| 55 |
|
| 56 |
function getId($url_id)
|
| 57 |
{
|
| 58 |
list($id) = explode('-', $_GET[$url_id]);
|
| 59 |
if (!ctype_digit($id)) {
|
| 60 |
return show_404();
|
| 61 |
} else {
|
| 62 |
return $id;
|
| 63 |
}
|
| 64 |
}
|
| 65 |
|
| 66 |
function html($html)
|
| 67 |
{
|
| 68 |
return htmlentities($html, ENT_QUOTES);
|
| 69 |
}
|