ec - PHP Online

Form of PHP Sandbox

Enter Your PHP code here for testing/debugging in the Online PHP Sandbox. As in the usual PHP files, you can also add HTML, but do not forget to add the tag <?php in the places where the PHP script should be executed.



Your result can be seen below.

Result of php executing





Full code of ec.php

  1. <?php
  2. /*-------------------------------------------------------+
  3. | PHP-Fusion Content Management System
  4. | Copyright (c) 2002 - 2011 Nick Jones
  5. | http://www.php-fusion.co.uk/
  6. +--------------------------------------------------------+
  7. | Title: Gr_Radiostatus v2 for PHP-Fusion 7
  8. | Author: Ralf Thieme
  9. | Webseite: www.granade.eu
  10. +--------------------------------------------------------+
  11. | This program is released as free software under the
  12. | Affero GPL license. You can redistribute it and/or
  13. | modify it under the terms of this license which you
  14. | can read by viewing the included agpl.txt or online
  15. | at www.gnu.org/licenses/agpl.html. Removal of this
  16. | copyright header is strictly prohibited without
  17. | written permission from the original author(s).
  18. +--------------------------------------------------------*/
  19. if (!defined('IN_FUSION')) { die('Access Denied'); }
  20.  
  21. include_once INFUSIONS.'gr_radiostatus_panel/infusion_db.php';
  22. if (file_exists(INFUSIONS.'gr_radiostatus_panel/locale/'.LOCALESET.'index.php')) {
  23.         include INFUSIONS.'gr_radiostatus_panel/locale/'.LOCALESET.'index.php';
  24. } else {
  25.         include INFUSIONS.'gr_radiostatus_panel/locale/German/index.php';
  26. }
  27.  
  28. $inf_title = $locale['grrs_title'];
  29. $inf_description = $locale['grrs_desc'];
  30. $inf_version = '2.6';
  31. $inf_developer = 'Ralf Thieme';
  32. $inf_email = '[email protected]';
  33. $inf_weburl = 'http://www.granade.eu';
  34. $inf_folder = 'gr_radiostatus_panel';
  35.  
  36. $inf_newtable[1] = DB_GR_RADIOSTATUS." (
  37. rs_id                                                   SMALLINT(5) UNSIGNED NOT NULL AUTO_INCREMENT,
  38. rs_server_typ                   TINYINT(1) UNSIGNED NOT NULL DEFAULT '0',
  39. rs_server_id                    SMALLINT(5) UNSIGNED NOT NULL DEFAULT '1',
  40. rs_name                                         VARCHAR(20) NOT NULL DEFAULT 'Stream',
  41. rs_ip                                                   VARCHAR(255) NOT NULL DEFAULT '0.0.0.0',
  42. rs_port                                         VARCHAR(5) NOT NULL DEFAULT '8000',
  43. rs_pw                                                   VARCHAR(255) NOT NULL DEFAULT '',
  44. rs_apw                                          VARCHAR(255) NOT NULL DEFAULT '',
  45. rs_ps                                                   VARCHAR(255) NOT NULL DEFAULT '',
  46. rs_tele                                         TEXT NOT NULL,
  47. rs_flash                                        VARCHAR(255) NOT NULL DEFAULT '',
  48. rs_cache                                        VARCHAR(255) NOT NULL DEFAULT '',
  49. rs_usertyp                              TINYINT(1) UNSIGNED NOT NULL DEFAULT '1',
  50. rs_theme                                        TINYINT(1) UNSIGNED NOT NULL DEFAULT '1',
  51. rs_panel                                        TINYINT(1) UNSIGNED NOT NULL DEFAULT '1',
  52. rs_order                                        SMALLINT(5) UNSIGNED NOT NULL DEFAULT '0',
  53. rs_status                                       TINYINT(1) UNSIGNED NOT NULL DEFAULT '0',
  54. rs_status_gb                    TINYINT(1) UNSIGNED NOT NULL DEFAULT '0',
  55. rs_status_gb_dj         TINYINT(1) UNSIGNED NOT NULL DEFAULT '0',
  56. rs_status_boxen         TINYINT(1) UNSIGNED NOT NULL DEFAULT '0',
  57. rs_gb_max                                       SMALLINT(5) UNSIGNED NOT NULL DEFAULT '0',
  58. rs_gb_max_user          SMALLINT(5) UNSIGNED NOT NULL DEFAULT '1',
  59. rs_gb_popup                             TINYINT(1) UNSIGNED NOT NULL DEFAULT '0',
  60. rs_access                                       TINYINT(3) UNSIGNED NOT NULL DEFAULT '0',
  61. rs_access_l                             TINYINT(3) UNSIGNED NOT NULL DEFAULT '102',
  62. rs_access_a                             TINYINT(3) UNSIGNED NOT NULL DEFAULT '102',
  63. rs_access_gb                    TINYINT(3) UNSIGNED NOT NULL DEFAULT '102',
  64. rs_access_gb_user       TINYINT(3) UNSIGNED NOT NULL DEFAULT '0',
  65. PRIMARY KEY (rs_id),
  66. INDEX rs_panel (rs_panel, rs_access, rs_status),
  67. INDEX rs_boxen (rs_access, rs_status, rs_status_boxen),
  68. INDEX rs_boxen_id (rs_id, rs_access, rs_status, rs_status_boxen)
  69. ) ENGINE=MyISAM;";
  70.  
  71. $inf_newtable[2] = DB_GR_RADIOSTATUS_GRUSSBOX." (
  72. rsgb_id                                         BIGINT(10) UNSIGNED NOT NULL AUTO_INCREMENT,
  73. rsgb_stream                             SMALLINT(5) NOT NULL DEFAULT '1',
  74. rsgb_user_id                    MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0',
  75. rsgb_user_ip                    VARCHAR(255) NOT NULL DEFAULT '0.0.0.0',
  76. rsgb_user_name          VARCHAR(255) NOT NULL DEFAULT '',
  77. rsgb_user_ort                   VARCHAR(255) NOT NULL DEFAULT '',
  78. rsgb_title                              VARCHAR(255) NOT NULL DEFAULT '',
  79. rsgb_interpret          VARCHAR(255) NOT NULL DEFAULT '',
  80. rsgb_gruss                              TEXT NOT NULL,
  81. rsgb_time                                       INT(10) NOT NULL DEFAULT '0',
  82. rsgb_status                             TINYINT(1) NOT NULL DEFAULT '0',
  83. PRIMARY KEY (rsgb_id)
  84. ) ENGINE=MyISAM;";
  85.  
  86. $inf_newtable[3] = DB_GR_RADIOSTATUS_ACTION." (
  87. rsa_stream                              SMALLINT(5) NOT NULL DEFAULT '1',
  88. rsa_user_id                             MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '1',
  89. rsa_sction                              TINYINT(1) UNSIGNED NOT NULL DEFAULT '1',
  90. rsa_time                                        INT(10) UNSIGNED NOT NULL DEFAULT '0'
  91. ) ENGINE=MyISAM;";
  92.  
  93. $inf_newtable[4] = DB_GR_RADIOSTATUS_TITLE." (
  94. rst_interpret                   VARCHAR(255) NOT NULL DEFAULT '',
  95. rst_title                                       VARCHAR(255) NOT NULL DEFAULT '',
  96. rst_time                                        INT(10) UNSIGNED NOT NULL DEFAULT '0'
  97. ) ENGINE=MyISAM;";
  98.  
  99. $inf_droptable[1] = DB_GR_RADIOSTATUS;
  100. $inf_droptable[2] = DB_GR_RADIOSTATUS_GRUSSBOX;
  101. $inf_droptable[3] = DB_GR_RADIOSTATUS_ACTION;
  102. $inf_droptable[4] = DB_GR_RADIOSTATUS_TITLE;
  103.  
  104. $inf_adminpanel[1] = array(
  105.         'title' => $locale['grrs_admin1'],
  106.         'image' => '',
  107.         'panel' => 'gr_radiostatus_admin.php',
  108.         'rights' => 'GRRS'
  109. );
  110.  
  111. $inf_sitelink[1] = array(
  112.         'title' => $locale['grrs_link1'],
  113.         'url' => 'gr_radiostatus_info.php',
  114.         'visibility' => '0'
  115. );
  116.  
  117. ?>
File Description
  • ec
  • PHP Code
  • 17 Feb-2021
  • 4.75 Kb
You can Share it: