stateObj($type,$id) ) ) ); break; case 'api': require_once('api.php'); break; case 'settings': $settings = array(); $keys = array('expire'); foreach($keys as $key){ $settings[$key] = get($key); } die(json_encode(array( 'settings'=>$settings, 'version'=>file_get_contents(PATH_DATA.'version') ))); break; case 'captcha': generate_captcha(); break; case 'error': die( json_encode( array( 'error'=>isset($_GET['error'])?$_GET['error']:'Error' ) ) ); break; } } if(!isset($_GET['type'])||!isset($_GET['id'])){ header('Location: page-index'); die(); } ?> Bugs
Title