Subversion Repositories wpShopGermany4

Rev

Rev 7662 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2579 daniel 1
<?php
2
 
3
	/**
4
	 * Template für den Karteireiter "Über" der Konfiguration
5
	 */
6
 
7
?>
3544 daniel 8
 
6005 hartmut 9
<div id="wpsg-bs" >
10
	<div class="wpsg_admin_submenu" >
6344 hartmut 11
 
6005 hartmut 12
		<div class="list-group" id="wpsg_statistics_tabs">
13
			<span class="list-group-head list-group-item"><?php echo __('Auswahl', 'wpsg'); ?></span>
6344 hartmut 14
 
15
				<a class="list-group-item <?php echo ((!isset($_REQUEST['subaction']))?'active':''); ?>"
6005 hartmut 16
				href="<?php echo wpsg_url(WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Admin&action=ueber'); ?>"><?php echo __('Über diese Installation', 'wpsg'); ?></a>
17
 
6344 hartmut 18
				<a class="list-group-item <?php echo ((isset($_REQUEST['subaction']) && $_REQUEST['subaction'] == 'phpinfo')?'active':''); ?>"
6005 hartmut 19
				href="<?php echo wpsg_url(WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Admin&action=ueber&subaction=phpinfo'); ?>"><?php echo __('PHP-Info', 'wpsg'); ?></a>
20
 
6344 hartmut 21
				<a class="list-group-item <?php echo ((isset($_REQUEST['subaction']) && $_REQUEST['subaction'] == 'systemcheck')?'active':''); ?>"
6005 hartmut 22
				href="<?php echo wpsg_url(WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Admin&action=ueber&subaction=systemcheck'); ?>"><?php echo __('Systemcheck', 'wpsg'); ?></a>
6344 hartmut 23
 
24
				<a class="list-group-item <?php echo ((isset($_REQUEST['subaction']) && $_REQUEST['subaction'] == 'systemlog')?'active':''); ?>"
6307 daniel 25
				href="<?php echo wpsg_url(WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Admin&action=ueber&subaction=systemlog'); ?>"><?php echo __('Fehlerprotokoll', 'wpsg'); ?></a>
8452 daniel 26
 
27
				<a class="list-group-item <?php echo ((isset($_REQUEST['subaction']) && $_REQUEST['subaction'] == 'updatelog')?'active':''); ?>"
28
				href="<?php echo wpsg_url(WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Admin&action=ueber&subaction=updatelog'); ?>"><?php echo __('Updateprotokoll', 'wpsg'); ?></a>
6344 hartmut 29
 
6005 hartmut 30
		</div>
31
 
32
		<div style="clear:both; margin-bottom:10px; margin-left:0px; margin-right:8px;"></div>
6344 hartmut 33
 
3544 daniel 34
	</div>
35
</div>
36
 
6005 hartmut 37
 
38
<div class="wpsg_admin_content">
39
 
40
 
