$13 GRAYBYTE WORDPRESS FILE MANAGER $39

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 104.21.43.35 | ADMIN IP 216.73.216.23
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/var/softaculous/fud/

HOME
Current File : /var/softaculous/fud//notes.txt
1. While installation use this 'fud30_' as dbprefix
2. We configure .htaccess to remove the php_value and php_flag
3. take "_GLOBALS.php" dump after 2nd step that is "System setting and Directory path".
4. use this function for extract "fudforum_archive" file.

	create data_root,web_root folder and execute file

	function died(){
		 print_r(error_get_last());
	}

	register_shutdown_function('died');

	mkdir("data_root");
	mkdir("web_root");
	
	decompress_archive('./data_root/', './web_root/');

	function decompress_archive($data_root, $web_root)
	{
		$clean = array('PHP_OPEN_TAG'=>'<?', 'PHP_OPEN_ASP_TAG'=>'<%');

		// CLI doesn't automatically change the CWD to the one the started script resides in.
		chdir(dirname(__FILE__));

		/* Install from './fudforum_archive' file. */
		$fp = fopen('./fudforum_archive', 'rb');
		$checksum = fread($fp, 32);
		$tmp = fread($fp, 20000);
		fseek($fp, (ftell($fp) - 20000), SEEK_SET);
		if (strpos($tmp, 'RAW_PHP_OPEN_TAG') !== FALSE) {	/* No compression. */
			unset($clean['PHP_OPEN_TAG']); $clean['RAW_PHP_OPEN_TAG'] = '<?';
			$data = '';
			while (($tmp = fgets($fp))) {
				$data .= strtr($tmp, $clean);
			}
		} else {
			$data_len = (int) fread($fp, 10);
			// Data should be @ least 100k.
			if ($data_len < 100000) {
				exit('Failed getting archive size from '. htmlentities(fread($fp, 10)));
			}
			$data = gzuncompress(strtr(fread($fp, $data_len), $clean), $data_len);
		}
		fclose($fp);

		if (md5($data) != $checksum) {
			exit("Archive did not pass the checksum test, it is corrupt!<br />\nIf you've encountered this error it means that you've:<ul><li>downloaded a corrupt 'fudforum_archive' file</li><li>uploaded the archive to your server in ASCII and not BINARY mode</li><li>your FTP Server/Decompression software/Operating System added un-needed cartrige return ('\r') characters to the archive, resulting in archive corruption.</li></ul>\n");
		}

		$pos = 0;

		do {
			$end = strpos($data, "\n", $pos+1);
			$meta_data = explode('//',  substr($data, $pos, ($end-$pos)));
			$pos = $end;

			if (!isset($meta_data[3]) || $meta_data[3] == '/install') {
				continue;
			}

			if (!strncmp($meta_data[3], 'install/forum_data', 18)) {
				$path = $data_root . substr($meta_data[3], 18);
			} else if (!strncmp($meta_data[3], 'install/www_root', 16)) {
				$path = $web_root . substr($meta_data[3], 16);
			} else {
				continue;
			}
			$path .= '/'. $meta_data[1];

			$path = str_replace('//', '/', $path);

			if (isset($meta_data[5])) {
				$file = substr($data, ($pos + 1), $meta_data[5]);
				if (md5($file) != $meta_data[4]) {
					exit('ERROR: file '. $meta_data[1] .' was not read properly from archive');
				}

				if ($path == $web_root .'.htaccess' && @file_exists($path)) {
					define('old_htaccess', 1);
					continue;
				}

				if (defined('fud_debug')) echo "Extracting $path\n";
				$fp = @fopen($path, 'wb');
				if (!$fp) {
					if (basename($path) != '.htaccess') {
						exit('Couldn\'t open '. $path .' for write.');
					}
				}
	// TODO: Good place for substitutions before we write the file.
				fwrite($fp, $file);
				fclose($fp);
				@chmod($path, 0644);
			} else {
				if (substr($path, -1) == '/') {
					$path = preg_replace('!/+$!', '', $path);
				}
				if (!__mkdir($path)) {
					exit('ERROR: failed creating directory '. $path);
				}
			}
		} while (($pos = strpos($data, "\n//", $pos)) !== false);
	}

	function __mkdir($dir)
	{
		$u = umask(0);

		if (@is_dir($dir)) {
			return 1;
		} else if (file_exists($dir)) {
			unlink($dir);
		}
		$ret = (mkdir($dir, 0755) || mkdir(dirname($dir, 0755)));

		umask($u);
		return $ret;
	}

