Esempio n. 1
0
        public Variables(string root)
        {
            strRootFolderPath            = root;
            strWebrootFolderPath         = Path.Combine(strRootFolderPath, "webroot");
            strAMPFolderPath             = Path.Combine(strRootFolderPath, "amp");
            strAppFolderPath             = Path.Combine(strAMPFolderPath, "app");
            strConfigFolderPath          = Path.Combine(strAMPFolderPath, "config");
            strDocsFolderPath            = Path.Combine(strAMPFolderPath, "doc");
            strLocalhostFolderPath       = Path.Combine(strWebrootFolderPath, "localhost");
            strLocalhostPublicFolderPath = Path.Combine(strLocalhostFolderPath, "public");
            strScriptsFolderPath         = Path.Combine(strAppFolderPath, "scripts");
            strLogFolderPath             = Path.Combine(strLocalhostFolderPath, "log");

            // Composer
            strComposerFilePath = Path.Combine(strLocalhostFolderPath, "composer.json");

            // PHPUnit
            strPHPUnitFilePath = Path.Combine(strLocalhostFolderPath, "phpunit.xml.dist");

            // PHP
            strPHPTSFolderPath           = Path.Combine(strAppFolderPath, "phpts");
            strPHPTSConfigFilePath       = Path.Combine(strPHPTSFolderPath, "php.ini");
            strPHPTemplateConfigFilePath = Path.Combine(strConfigFolderPath, "php.ini");
            strPHPNTSFolderPath          = Path.Combine(strAppFolderPath, "phpnts");
            strPHPNTSConfigFilePath      = Path.Combine(strPHPNTSFolderPath, "php.ini");
            strPHPNTSCGIFilePath         = Path.Combine(strPHPNTSFolderPath, "php-cgi.exe");

            // Apache
            strApacheFolderPath             = Path.Combine(strAppFolderPath, "apache");
            strApacheFilePath               = Path.Combine(strApacheFolderPath, Path.Combine("bin", "httpd.exe"));
            strApacheConfigFilePath         = Path.Combine(strApacheFolderPath, Path.Combine("conf", "httpd.conf"));
            strApacheTemplateConfigFilePath = Path.Combine(strConfigFolderPath, @"apache\original\httpd.conf.in");

            strAWKFolderPath     = Path.Combine(strAppFolderPath, "awk");
            strAWKFilePath       = Path.Combine(strAWKFolderPath, "awk.exe");
            strAWKConfigFilePath = Path.Combine(strConfigFolderPath, @"conf\original\installwinconf.awk");

            // MongoDB
            strMongoDBFolderPath = Path.Combine(strAppFolderPath, Path.Combine("mongodb", "bin"));
            strMongoDBFilePath   = Path.Combine(strMongoDBFolderPath, "mongod.exe");
            //strMongoDBConfigFilePath = Path.Combine(strMySQLFolderPath, "my.ini");
            //strMongoDBTemplateConfigFilePath = Path.Combine(strConfigFolderPath, "my.ini");

            // MySQL
            strMySQLFolderPath             = Path.Combine(strAppFolderPath, "mysql");
            strMySQLFilePath               = Path.Combine(strMySQLFolderPath, Path.Combine("bin", "mysqld.exe"));
            strMySQLConfigFilePath         = Path.Combine(strMySQLFolderPath, "my.ini");
            strMySQLTemplateConfigFilePath = Path.Combine(strConfigFolderPath, "my.ini");

            // Memcached
            strMemcachedFolderPath = Path.Combine(strAppFolderPath, "memcached");
            strMemcachedFilePath   = Path.Combine(strMemcachedFolderPath, "memcached.exe");

            // Nginx
            strNginxFolderPath             = Path.Combine(strAppFolderPath, "nginx");
            strNginxFilePath               = Path.Combine(strNginxFolderPath, "nginx.exe");
            strNginxConfigFilePath         = Path.Combine(strNginxFolderPath, Path.Combine("conf", "nginx.conf"));
            strNginxTemplateConfigFilePath = Path.Combine(strConfigFolderPath, "nginx.conf");

            configFolderPath      = strConfigFolderPath;
            configFilePath        = Path.Combine(configFolderPath, "ss.ini");
            configDefaultFilePath = Path.Combine(configFolderPath, "ssdefault.ini");

            ini = new Ini(configFilePath);
        }
Esempio n. 2
0
 public void reinitialize()
 {
     ini = new Ini(configFilePath);
 }
Esempio n. 3
0
 public void resetDefaults()
 {
     ini = new Ini(configDefaultFilePath);
 }