41
<?php if (!isset($_REQUEST['subaction'])) { ?>
42
<?php echo wpsg_drawForm_AdminboxStart(__('Über diese Installation', 'wpsg')); ?>
6344 hartmut 43
 
6005 hartmut 44
	<div class="form-horizontal">
6344 hartmut 45
 
46
	<?php
6005 hartmut 47
	$arModule = array();
48
	foreach ($this->arModule as $m_key => $m)
49
	{
6344 hartmut 50
 
6005 hartmut 51
		$arModule[] = $m_key.((isset($m->version))?' '.$m->version:'');
6344 hartmut 52
 
6005 hartmut 53
	}
54
	?>
6359 hartmut 55
	<?php
56
	$t1 = ini_get('register_globals');
57
	$t2 = ini_get('safe_mode');
58
	$t3 = ini_get('max_execution_time');
59
 
60
	?>
6344 hartmut 61
 
6202 thomas 62
	<?php echo wpsg_drawForm_Text(__('wpShopGermany Version', 'wpsg'), WPSG_VERSION, array('text' => true)); ?>
63
	<?php echo wpsg_drawForm_Text(__('aktivierte wpShopGermany-Module', 'wpsg'), implode(', ', $arModule), array('text' => true)); ?>
64
	<?php echo wpsg_drawForm_Text(__('WordPress Version', 'wpsg'), get_bloginfo('version'), array('text' => true)); ?>
65
	<?php echo wpsg_drawForm_Text(__('PHP Version', 'wpsg'), phpversion(), array('text' => true)); ?>
66
	<?php echo wpsg_drawForm_Text(__('php.ini Einstellungen', 'wpsg'), "post_max_size: ". ini_get('post_max_size') . "<br />". "max_input_time: ". ini_get('max_input_time') . "<br />". "max_execution_time: ". ini_get('max_execution_time') . "<br />". "max_input_vars: ". ini_get('max_input_vars') . "<br />". "upload_max_filesize: ". ini_get('upload_max_filesize') . "<br />". "register_globals: ". ini_get('register_globals') . "<br />". "memory_limit: ". ini_get('memory_limit') . "<br />". "safe_mode: ". ini_get('safe_mode') . "<br />". "include_path: ". ini_get('include_path') . "<br />". "soap.wsdl_cache: ". ini_get('soap.wsdl_cache') . "<br />", array('text' => true, 'nohspc' => true)); ?>
67
	<?php echo wpsg_drawForm_Text(__('geladene PHP Erweiterungen', 'wpsg'), implode(', ',  get_loaded_extensions()), array('text' => true)); ?>
6344 hartmut 68
 
69
	<?php wpsg_drawForm_TextStart(); ?>
6005 hartmut 70
			<?php $arPlugins = $this->get_option('active_plugins'); ?>
71
				<?php foreach ((array)$arPlugins as $plugin) { $plugin_data = get_plugin_data(WPSG_PATH_CONTENT.'plugins/'.$plugin); ?>
72
				<?php echo $plugin_data['Name']; ?> / <?php echo $plugin_data['Version']; ?><br />
73
				<?php } ?>
2579 daniel 74
 
6344 hartmut 75
	<?php echo wpsg_drawForm_TextEnd(__('aktive Wordpress Plugins', 'wpsg')); ?>
2579 daniel 76
 
6344 hartmut 77
	<?php wpsg_drawForm_TextStart(); ?>
6005 hartmut 78
				<?php if (wpsg_isSizedArray($this->get_option('wpsg_plugintest_active_plugins'))) { ?>
79
				<a href="<?php echo WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Admin&subaction=plugintest_restore&noheader=1'; ?>"><?php echo __('Vormals aktivierte Module wieder herstellen aus Kompatibilitätstest', 'wpsg'); ?></a>
80
				<?php } else { ?>
81
				<a href="<?php echo WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Admin&subaction=plugintest_disable&noheader=1'; ?>"><?php echo __('Alle Plugins außer wpShopGermany deaktivieren (Kompatibilitätstest)', 'wpsg'); ?></a>
82
				<?php } ?>
6088 daniel 83
	<?php echo wpsg_drawForm_TextEnd(); ?>
6005 hartmut 84
	</div>
6344 hartmut 85
 
6633 daniel 86
	<div class="form-horizontal">
6677 daniel 87
 
6633 daniel 88
		<?php wpsg_drawForm_TextStart(); ?>
89
		<?php echo WPSG_PATH_USERVIEW; ?>
6635 thomas 90
		<?php echo wpsg_drawForm_TextEnd(__('Template Pfad für Anpassungen', 'wpsg')); ?>
6633 daniel 91
 
92
		<?php wpsg_drawForm_TextStart(); ?>
93
		<?php echo WPSG_PATH_TRANSLATION; ?>
94
		<?php echo wpsg_drawForm_TextEnd(__('Sprachdatei', 'wpsg')); ?>
95
 
6677 daniel 96
		<?php if ($this->get_option('wpsg_ignoreuserview') != '1') { ?>
6633 daniel 97
 
6677 daniel 98
			<?php $arProductTemplates = $this->loadProduktTemplates(false, true, true); ?>
6633 daniel 99
 
7069 thomas 100
			<?php $arFiles = wpsg_rglob(WPSG_PATH_VIEW.'*.phtml'); $arFiles = array_merge($arFiles, $arProductTemplates); ?>
6677 daniel 101
			<?php foreach ($arFiles as $k => $f) { $render_file = realpath($this->getTemplatefile($f)); if (!is_file($render_file) || realpath($f) == $render_file) { unset($arFiles[$k]); } else { $arFiles[$k] = $render_file; } } $arFiles = array_unique($arFiles); asort($arFiles); ?>
6633 daniel 102
 
6677 daniel 103
			<?php if (wpsg_isSizedArray($arFiles)) { ?>
104
				<div class="form-group-sm form-group">
105
					<div class="form-control-static">
6633 daniel 106
 
6677 daniel 107
						<label style="font-weight:bold;"><?php echo __('Angepasste Templates', 'wpsg'); ?></label><br /><br />
6633 daniel 108
 
6677 daniel 109
						<?php foreach($arFiles as $render_file) { ?>
6633 daniel 110
 
6677 daniel 111
							<?php echo str_replace(realpath(WPSG_PATH_WP), '', $render_file); ?><br />
6633 daniel 112
 
6677 daniel 113
						<?php } ?>
6633 daniel 114
 
6677 daniel 115
					</div>
116
				</div>
117
			<?php } ?>
6633 daniel 118
 
6677 daniel 119
		<?php } ?>
6633 daniel 120
 
6677 daniel 121
	</div>
6633 daniel 122
 
123
 
6005 hartmut 124
<?php echo wpsg_drawForm_AdminboxEnd(); ?>
125
<?php } ?>
2579 daniel 126
 
