index.php 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. <?php
  2. include '../auth.php';
  3. ?>
  4. <!DOCTYPE html>
  5. <meta name="apple-mobile-web-app-capable" content="yes" />
  6. <meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1, maximum-scale=1"/>
  7. <html>
  8. <head>
  9. <script type='text/javascript' charset='utf-8'>
  10. // Hides mobile browser's address bar when page is done loading.
  11. window.addEventListener('load', function(e) {
  12. setTimeout(function() { window.scrollTo(0, 1); }, 1);
  13. }, false);
  14. </script>
  15. <title>ArOZ Onlineβ</title>
  16. <link rel="stylesheet" href="../script/tocas/tocas.css">
  17. <link rel="stylesheet" href="../script/css/font-awesome.min.css">
  18. <script src="../script/tocas/tocas.js"></script>
  19. <script src="../script/jquery.min.js"></script>
  20. <script src="../script/ao_module.js"></script>
  21. </head>
  22. <body>
  23. <nav id="navbar" class="ts attached inverted borderless large menu">
  24. <div class="ts narrow container">
  25. <a href="../index.php" class="item">ArOZ Online β</a>
  26. </div>
  27. </nav>
  28. <div class="ts container">
  29. <div class="ts slate">
  30. <i class="upload icon"></i>
  31. <span class="header">Hello there!</span>
  32. <span id="descriptionText" class="description">This is a developer function that accept external upload request by other functional modules.<br>
  33. If you enter here accidentally, please press <a href="../">HERE</a> and return to the function menu.</span>
  34. </div>
  35. <!--
  36. <div class="ts segment">
  37. Advance System Upload Functions <br><br>
  38. <button class="ts labeled icon basic button" onClick="ModuleInstall();">
  39. <i class="file archive outline icon"></i>
  40. Module Installer
  41. </button>
  42. <button class="ts labeled icon basic button">
  43. <i class="trash icon"></i>
  44. Module Uninstall
  45. </button>
  46. </div> -->
  47. <div class="ts segment">
  48. <details class="ts accordion">
  49. <summary>
  50. <i class="dropdown icon"></i> I am a developer! How can I use this module?
  51. </summary>
  52. <div class="content">
  53. <div class="ts padded slate">
  54. <span class="header">Wow! It's all so simple! :)</span>
  55. <span class="description">It is just as simple as passing parameters to the upload interface. Here is an example:</span>
  56. <div class="action">
  57. <blockquote class="ts secondary quote">
  58. Example Command for uploading files into the Audio Module:<br>
  59. <i class="code icon"></i>"Upload Manager/upload_interface.php?target=Audio"<br><br>
  60. Example Command for the above plus a reminder:<br>
  61. <i class="code icon"></i>"Upload Manager/upload_interface.php?target=Audio&reminder=This is a reminder :)"<br><br>
  62. Example Command for the above plus a limitation on upload file extensions:<br>
  63. <i class="code icon"></i>"Upload Manager/upload_interface.php?target=Audio&reminder=This is a reminder :)&filetype=mp3,mp4"<br><br>
  64. Example Command for the above plus an upload process handler that should run after uplaod finished.<br>
  65. <i class="code icon"></i>"Upload Manager/upload_interface.php?target=Audio&reminder=This is a reminder :)&filetype=mp3,mp4&finishing=process_handler.php"<br><br>
  66. <i class="caution sign icon"></i>Multiple file extensions have to be seperated with ","<br>
  67. <i class="caution sign icon"></i>Finishing process handler must be a php within the root of your module.<br>
  68. <i class="notice circle icon"></i>For more information, please visit the Github page or send an email to the developer.
  69. </blockquote>
  70. </div>
  71. </div>
  72. </div>
  73. </details>
  74. </div>
  75. <?php
  76. if (isset($_GET['errmsg']) && $_GET['errmsg'] != "" && isset($_GET['source']) && $_GET['source'] != ""){
  77. echo '<div class="ts text container">';
  78. echo '<div class="ts negative segment">
  79. <h3>Seems you call the API with wrong format :( </h3>
  80. <p>'.$_GET['errmsg'].'<br>
  81. Request denied by: '.$_GET['source'].'</p>
  82. </div>';
  83. echo '</div>';
  84. }
  85. ?>
  86. </div>
  87. <script>
  88. if (ao_module_virtualDesktop){
  89. $("#navbar").hide();
  90. ao_module_setWindowIcon("upload");
  91. $("#descriptionText").html("This is a developer function that accept external upload request by other functional modules. <br>Please close this window if you open this function by accident.");
  92. }
  93. function ModuleInstall(){
  94. window.location.href = "upload_interface.php?target=Upload Manager&filetype=zip&finishing=moduleInstaller.php?rdt=um";
  95. }
  96. </script>
  97. </body>
  98. </html>