HEX
Server: Apache
System:
User: ()
PHP: 7.4.33
Disabled: system,passthru,shell_exec,exec,proc_close,proc_open,proc_get_status,proc_nice,proc_terminate,highlight_file,escapeshellcmd,pclose,debugger_off,debugger_on,leak,listen,define_syslog_variables,ftp_exec,posix_uname,posix_getpwuid,get_current_user,getmyuid,getmygid,apache_child_terminate,posix_kill,posix_mkfifo,posix_setpgid,posix_setsid,posix_setuid,escapeshellarg,myshellexec,escapeshellarg,disk_free_space,disk_total_space,show_source,dl,symlink,listen,syslog,php_ini_scanned_files,inurl,apache_setenv,closelog,rar_open,bzopen,bzread,bzwrite,shellcode,show_source,apache_get_modules,apache_get_version,apache_note,openlog,crack_check,crack_closedict,pcntl_exec,ini_alter,backtick,cmd,virtual,getservbyport,myshellexec,hypot,pg_host,phpini,link,readlink,syslog,id,ftok,posix_access,error_log,sym,php_u,psockopen,apache_child_k_closedict,crack_getlastmessage,crack_opendict,php_ini,ini_restore,popen,curl_multi_exec,php_uname
Upload Files
File: /home/homework/public_html/kurs3/wp-content/plugins/wordfence/lib/wfHelperString.php
<?php


class wfHelperString {

	/**
	 * cycle through arguments
	 *
	 * @return mixed
	 */
	public static function cycle() {
		static $counter = 0;
		$args = func_get_args();
		if (empty($args)) {
			$counter = 0;
			return null;
		}
		$return_val = $args[$counter % count($args)];
		$counter++;
		return $return_val;
	}

	public static function plainTextTable($table) {
		if (count($table) === 0) {
			return '';
		}
		$colLengths = array();
		for ($row = 0; $row < count($table); $row++) {
			for ($col = 0; $col < count($table[$row]); $col++) {
				foreach (explode("\n", $table[$row][$col]) as $colText) {
					if (!isset($colLengths[$col])) {
						$colLengths[$col] = strlen($colText);
						continue;
					}
					$len = strlen($colText);
					if ($len > $colLengths[$col]) {
						$colLengths[$col] = $len;
					}
				}
			}
		}
		$hr = str_repeat('-', array_sum($colLengths) + (count($colLengths) * 3) + 1);
		$output = $hr . "\n";
		for ($row = 0; $row < count($table); $row++) {
			$colHeight = 0;
			for ($col = 0; $col < count($table[$row]); $col++) {
				$height = substr_count($table[$row][$col], "\n");
				if ($height > $colHeight) {
					$colHeight = $height;
				}
			}
			for ($colRow = 0; $colRow <= $colHeight; $colRow++) {
				for ($col = 0; $col < count($table[$row]); $col++) {
					$colRows = explode("\n", $table[$row][$col]);
					$output .= '| ' . str_pad(isset($colRows[$colRow]) ? $colRows[$colRow] : '', $colLengths[$col], ' ', STR_PAD_RIGHT) . ' ';
				}
				$output .= "|\n";
			}
			if ($row === 0) {
				$output .= $hr . "\n";
			}
		}
		return trim($output . (count($table) > 1 ? $hr : ''));
	}
}