8452 daniel 127
<?php if (isset($_REQUEST['subaction']) && $_REQUEST['subaction'] == 'updatelog') {
128
 
129
	try { $wpsg_update_log = json_decode($this->get_option('wpsg_update_log'), true); } catch (\Throwable $e) { $wpsg_update_log = []; }
130
 
131
	?>
132
 
133
	<?php foreach ($wpsg_update_log as $log_index => $log) { ?>
134
 
135
		<?php echo wpsg_drawForm_AdminboxStart(
136
			wpsg_translate(__('Update vom #1# : #2# -> #3#', 'wpsg'), ($log['time']??''), ($log['pre']['version']??''), ($log['after']['version']??'')),
137
			'wpsg_update_log_'.$log_index,
138
			[
139
				'collapsed' => true,
140
				'collapsable' => true
141
			]
142
		); ?>
143
 
144
		<pre><?php print_r($log); ?></pre>
145
 
146
		<?php echo wpsg_drawForm_AdminboxEnd(); ?>
147
 
148
	<?php } ?>
149
 
150
<?php } ?>
151
 
6344 hartmut 152
<?php if (isset($_REQUEST['subaction']) && $_REQUEST['subaction'] == 'systemlog') { ?>
6308 daniel 153
<?php echo wpsg_drawForm_AdminboxStart(__('Fehlerprotokoll', 'wpsg'), '', array('style' => 'width:905px;')); ?>
2579 daniel 154
 
6307 daniel 155
	<?php if (!file_exists($GLOBALS['wpsg_sc']->getStorageRoot().'exception.log')) { ?>
6344 hartmut 156
		<p><?php echo __('Es wurden noch keine Systemfehler aufgezeichnet.', 'wpsg'); ?></p>
6307 daniel 157
	<?php } else { ?>
6344 hartmut 158
 
6527 hartmut 159
		<textarea style="width:875px; overflow-y:scroll; height:500px; font-size:12px; font-family:Courier;"><?php echo file_get_contents($GLOBALS['wpsg_sc']->getStorageRoot().'exception.log'); ?></textarea>
6344 hartmut 160
 
6307 daniel 161
		<a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=ueber&subaction=clearSysLog&noheader=1" class="button"><?php echo __('Protokolldatei löschen', 'wpsg'); ?></a>
6344 hartmut 162
 
6307 daniel 163
	<?php } ?>
6344 hartmut 164
 
6307 daniel 165
<?php echo wpsg_drawForm_AdminboxEnd(); ?>
166
<?php } ?>
167
 