5. use "decompress_archive" function of "install.php" to extract "fudforum_archive" file.
6. make datadir i.e data.zip from "data_root" folder of extracted "fudforum_archive".
7. make fud.zip from downloaded installer zip and "web_root" folder of extracted "fudforum_archive" (exclude .github folder from our zip).
8. for creating cache go to "Forum Consistency" and proceed also verify post values of curlcall in install.php and update
9. for creating template go to "Theme Manager" and click on "[ Rebuild all Themes ]" also verify post values of curlcall in install.php and update
10. http://cvs.prohost.org/index.php?title=FUDforum_3.0.9#Requirements or https://github.com/fudforum/FUDforum/releases/tag/v3.2.0 (check latest release notes)
11. Copy files which need not to be configured from {Manual Data Dir}/include/theme/default and keep files which need to be configured in {Our Package}/default


Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
8 Apr 2026 1.56 AM
root / root
0755
default
--
21 Jan 2025 2.56 AM
root / root
0755
images
--
21 Jan 2025 2.56 AM
root / root
0755
php53
--
21 Jan 2025 2.56 AM
root / root
0755
php56
--
21 Jan 2025 2.56 AM
root / root
0755
php71
--
21 Jan 2025 2.56 AM
root / root
0755
php81
--
21 Jan 2025 2.56 AM
root / root
0755
php82
--
21 Jan 2025 2.56 AM
root / root
0755
.htaccess
1.954 KB
23 Dec 2021 11.54 AM
root / root
0644
GLOBALS.php
4.511 KB
20 Jan 2025 12.26 PM
root / root
0644
_upgrade.php
3.151 KB
23 Dec 2021 11.54 AM
root / root
0644
_upgrade.xml
0.373 KB
23 Dec 2021 11.54 AM
root / root
0644
data.zip
3.06 MB
20 Jan 2025 12.26 PM
root / root
0644
edit.php
4.436 KB
20 Jan 2025 12.30 PM
root / root
0644
edit.xml
0.423 KB
23 Dec 2021 11.54 AM
root / root
0644
feed.php
32.986 KB
20 Jan 2025 12.26 PM
root / root
0644
fileindex.php
0.179 KB
20 Jan 2025 12.26 PM
root / root
0644
fud.sql
53.302 KB
20 Jan 2025 12.26 PM
root / root
0644
fud.zip
3.68 MB
20 Jan 2025 12.26 PM
root / root
0644
import.php
4.324 KB
20 Jan 2025 12.30 PM
root / root
0644
index.php
38.589 KB
20 Jan 2025 12.26 PM
root / root
0644
info.xml
5.047 KB
20 Jan 2025 12.26 PM
root / root
0644
install.js
0.899 KB
23 Dec 2021 11.54 AM
root / root
0644
install.php
9.109 KB
20 Jan 2025 12.30 PM
root / root
0644
install.xml
1.006 KB
23 Dec 2021 11.54 AM
root / root
0644
md5
4.188 KB
20 Jan 2025 12.30 PM
root / root
0644
notes.txt
4.438 KB
20 Jan 2025 12.26 PM
root / root
0644
pdf.php
50.781 KB
20 Jan 2025 12.26 PM
root / root
0644
rdf.php
0.549 KB
23 Dec 2021 11.54 AM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF