Files
keliopanel-v4/system/api/api.php
2016-02-21 14:28:40 +01:00

23 lines
379 B
PHP
Executable File

<?php
/**
* @function __autoload
* @brief Autoload an API when it is called
*/
function __autoload ($api_name)
{
require_once(PATH_API.strtolower($api_name).'.api.php');
}
/**
* @function redirect()
* @brief Redirect and stop execution
* @param url -> name of module to redirect (not an url)
*/
function redirect($url)
{
header('Location: '.TPL_HOST.$url);
exit();
}