6344 hartmut 168
<?php if (isset($_REQUEST['subaction']) && $_REQUEST['subaction'] == 'phpinfo') { ?>
6005 hartmut 169
<?php echo wpsg_drawForm_AdminboxStart(__('PHP-Info', 'wpsg')); ?>
7662 daniel 170
	<div id="phpinfo" class="form-horizontal">
171
 
172
		<style>
6005 hartmut 173
 
7662 daniel 174
			#phpinfo {background-color: #fff; color: #222; font-family: sans-serif;}
175
			#phpinfo pre {margin: 0; font-family: monospace;}
176
			#phpinfo a:link {color: #009; text-decoration: none; background-color: #fff;}
177
			#phpinfo a:hover {text-decoration: underline;}
178
			#phpinfo table {border-collapse: collapse; border: 0; width:750px; box-shadow: 1px 2px 3px #ccc;}
179
			#phpinfo .center {text-align: center;}
180
			#phpinfo .center table {margin: 1em auto; text-align: left;}
181
			#phpinfo .center th {text-align: center !important;}
182
			#phpinfo td, #phpinfo th {border: 1px solid #666; font-size: 75%; vertical-align: baseline; padding: 4px 5px;}
183
			#phpinfo h1 {font-size: 150%;}
184
			#phpinfo h2 {font-size: 125%;}
185
			#phpinfo .p {text-align: left;}
186
			#phpinfo .e {background-color: #ccf; width: 300px; font-weight: bold;}
187
			#phpinfo .h {background-color: #99c; font-weight: bold;}
188
			#phpinfo .v {background-color: #ddd; max-width: 300px; overflow-x: auto; word-wrap: break-word;}
189
			#phpinfo .v i {color: #999;}
190
			#phpinfo img {float: right; border: 0;}
191
			#phpinfo hr {width: 534px; background-color: #ccc; border: 0; height: 1px;}
192
 
193
		</style>
194
 
195
		<?php
196
 
197
			ob_start();
198
			phpinfo(); $pi = ob_get_contents();
199
			ob_end_clean();
200
 
201
			$pi = preg_replace('/<style(.*)<\/style>/is', '', $pi);
202
 
203
			echo $pi;
204
 
205
		?>
206
 
3228 daniel 207
	</div>
6005 hartmut 208
<?php echo wpsg_drawForm_AdminboxEnd(); ?>
209
<?php } ?>
210
 
211
 
6344 hartmut 212
<?php if (isset($_REQUEST['subaction']) && $_REQUEST['subaction'] == 'systemcheck') { ?>
6005 hartmut 213
<?php echo wpsg_drawForm_AdminboxStart(__('Systemcheck', 'wpsg')); ?>
214
 
6633 daniel 215
	<a class="button" href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=resetMessages&noheader=1"><?php echo __('Ausgeblendete Meldungen zurücksetzen', 'wpsg'); ?></a>
6005 hartmut 216
 
6633 daniel 217
	<?php $arData = $this->systemcheck(); ?>
6278 daniel 218
	<?php if (wpsg_isSizedArray($arData)) { ?>
219
		<div class="wpsg_admin_ueber_check_wrap">
220
			<?php foreach ($arData as $d) { ?>
6942 thomas 221
				<p class="wpsg_admin_ueber_check wpsg_admin_ueber_check_<?php echo $d[1]; ?> <?php echo array('bg-info', 'bg-warning', 'bg-danger')[$d[1] - 1]; ?>">
6278 daniel 222
					<?php echo $d[2]; ?>
223
				</p>
224
			<?php } ?>
225
		</div>
6633 daniel 226
	<?php } else { ?>
227
 
6278 daniel 228
	<?php } ?>
6344 hartmut 229
 
6005 hartmut 230
<?php echo wpsg_drawForm_AdminboxEnd(); ?>
231
<?php } ?>
232
 
233
 
6283 hartmut 234
</div>