header("Content-Type: application/x-MagicSmoke");
//check whether the request is known
-/**all valid requests must be listed here (in lower case)*/
+// the tr() function is a dummy used by the Qt linguist/lupdate to generate a translation
+function tr($x){return $x;}
+/**all valid requests must be listed here (in lower case and wrapped in tr())*/
$ALLOWEDREQUESTS=array(
- "serverinfo", //info request
- "startsession","sessionauth","closesession", //session requests
+ tr("serverinfo"), //info request
+ tr("startsession"),tr("sessionauth"),tr("closesession"), //session requests
//all requests below here need authentication
- "getmyroles", //role management: get my own ACLs
+ tr("getmyroles"), //role management: get my own ACLs
//all requests below here need a role entry in the DB
- "getusers","setuserdescription","getuseracl","setuseracl","getuserhosts","setuserhosts","adduser","deleteuser",//user management
- "gethosts","sethost","addhost","deletehost", //host management
- "geteventlist", "geteventdata", "seteventdata", //event infos
- "getroomdata","setroomdata",//room infos
- "getcustomerlist" //customer info
+ tr("getusers"),tr("setuserdescription"),tr("getuseracl"),tr("setuseracl"),tr("getuserhosts"),tr("setuserhosts"),tr("adduser"),tr("deleteuser"),//user management
+ tr("gethosts"),tr("sethost"),tr("addhost"),tr("deletehost"), //host management
+ tr("geteventlist"),tr("geteventdata"),tr("seteventdata"), //event infos
+ tr("getroomdata"),tr("setroomdata"),//room infos
+ tr("getcustomerlist") //customer info
);
/**contains the low-level request name from the client*/
$SMOKEREQUEST=strtolower($_SERVER["HTTP_X_MAGICSMOKE_REQUEST"]);