Esempio n. 4
0
		public Variables(string root)
		{
			strRootFolderPath = root;
			strWebrootFolderPath = Path.Combine(strRootFolderPath, "webroot");
            strAMPFolderPath = Path.Combine(strRootFolderPath, "amp");
            strAppFolderPath = Path.Combine(strAMPFolderPath, "app");
            strConfigFolderPath = Path.Combine(strAMPFolderPath, "config");
            strDocsFolderPath = Path.Combine(strAMPFolderPath, "doc");
            strLocalhostFolderPath = Path.Combine(strWebrootFolderPath, "localhost");
            strLocalhostPublicFolderPath = Path.Combine(strLocalhostFolderPath, "public");
            strScriptsFolderPath = Path.Combine(strAppFolderPath, "scripts");
            strLogFolderPath = Path.Combine(strLocalhostFolderPath, "log");
            
            // Composer
            strComposerFilePath = Path.Combine(strLocalhostFolderPath, "composer.json");
            
            // PHPUnit
            strPHPUnitFilePath = Path.Combine(strLocalhostFolderPath, "phpunit.xml.dist");
            
			// PHP
			strPHPTSFolderPath = Path.Combine(strAppFolderPath, "phpts");
			strPHPTSConfigFilePath = Path.Combine(strPHPTSFolderPath, "php.ini");
			strPHPTemplateConfigFilePath = Path.Combine(strConfigFolderPath, "php.ini");
			strPHPNTSFolderPath = Path.Combine(strAppFolderPath, "phpnts");
			strPHPNTSConfigFilePath = Path.Combine(strPHPNTSFolderPath, "php.ini");
			strPHPNTSCGIFilePath = Path.Combine(strPHPNTSFolderPath, "php-cgi.exe");
			
			// Apache
			strApacheFolderPath = Path.Combine(strAppFolderPath, "apache");
			strApacheFilePath = Path.Combine(strApacheFolderPath,Path.Combine("bin", "httpd.exe"));
			strApacheConfigFilePath = Path.Combine(strApacheFolderPath,Path.Combine("conf", "httpd.conf"));
			strApacheTemplateConfigFilePath = Path.Combine(strConfigFolderPath,@"apache\original\httpd.conf.in");
			
			strAWKFolderPath = Path.Combine(strAppFolderPath, "awk");
			strAWKFilePath = Path.Combine(strAWKFolderPath, "awk.exe");
			strAWKConfigFilePath = Path.Combine(strConfigFolderPath, @"conf\original\installwinconf.awk");

			// MongoDB
			strMongoDBFolderPath = Path.Combine(strAppFolderPath, Path.Combine("mongodb","bin"));
			strMongoDBFilePath = Path.Combine(strMongoDBFolderPath, "mongod.exe");
			//strMongoDBConfigFilePath = Path.Combine(strMySQLFolderPath, "my.ini");
			//strMongoDBTemplateConfigFilePath = Path.Combine(strConfigFolderPath, "my.ini");
			
			// MySQL
			strMySQLFolderPath = Path.Combine(strAppFolderPath, "mysql");
			strMySQLFilePath = Path.Combine(strMySQLFolderPath, Path.Combine("bin","mysqld.exe"));
			strMySQLConfigFilePath = Path.Combine(strMySQLFolderPath, "my.ini");
			strMySQLTemplateConfigFilePath = Path.Combine(strConfigFolderPath, "my.ini");
			
			// Memcached
			strMemcachedFolderPath =  Path.Combine(strAppFolderPath, "memcached");
    		strMemcachedFilePath =  Path.Combine(strMemcachedFolderPath, "memcached.exe");
    		
    		// Nginx
            strNginxFolderPath = Path.Combine(strAppFolderPath, "nginx");
            strNginxFilePath = Path.Combine(strNginxFolderPath, "nginx.exe");
            strNginxConfigFilePath = Path.Combine(strNginxFolderPath, Path.Combine("conf","nginx.conf"));
            strNginxTemplateConfigFilePath = Path.Combine(strConfigFolderPath, "nginx.conf");
			
			configFolderPath = strConfigFolderPath;
			configFilePath = Path.Combine(configFolderPath, "ss.ini");
			configDefaultFilePath = Path.Combine(configFolderPath, "ssdefault.ini");
			
			ini = new Ini(configFilePath);
		}
Esempio n. 5
0
		public void reinitialize()
		{
			ini = new Ini(configFilePath);
		}
Esempio n. 6
0
		public void resetDefaults()
		{
			ini = new Ini(configDefaultFilePath);
		}