浏览代码

Bumped version to 0.0.45

Jannick Knudsen 4 年之前
父节点
当前提交
5aa9570732
共有 8 个文件被更改,包括 242 次插入168 次删除
  1. 1 1
      VERSION
  2. 1 0
      VERSIONLOG
  3. 1 1
      package.json
  4. 63 81
      plug_color_admin_posts.php
  5. 65 0
      plug_mail.php
  6. 7 2
      plug_shortcodes.php
  7. 2 2
      plugin.php
  8. 102 81
      pluginoptions.php

+ 1 - 1
VERSION

@@ -1 +1 @@
-v0.0.44
+v0.0.45

+ 1 - 0
VERSIONLOG

@@ -43,3 +43,4 @@ v0.0.41
 v0.0.42
 v0.0.43
 v0.0.44
+v0.0.45

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
   "name": "dagsplug",
-  "version": "0.0.44",
+  "version": "0.0.45",
   "description": "",
   "main": "script_backend.js",
   "scripts": {

+ 63 - 81
plug_color_admin_posts.php

@@ -1,36 +1,31 @@
 <?php
 
-
-
-
-
 if (!class_exists("plug_color_admin_posts")) {
-	class plug_color_admin_posts {	
+	class plug_color_admin_posts {
 		private $options = array(); // Set $options in array
 		private $settings = array(); // Set $setting in array
 		var $hasform = true;
 		var $startet = false;
 		function __construct() {
-			$this->title = __("Color admin posts","dagsopt");
+			$this->title = __("Color admin posts", "dagsopt");
 		}
-		function start(){
+		function start() {
 			$this->startet = true;
-			add_action('admin_menu', array(&$this,'add_submenu'));
-			add_action('admin_init', array(&$this,'settings_api_init'));
+			add_action('admin_menu', array(&$this, 'add_submenu'));
+			add_action('admin_init', array(&$this, 'settings_api_init'));
 			$this->options = get_option('color_admin_posts');
-			add_action('admin_print_styles-edit.php', array(&$this,'load_color'));
-			add_action('admin_head', array(&$this,'load_farbtastic'));
-			if(!is_array(get_option('color_admin_posts'))) {$this->activate();}
+			add_action('admin_print_styles-edit.php', array(&$this, 'load_color'));
+			add_action('admin_head', array(&$this, 'load_farbtastic'));
+			if (!is_array(get_option('color_admin_posts'))) {$this->activate();}
 
-			
-			}
+		}
 		function activate() {
 			$options = array(
 				'color_draft' => '#FFFF99',
 				'color_pending' => '#87C5D6',
 				'color_published' => '#',
 				'color_future' => '#CCFF99',
-				'color_private' => '#FFCC99'
+				'color_private' => '#FFCC99',
 			);
 			add_option('color_admin_posts', $options);
 		}
@@ -42,87 +37,87 @@ if (!class_exists("plug_color_admin_posts")) {
 			?>
 			<style>
 				.status-draft {
-					background-color: <?php echo$options['color_draft']; ?> !important;
+					background-color: <?php echo $options['color_draft']; ?> !important;
 				}
-				
+
 				.status-future {
-					background-color: <?php echo$options['color_future']; ?> !important;
+					background-color: <?php echo $options['color_future']; ?> !important;
 				}
-				
+
 				.status-publish {
-					background-color: <?php echo$options['color_published']; ?> !important;
+					background-color: <?php echo $options['color_published']; ?> !important;
 				}
-				
+
 				.status-pending {
-					background-color: <?php echo$options['color_pending']; ?> !important;
+					background-color: <?php echo $options['color_pending']; ?> !important;
 				}
-				
+
 				.status-private {
-					background-color: <?php echo$options['color_private']; ?> !important;
+					background-color: <?php echo $options['color_private']; ?> !important;
 				}
 			</style>
 			<?php
-		}
+}
 		function load_farbtastic() {
 			global $current_screen;
-	// 		if($current_screen->id == 'appearance_page_color-admin-post') {
-				wp_enqueue_style('farbtastic');
-				wp_enqueue_script('farbtastic');
-	// 		}
+			// 		if($current_screen->id == 'appearance_page_color-admin-post') {
+			wp_enqueue_style('farbtastic');
+			wp_enqueue_script('farbtastic');
+			// 		}
 		}
 		function get_color_admin_post_settings() {
 			$this->settings['color_draft'] = array(
-				'title' => __('Drafts Posts', 'dagsopt')
+				'title' => __('Drafts Posts', 'dagsopt'),
 			);
 
 			$this->settings['color_pending'] = array(
 				'section' => 'general',
-				'title' => __('Pendings Posts', 'dagsopt')
+				'title' => __('Pendings Posts', 'dagsopt'),
 			);
 
 			$this->settings['color_published'] = array(
-				'title' => __('Published Posts', 'dagsopt')
+				'title' => __('Published Posts', 'dagsopt'),
 			);
 
 			$this->settings['color_future'] = array(
-				'title' => __('Futures Posts', 'dagsopt')
+				'title' => __('Futures Posts', 'dagsopt'),
 			);
 
 			$this->settings['color_private'] = array(
-				'title' => __('Privates Posts', 'dagsopt')
+				'title' => __('Privates Posts', 'dagsopt'),
 			);
 		}
 		function create_settings($args = array()) {
 			extract($args);
 			$field_args = array(
 				'id' => $id,
-				'label_for' => $id
+				'label_for' => $id,
 			);
 			add_settings_field($id, $title, array(
 				$this,
-				'display_settings'
+				'display_settings',
 			), __FILE__, 'general', $field_args);
 		}
 		public function display_settings($args = array()) {
 			extract($args);
 			$options = $this->options;
 			echo '<input class="regular-text" type="text" maxlength="7" id="' . $id . '" name="color_admin_posts[' . $id . ']" value="' . esc_attr($options[$id]) . '" />
-				  <br /><span class="description">' . $desc . '</span>
+				  <br /><span class="description">' . '</span>
 				  <div id="farbtastic-' . $id . '" class="farbtastic"></div>';
 		}
 		function settings_api_init() {
 			register_setting('color_admin_posts', 'color_admin_posts', array(
 				&$this,
-				'validate_settings'
+				'validate_settings',
 			));
 			add_settings_section('general', '', array(
 				&$this,
-				'general_section_callback'
+				'general_section_callback',
 			), __FILE__);
 			// Get the configuration of fields
 			$this->get_color_admin_post_settings();
 			// Generate fields
-			foreach($this->settings as $id => $setting) {
+			foreach ($this->settings as $id => $setting) {
 				$setting['id'] = $id;
 				$this->create_settings($setting);
 			}
@@ -139,26 +134,26 @@ if (!class_exists("plug_color_admin_posts")) {
 			return $input;
 		}
 		function add_submenu() {
-			$page = 	add_submenu_page ( 'xwpplugins', __ (  "Color Admin Posts" ), __ ( "Color Admin Posts" ), 'edit_theme_options', 'color-admin-post', array ( &$this,'display_page' ) );
+			$page = add_submenu_page('xwpplugins', __("Color Admin Posts"), __("Color Admin Posts"), 'edit_theme_options', 'color-admin-post', array(&$this, 'display_page'));
 		}
 		function display_page() {
 			// Check if user can access to the plugin
-			if(!current_user_can('administrator')) {
+			if (!current_user_can('administrator')) {
 				wp_die(__('You do not have sufficient permissions to access this page.', 'dagsopt'));
 			}
 			?>
 			<div class="wrap">
 				<div id="icon-options-general" class="icon32"></div>
 				<h2>Color Admin Posts</h2>
-				
+
 				<form id="form-color-admin-posts" method="post" action="options.php">
 					<?php
-					settings_fields('color_admin_posts');
-					do_settings_sections(__FILE__);
-					submit_button(__('Save Changes', 'dagsopt'));
-					?>
+settings_fields('color_admin_posts');
+			do_settings_sections(__FILE__);
+			submit_button(__('Save Changes', 'dagsopt'));
+			?>
 				</form>
-				
+
 			</div>
 
 			<script type="text/javascript">
@@ -190,46 +185,33 @@ if (!class_exists("plug_color_admin_posts")) {
 				});
 			</script>
 			<?php
-		}
-
-
-	function help(){
-				?>
-				<?php echo(__("Adds colors to","dagsopt")) ?> <a href="/wp-admin/edit.php"><?php echo(__("Posts","dagsopt")) ?></a> <?php echo(__("and","dagsopt")) ?> <a href="/wp-admin/edit.php?post_type=page"><?php echo(__("Pages","dagsopt")) ?></a><br>
-
-				<?php echo($this->startet ? __('See below','dagsopt') : '');?>
-				
-			<?php		
-			}
-			
-			
-		function admin_line(){
-			
-		  ?>
- 						<a href="/wp-admin/admin.php?page=color-admin-post"><?php echo(__("Settings","dagsopt")) ?></a>
-<?php
-$this->display_page();
-?>
- 		  <?php  
-		  
-		}
-		
-		
-		
-		}
-	// Start this plugin once all other plugins are fully loaded
-
+}
 
+		function help() {
+			?>
+				<?php echo (__("Adds colors to", "dagsopt")) ?> <a href="/wp-admin/edit.php"><?php echo (__("Posts", "dagsopt")) ?></a> <?php echo (__("and", "dagsopt")) ?> <a href="/wp-admin/edit.php?post_type=page"><?php echo (__("Pages", "dagsopt")) ?></a><br>
 
+				<?php echo ($this->startet ? __('See below', 'dagsopt') : ''); ?>
 
-	global $plug_color_admin_posts;
-	$plug_color_admin_posts = new plug_color_admin_posts();		
-		$this->dagsopt['plug_color_admin_posts'] = $plug_color_admin_posts;
-			
+			<?php
 }
 
+		function admin_line() {
 
+			?>
+ 						<a href="/wp-admin/admin.php?page=color-admin-post"><?php echo (__("Settings", "dagsopt")) ?></a>
+<?php
+$this->display_page();
+			?>
+ 		  <?php
 
+		}
 
+	}
+	// Start this plugin once all other plugins are fully loaded
 
+	global $plug_color_admin_posts;
+	$plug_color_admin_posts = new plug_color_admin_posts();
+	$this->dagsopt['plug_color_admin_posts'] = $plug_color_admin_posts;
 
+}

+ 65 - 0
plug_mail.php

@@ -0,0 +1,65 @@
+<?php
+
+if (!class_exists("plug_mail")) {
+	class plug_mail {
+		function __construct($ns) {
+			$this->title = __("mail", "dagsopt");
+			$this->pluginname = $ns->pluginname;
+			$this->file = $ns->file;
+			$this->ns = $ns;
+		}
+		function start() {
+			$this->logfile = fopen(ABSPATH . "/wp-content/uploads/maillog.log", 'a');
+
+			add_filter('wp_mail', array(&$this, 'mail_logger'), 10, 1);
+
+		}
+
+		function mail_logger($args) {
+
+			$str = date("Y-m-d");
+			$str .= " | " . date("H:i:s");
+			$str .= " | " . $args['to'];
+			$str .= " | " . $args['subject'];
+
+			fwrite($this->logfile, $str . "\n");
+
+			return $args;
+		}
+
+		function help() {
+			?>
+				<?php echo (__("Adds mail functions", "dagsopt")) ?>
+ 			<?php
+}
+
+		function Option($pre) {
+			update_option($pre . '_support_splash', $_POST[$pre . '_support_splash']);
+
+		}
+
+		function admin_line($pre) {
+			?>
+
+		 <hr>
+
+
+
+
+
+		  <?php echo (__("mail splash html register:", "dagsopt")) ?><br><textarea style="width: 100%; height: 150px;" name="<?php echo ($pre . '_support_splash'); ?>"><?php echo (stripslashes(get_option($pre . "_support_splash"))); ?></textarea>
+
+
+
+
+
+		  <?php
+}
+
+	}
+
+	global $plug_mail;
+	$plug_mail = new plug_mail($this);
+	$this->dagsopt['plug_mail'] = $plug_mail;
+
+}

+ 7 - 2
plug_shortcodes.php

@@ -29,11 +29,15 @@ if (!class_exists("plug_shortcodes")) {
 			global $post, $r_get_posts_excluded, $r_get_posts_cat_collect;
 			$oldpost = $post;
 			$caten = get_category_by_slug($cat);
-			$catid = $caten->cat_ID;
+			$ret = '';
+			if ($caten) {
+				$catid = $caten->cat_ID;
+			} else {
+				$catid = 3;
+			}
 			$r_get_posts_cat_collect[] = $catid;
 
 			$myposts = get_posts('numberposts=' . $num . '&order=DESC&orderby=post_date&category=' . $catid . "&exclude=" . implode(",", $r_get_posts_excluded));
-			$ret = '';
 			ob_start();
 			ob_clean();
 			foreach ($myposts as $post):
@@ -57,6 +61,7 @@ if (!class_exists("plug_shortcodes")) {
 			$ret = ob_get_contents();
 			ob_clean();
 			$ret .= '';
+
 			$post = $oldpost;
 
 			return $ret;

+ 2 - 2
plugin.php

@@ -4,7 +4,7 @@ Plugin Name: dagsopt
 Plugin URI: https://git.tum.dk/tum.dk/dagsplug/
 Description: Tools
 Author: iskedk
-Version: 0.0.44
+Version: 0.0.45
 Date: 2021-01-14
 Author URI: https://iske.dk/
 Text Domain: dagsopt
@@ -17,7 +17,7 @@ function wppluginspage() {
 $wp_dagsopt = new dagsopt();
 
 class dagsopt {
-	var $version = "0.0.44";
+	var $version = "0.0.45";
 	var $publish_date = "2021-01-14";
 	var $pluginname;
 	var $plugintitle;

+ 102 - 81
pluginoptions.php

@@ -1,118 +1,135 @@
 <div class="wrap">
 	<div id="icon-options-general" class="icon32"></div>
-	<h2><?php echo($this->plugintitle) ?> Plugin Configuration</h2>
-	<?php if(isset($_GET['msg']) && !empty($_GET['msg'])): ?>
-	<div id="<?php echo($this->pluginname) ?>-settings_updated" class="updated settings-error"> 
+	<h2><?php echo ($this->plugintitle) ?> Plugin Configuration</h2>
+	<?php if (isset($_GET['msg']) && !empty($_GET['msg'])): ?>
+	<div id="<?php echo ($this->pluginname) ?>-settings_updated" class="updated settings-error">
 		<p><strong><?php echo $_GET['msg']; ?></strong></p>
 	</div>
-	<?php endif; ?>
+	<?php endif;?>
+
 
-	
 	<hr>
-<div style="float: right;"><a href="<?php echo($this->readme_url); ?>">Readme</a></div>	
+<div style="float: right;"><a href="<?php echo ($this->readme_url); ?>">Readme</a></div>
 <pre>
-Version: <?php echo($this->version); ?> <?php echo($this->publish_date); ?>
+Version: <?php echo ($this->version); ?> <?php echo ($this->publish_date); ?>
 
-<?php dags_extras(); ?></pre>
-<hr>	
+<?php dags_extras();?></pre>
+<hr>
 		<form method="post" action="" enctype="multipart/form-data">
 		<table class="form-table">
-		 
- 			
-		
+
+
+
 	 		</table>
 
 		<table class="form-table">
 		 <?php
-		 foreach($this->dagsopt as $plugname => $plug){
-			 
-			$short = str_replace("plug_","",$plugname);
-			$vis = get_option($this->pluginname.'_'.$short,true);
-			if(isset($plug->hasform) && !($plug->hasform && !$vis)){
-				?>
+foreach ($this->dagsopt as $plugname => $plug) {
+
+	$short = str_replace("plug_", "", $plugname);
+	$vis = get_option($this->pluginname . '_' . $short, true);
+	if (isset($plug->hasform) && !($plug->hasform && !$vis)) {
+		?>
 			 <tr valign="top">
-				<td width="120"><label for="<?php echo($this->pluginname) ?>_<?php echo($short); ?>"><?php echo(!empty($plug->title) ? $plug->title : $short); ?></label> <?php echo($short);?></td>
+				<td width="120"><label for="<?php echo ($this->pluginname) ?>_<?php echo ($short); ?>"><?php echo (!empty($plug->title) ? $plug->title : $short); ?></label> <?php echo ($short); ?></td>
 				<td width="30">
-					<input name="<?php echo($this->pluginname) ?>_<?php echo($short); ?>" type="checkbox" id="<?php echo($this->pluginname) ?>_<?php echo($short); ?>" <?php if($vis) echo 'checked'; ?> />
+					<input name="<?php echo ($this->pluginname) ?>_<?php echo ($short); ?>" type="checkbox" id="<?php echo ($this->pluginname) ?>_<?php echo ($short); ?>" <?php if ($vis) {
+			echo 'checked';
+		}
+		?> />
 				</td>
 			<td>
 
 			</td>
-			<td width="120"><code><?php if(method_exists($plug,"help")){echo($plug->help());}else{} ?></code>
+			<td width="120"><code><?php if (method_exists($plug, "help")) {echo ($plug->help());} else {}?></code>
 			</td>
 			</tr>
 				<?php
-			}else{
-			?>
+} else {
+		?>
 			 <tr valign="top">
-				<td width="120"><label for="<?php echo($this->pluginname) ?>_<?php echo($short); ?>"><?php echo(!empty($plug->title) ? $plug->title : $short); ?></label> ::<?php echo($short);?></td>
+				<td width="120"><label for="<?php echo ($this->pluginname) ?>_<?php echo ($short); ?>"><?php echo (!empty($plug->title) ? $plug->title : $short); ?></label> ::<?php echo ($short); ?></td>
 				<td width="30">
-					<input name="<?php echo($this->pluginname) ?>_<?php echo($short); ?>" type="checkbox" id="<?php echo($this->pluginname) ?>_<?php echo($short); ?>" <?php if($vis) echo 'checked'; ?> />
+					<input name="<?php echo ($this->pluginname) ?>_<?php echo ($short); ?>" type="checkbox" id="<?php echo ($this->pluginname) ?>_<?php echo ($short); ?>" <?php if ($vis) {
+			echo 'checked';
+		}
+		?> />
 				</td>
 			<td>
-			<?php if($vis){echo($plug->admin_line($this->pluginname.'_'.$short));}else{} ?>
+			<?php if ($vis) {echo ($plug->admin_line($this->pluginname . '_' . $short));} else {}?>
 			</td>
-			<td width="120"><code><?php if(method_exists($plug,"help")){echo($plug->help());}else{} ?></code>
+			<td width="120"><code><?php if (method_exists($plug, "help")) {echo ($plug->help());} else {}?></code>
 			</td>
 			</tr>
-			<?php }} ?>
+			<?php }}?>
+
+
 
-	
- 
 			<tr valign="top">
-				<td><label for="<?php echo($this->pluginname) ?>_cron_enabled"><?php _e('Cron Enabled','dagsopt') ?></label></td>
+				<td><label for="<?php echo ($this->pluginname) ?>_cron_enabled"><?php _e('Cron Enabled', 'dagsopt')?></label></td>
 				<td >
-	<input name="<?php echo($this->pluginname) ?>_cron_enabled" type="checkbox" id="<?php echo($this->pluginname) ?>_cron_enabled" <?php if(get_option($this->pluginname.'_cron_enabled',true)) echo 'checked'; ?> />
-
-</td><td>	
-	<div style="<?php if(get_option($this->pluginname.'_cron_enabled',true)) echo 'background-color:#afffaf;'; ?> ">
- 
-<table style="<?php if(get_option($this->pluginname.'_cron_enabled') == false) echo 'display: none;'; ?>" >
+	<input name="<?php echo ($this->pluginname) ?>_cron_enabled" type="checkbox" id="<?php echo ($this->pluginname) ?>_cron_enabled" <?php if (get_option($this->pluginname . '_cron_enabled', true)) {
+	echo 'checked';
+}
+?> />
+
+</td><td>
+	<div style="<?php if (get_option($this->pluginname . '_cron_enabled', true)) {
+	echo 'background-color:#afffaf;';
+}
+?> ">
+
+<table style="<?php if (get_option($this->pluginname . '_cron_enabled') == false) {
+	echo 'display: none;';
+}
+?>" >
 <tr valign="top">
-				<th scope="row"><label for="<?php echo($this->pluginname) ?>_last_build"><?php _e('Last Build','dagsopt') ?></label></th>
+				<th scope="row"><label for="<?php echo ($this->pluginname) ?>_last_build"><?php _e('Last Build', 'dagsopt')?></label></th>
 				<td >
-					<?php $dd = date("j. M @ H:i",(get_option($this->pluginname.'_last_build',0)+(60*60*2)));echo($dd); ?>
+					<?php $dd = date("j. M @ H:i", (get_option($this->pluginname . '_last_build', 0) + (60 * 60 * 2)));
+echo ($dd);?>
 				</td>
-			</tr>	
+			</tr>
 			<tr valign="top">
-				<th scope="row"><label for="<?php echo($this->pluginname) ?>_next_build"><?php _e('Next Build','dagsopt') ?></label></th>
+				<th scope="row"><label for="<?php echo ($this->pluginname) ?>_next_build"><?php _e('Next Build', 'dagsopt')?></label></th>
 				<td >
-					<?php $dd = date("j. M @ H:i",(($this->next_scheduled)+(60*60*2)));echo($dd); ?>
+					<?php $dd = date("j. M @ H:i", (($this->next_scheduled) + (60 * 60 * 2)));
+echo ($dd);?>
 				</td>
-			</tr>	
+			</tr>
 			<tr valign="top">
-				<td scope="row"><label for="<?php echo($this->pluginname) ?>_cron_interval"><?php _e('Cron Execution Interval','dagsopt') ?></label></t>
+				<td scope="row"><label for="<?php echo ($this->pluginname) ?>_cron_interval"><?php _e('Cron Execution Interval', 'dagsopt')?></label></t>
 				<td>
-					<select name="<?php echo($this->pluginname) ?>_cron_interval" id="<?php echo($this->pluginname) ?>_cron_interval">
+					<select name="<?php echo ($this->pluginname) ?>_cron_interval" id="<?php echo ($this->pluginname) ?>_cron_interval">
 						<?php
-							$selectValue = get_option($this->pluginname.'_cron_interval',300);
-							for($counter=300;$counter<=7200;$counter=$counter+300){
-								$cc = $counter/60;
-								if($selectValue == $counter){
-									print "\n\t<option selected='selected' value='{$counter}'>{$cc} min</option>";
-								}else{
-									print "\n\t<option value='{$counter}'>{$cc} min</option>";
-								}
-							}
-					 	?>
+$selectValue = get_option($this->pluginname . '_cron_interval', 300);
+for ($counter = 300; $counter <= 7200; $counter = $counter + 300) {
+	$cc = $counter / 60;
+	if ($selectValue == $counter) {
+		print "\n\t<option selected='selected' value='{$counter}'>{$cc} min</option>";
+	} else {
+		print "\n\t<option value='{$counter}'>{$cc} min</option>";
+	}
+}
+?>
 					</select>
 				</td>
-			</tr>	
+			</tr>
 
 
 </table>
 </div>
 
 				</td>
-			</tr>	
-		 
+			</tr>
+
 
 		</table>
-		
-		
-		
+
+
+
 		<p class="submit">
-			<input type="submit" name="Submit" class="button-primary" value="<?php esc_attr_e('Save Changes','dagsopt') ?>" />
+			<input type="submit" name="Submit" class="button-primary" value="<?php esc_attr_e('Save Changes', 'dagsopt')?>" />
 		</p>
 	</form>
 
@@ -122,51 +139,55 @@ Version: <?php echo($this->version); ?> <?php echo($this->publish_date); ?>
 
 		<table class="form-table">
 		 <?php
-		 foreach($this->dagsopt as $plugname => $plug){
-			$short = str_replace("plug_","",$plugname);
-			$vis = get_option($this->pluginname.'_'.$short,true);
-			if(isset($plug->hasform) && $vis){
-			?>
+foreach ($this->dagsopt as $plugname => $plug) {
+	$short = str_replace("plug_", "", $plugname);
+	$vis = get_option($this->pluginname . '_' . $short, true);
+	if (isset($plug->hasform) && $vis) {
+		?>
 			 <tr valign="top">
-				<td width="120"><label for="<?php echo($this->pluginname) ?>_<?php echo($short); ?>"><?php echo($plug->title); ?></label></td>
+				<td width="120"><label for="<?php echo ($this->pluginname) ?>_<?php echo ($short); ?>"><?php echo ($plug->title); ?></label></td>
 				<td width="300">
-							 
+
 				</td>
 			<td>
-			<?php if($vis){echo($plug->admin_line($this->pluginname.'_'.$short));}else{} ?>
+			<?php if ($vis) {echo ($plug->admin_line($this->pluginname . '_' . $short));} else {}?>
 			</td>
 			</tr>
-			<?php }} ?>
+			<?php }}?>
 		</table>
 
-	
- 
+
+
 
 
 
 
 </div>
-<?php if(isset($_REQUEST['debug'])){ ?>
+<?php if (isset($_REQUEST['debug'])) {
+	?>
 
 <div>
 <h3>Debug</h3>
 <textarea style="width: 100%; height: 300px;">
-<?php $ttt=get_defined_vars();print_r($ttt); ?>
+<?php $ttt = get_defined_vars();
+	print_r($ttt);?>
 </textarea>
 <textarea style="width: 100%; height: 300px;">
-<?php $ttt=get_defined_vars();print_r($ttt); ?>
+<?php $ttt = get_defined_vars();
+	print_r($ttt);?>
 </textarea>
 <textarea style="width: 100%; height: 300px;">
-<?php $tt=getenv();print_r($tt); ?>
+<?php $tt = getenv();
+	print_r($tt);?>
 </textarea>
 <textarea style="width: 100%; height: 300px;">
-<?php print_r($_ENV); ?>
+<?php print_r($_ENV);?>
 </textarea>
 <textarea style="width: 100%; height: 300px;">
-<?php print_r($_SERVER); ?>
+<?php print_r($_SERVER);?>
 </textarea>
 <textarea style="width: 100%; height: 300px;">
-		  
+
 </textarea>
 </div>
-<?php } ?>
+<?php }?>