if ($_SESSION ['position'] == "Webmaster") { print ""; } if (isset ( $_GET ['show'] )) { $r = $db->update_sql ( "update authentification set isshow=" . $_GET ['show'] . " where id=" . $_GET ['id'] ); //$db->print_last_query(); print ""; exit (); } if (isset ( $_GET ['d'] )) { $r = $db->select ( "select id from authentification where id=" . $_GET ['d'] ); $row = $db->get_row ( $r, 'MYSQL_BOTH' ); $db->delete ( "delete from authentification where id=" . $row ['0'] ); //$db->print_last_query(); print ""; exit (); } if (! empty ( $_POST ['deleted_pdts'] )) { $r = $db->select ( "select id from authentification where id IN(" . $_POST ['deleted_pdts'] . ")" ); while ( $row = $db->get_row ( $r, 'MYSQL_BOTH' ) ) { $db->delete ( "delete from authentification where id=" . $row ['0'] ); } //$db->print_last_query(); print ""; exit (); } ?>
insert_sql ( "insert into authentification(First_name,Last_name,Username,Password,Status) values('" . $_POST ["txt_First"] . "','" . $_POST ["txt_Last"] . "','" . $_POST ["txt_Username"] . "','" . $_POST ["txt_Pass"] . "','" . $_POST ["cb_status"] . "')" ); //$db->print_last_query(); print ""; } ?>
update_sql ( "update authentification set name='" . $_POST ['txt_name'] . "',description='" . $_POST ['txt_wysiwyg'] . "',path='$i1' where id= " . $_GET ['id'] ); } //$db->print_last_query(); ?>