File indexing completed on 2024-12-22 05:33:22
0001 <?php 0002 0003 include("gfx3/lib.php"); 0004 0005 $gameid = EHeaderDataParser::db_get("id"); 0006 0007 $client = new OCSClient(); 0008 $data = $client->get("v1/content/data/$gameid/"); 0009 0010 if(EUser::nick()!=$data["ocs"]["data"]["content"]["personid"]){ 0011 ELog::error("You are not authorized to view this page!"); 0012 } 0013 0014 echo "<div class=\"modal-header\"> 0015 <button type=\"button\" class=\"close\" data-dismiss=\"modal\">×</button> 0016 <h3>Modify your game</h3> 0017 </div> 0018 0019 <form class=\"form-horizontal\" action=\"/editGameAction.php\" target=\"_self\" method=\"post\"> 0020 <div class=\"modal-body\"> 0021 <fieldset> 0022 0023 <div class=\"control-group\"> 0024 <label class=\"control-label\" for=\"name\">Title</label> 0025 <div class=\"controls\"> 0026 <input type=\"text\" name=\"name\" class=\"input-xlarge\" id=\"name\" value=\"".EUtility::stripslashes($data["ocs"]["data"]["content"]["name"])."\"> 0027 <input type=\"hidden\" name=\"idcontent\" class=\"input-xlarge\" id=\"idcontent\" value=\"$gameid\"> 0028 </div> 0029 </div> 0030 0031 <div class=\"control-group\"> 0032 <label class=\"control-label\" for=\"downloadname1\">Download name</label> 0033 <div class=\"controls\"> 0034 <input type=\"text\" name=\"downloadname1\" class=\"input-xlarge\" id=\"downloadname1\" 0035 value=\"".EUtility::stripslashes($data["ocs"]["data"]["content"]["downloadname1"])."\"> 0036 <p class=\"help-block\">- this is the label that will be shown to download your game</p> 0037 </div> 0038 </div> 0039 0040 <div class=\"control-group\"> 0041 <label class=\"control-label\" for=\"downloadlink1\">Download link</label> 0042 <div class=\"controls\"> 0043 <input type=\"text\" name=\"downloadlink1\" class=\"input-xlarge\" id=\"downloadlink1\" 0044 value=\"".EUtility::stripslashes($data["ocs"]["data"]["content"]["downloadlink1"])."\"> 0045 <p class=\"help-block\">- this is the direct link to your game. If you want to host it on gamingfreedom server, you can do it uploading 0046 it after having created this skeleton</p> 0047 </div> 0048 </div> 0049 0050 <div class=\"control-group\"> 0051 <label class=\"control-label\" for=\"description\">Summary</label> 0052 <div class=\"controls\"> 0053 <textarea cols=\"60\" rows=\"3\" name=\"summary\" class=\"input-xlarge\" 0054 id=\"summary\">".EUtility::br2nl(EUtility::stripslashes($data["ocs"]["data"]["content"]["summary"]))."</textarea> 0055 <p class=\"help-block\">- A short description to your game</p> 0056 </div> 0057 </div> 0058 0059 <div class=\"control-group\"> 0060 <label class=\"control-label\" for=\"description\">Features</label> 0061 <div class=\"controls\"> 0062 <textarea cols=\"60\" rows=\"3\" name=\"description\" class=\"input-xlarge\" 0063 id=\"description\">".EUtility::br2nl(EUtility::stripslashes($data["ocs"]["data"]["content"]["description"]))."</textarea> 0064 <p class=\"help-block\">- A more in depth description and a list of features.</p> 0065 </div> 0066 </div> 0067 0068 <div class=\"control-group\"> 0069 <label class=\"control-label\" for=\"version\">Version</label> 0070 <div class=\"controls\"> 0071 <input type=\"text\" name=\"version\" class=\"input-xlarge\" id=\"version\" 0072 value=\"".EUtility::stripslashes($data["ocs"]["data"]["content"]["version"])."\"> 0073 <p class=\"help-block\">- set here the version of your application</p> 0074 </div> 0075 </div> 0076 0077 <div class=\"control-group\"> 0078 <label class=\"control-label\" for=\"changelog\">Changelog</label> 0079 <div class=\"controls\"> 0080 <textarea cols=\"60\" rows=\"3\" name=\"changelog\" class=\"input-xlarge\" 0081 id=\"changelog\">".EUtility::stripslashes(EUtility::br2nl($data["ocs"]["data"]["content"]["changelog"]))."</textarea> 0082 <p class=\"help-block\">- putting changelog helps your fans to know what is changed and what improvements 0083 have you put</p> 0084 </div> 0085 </div> 0086 0087 </fieldset> 0088 0089 </div> 0090 <div class=\"modal-footer\" style=\"background-color:#FFFFFF;\"> 0091 <input type=\"submit\" class=\"btn btn-primary\" value=\"Next\"> 0092 </div> 0093 0094 </form> 0095 "; 0096 0097 ?>