Ejemplo n.º 1
0
Archivo: Api.php Proyecto: nuav/Group
 public function logout()
 {
     Session . RemoveAll();
     //Removes all session variables
 }
Ejemplo n.º 2
0
}
switch ($_GET["action"]) {
    case "add_item":
        AddItem($_GET["id"], $_GET["con"]);
        ShowCart();
        break;
    case "update_item":
        UpdateItem($_GET["id"], $_GET["con"]);
        ShowCart();
        break;
    case "remove_item":
        RemoveItem($_GET["id"]);
        ShowCart();
        break;
    case "remove_all":
        RemoveAll();
        ShowCart();
        break;
    default:
        ShowCart();
}
function AddItem($bookId, $container)
{
    //This create an error
    //function can not detect connection
    $dbUser = "******";
    $dbPass = "";
    $dbName = "libraryDB";
    $dbServer = "127.0.0.1";
    // Connect to the database and return
    // true/false depending on whether or
Ejemplo n.º 3
0
	if(!CategoriesCheckRightsRead()){
		echo FATAL_ERROR_SHOW_128("{ERROR_NO_PRIVS}<hr>".@implode("<br>", $GLOBALS["CategoriesCheckRights"]));
		exit;
		
	}
	if(isset($_GET["test-cat"])){test_category();exit;}
	if(isset($_GET["add-uris-js"])){add_uris_js();exit;}
	if(isset($_GET["add-uris-popup"])){add_uris_popup();exit;}
	if(isset($_GET["tabs"])){tabs();exit;}
	if(isset($_GET["popup"])){popup();exit;}
	if(isset($_GET["field-list"])){field_list();exit;}
	if(isset($_GET["query"])){query();exit;}
	if(isset($_POST["items"])){SaveItems();exit;}
	if(isset($_POST["DeleteCategorizedURI"])){DeleteCategorizedURI();exit;}
	if(isset($_GET["move-category-popup"])){MoveCategory_popup();exit;}
	if(isset($_POST["RemoveAll"])){RemoveAll();exit;}
	if(isset($_POST["MoveCategorizedWebsitePattern"])){MoveCategorizedWebsiteAll();exit;}
	if(isset($_GET["RemoveDisabled-popup"])){removedisabled_popup();exit;}
	if(isset($_POST["RemoveDisabled"])){removedisabled_perform();exit;}
	if(isset($_POST["WEBTESTS"])){test_category_perform();exit;}
js();	
	
function js(){
	header("content-type: application/x-javascript");
	$page=CurrentPageName();
	$tpl=new templates();
	$width=950;
	$title=$tpl->_ENGINE_parse_body("{categories}");
	if($_GET["category"]<>null){$title=$title."::{$_GET["category"]}";$width=720;}
	if($_GET["website"]<>null){
		if(preg_match("#^www\.(.+)#", $_GET["website"],$re)){$_GET["website"]=$re[1];}