ÿØÿà JFIF    ÿÛ „ ( %!1!%*+...983,7(-.- var/softaculous/goffice62/_clone.php000064400000011114152343306040013423 0ustar00(.*?)\-\-\\r\\n/is', $source, $domhost, 3); $destination = str_replace($domhost,$__settings['domhost'],$source); $update = "UPDATE `go_templates` SET `content`='".$destination."' WHERE `id`='1';"; sdb_query($update, $__settings['softdbhost'], $__settings['softdbuser'], $__settings['softdbpass'], $__settings['softdb']); if(sfile_exists($__settings['softpath'].'/.htaccess')){ // If the installation is on root domain we need to change the below relative URL if(is_dom_root($source_data['softpath'])){ $replace_data['RewriteBase \'/\''] = 'RewriteBase \''.$__settings['relativeurl'].'\''; $replace_data['RewriteBase /'] = 'RewriteBase '.$__settings['relativeurl']; $replace_data['RewriteRule ^webdav(.*)$ /modules/dav/files.php'] = 'RewriteRule ^webdav(.*)$ '.$__settings['relativeurl'].'/modules/dav/files.php'; $replace_data['RewriteRule ^caldav(.*)$ /modules/caldav/calendar.php'] = 'RewriteRule ^caldav(.*)$ '.$__settings['relativeurl'].'/modules/caldav/calendar.php'; $replace_data['RewriteRule ^carddav(.*)$ /modules/carddav/addressbook.php'] = 'RewriteRule ^carddav(.*)$ '.$__settings['relativeurl'].'/modules/carddav/addressbook.php'; $replace_data['RewriteRule ^Microsoft-Server-ActiveSync(.*)$ /modules/z-push/index.php'] = 'RewriteRule ^Microsoft-Server-ActiveSync(.*)$ '.$__settings['relativeurl'].'/modules/z-push/index.php'; }elseif(is_dom_root($__settings['softpath'])){ $replace_data['RewriteBase \''.$source_data['relativeurl'].'\''] = 'RewriteBase \'/\''; $replace_data['RewriteBase '.$source_data['relativeurl']] = 'RewriteBase /'; $replace_data['RewriteRule ^webdav(.*)$ '.$source_data['relativeurl'].'/modules/dav/files.php'] = 'RewriteRule ^webdav(.*)$ /modules/dav/files.php'; $replace_data['RewriteRule ^caldav(.*)$ '.$source_data['relativeurl'].'/modules/caldav/calendar.php'] = 'RewriteRule ^caldav(.*)$ /modules/caldav/calendar.php'; $replace_data['RewriteRule ^carddav(.*)$ '.$source_data['relativeurl'].'/modules/carddav/addressbook.php'] = 'RewriteRule ^carddav(.*)$ /modules/carddav/addressbook.php'; $replace_data['RewriteRule ^Microsoft-Server-ActiveSync(.*)$ '.$source_data['relativeurl'].'/modules/z-push/index.php'] = 'RewriteRule ^Microsoft-Server-ActiveSync(.*)$ /modules/z-push/index.php'; } sclone_replace($replace_data, $__settings['softpath'].'/.htaccess', true); } @srm($__settings['softpath'].'/tmp/cache/'); @srm($__settings['softpath'].'/tmp/diskcache/'); @srm($__settings['softdatadir'].'/cache/'); @smkdir($__settings['softdatadir'].'/cache/', $globals['odc']); schmod($__settings['softpath'].'/tmp/', $globals['odc'],1); schmod($__settings['softdatadir'].'/', $globals['odc'],1); } //Check whether the Minimum Software configuration matches function __requirements(){ global $__settings, $error, $software; return true; } ?>var/softaculous/grav/_clone.php000064400000010231152343406500012611 0ustar00var/softaculous/moodle51/_clone.php000064400000006367152345760600013324 0ustar00prefix(\s*?)=(\s*?)("|\')(.*?)("|\')(\s*?);/is', $file, $__settings['dbprefix'], 4); $dom_database = "UPDATE ".$__settings['dbprefix']."config SET value='".$__settings['domhost']."' WHERE name='chat_serverhost';"; sdb_query($dom_database, $__settings['softdbhost'], $__settings['softdbuser'], $__settings['softdbpass'], $__settings['softdb']); $dom_database1 = "UPDATE ".$__settings['dbprefix']."config SET value='".$__settings['siteidentifier'].$__settings['domhost']."' WHERE name='siteidentifier';"; sdb_query($dom_database1, $__settings['softdbhost'], $__settings['softdbuser'], $__settings['softdbpass'], $__settings['softdb']); $dom_database2 = "UPDATE ".$__settings['dbprefix']."config_log SET value='".$__settings['domhost']."' WHERE name='chat_serverhost';"; sdb_query($dom_database2, $__settings['softdbhost'], $__settings['softdbuser'], $__settings['softdbpass'], $__settings['softdb']); //deleting some cache directories @srm($__settings['softdatadir'].'/cache/'); @srm($__settings['softdatadir'].'/localcache/'); @srm($__settings['softdatadir'].'/temp/'); @smkdir($__settings['softdatadir'].'/cache/', $globals['odc']); @smkdir($__settings['softdatadir'].'/localcache/', $globals['odc']); @smkdir($__settings['softdatadir'].'/temp/', $globals['odc']); @schmod($__settings['softdatadir'], $globals['odc'], 1); } //Check whether the Minimum Software configuration matches function __requirements(){ global $__settings, $error, $software, $globals; //Get the PHP path if($globals['os'] == 'windows'){ $__settings['php_path'] = sphpbin(); }else{ $__settings['php_path'] = 'php'; } return true; } ?>var/softaculous/typo8/_clone.php000064400000006560152346232230012747 0ustar00(\s*?)("|\')(.*?)("|\'),\n/is', $file, $encryptionKey, 5); $replace_data[$encryptionKey] = $__settings['encryption_key']; sclone_replace($replace_data, $__settings['softpath'].'/config/system/settings.php', true); //sql $truncate_tables = array('be_sessions','sys_log','sys_file_storage'); foreach($truncate_tables as $tk){ $query = "TRUNCATE TABLE ".$tk.";"; sdb_query($query, $__settings['softdbhost'], $__settings['softdbuser'], $__settings['softdbpass'], $__settings['softdb'], '', 1); } $update = "UPDATE `be_users` SET `uc`= NULL;"; sdb_query($update, $__settings['softdbhost'], $__settings['softdbuser'], $__settings['softdbpass'], $__settings['softdb'], '', 1); if(sfile_exists($__settings['softpath'].'/.htaccess')){ // If the installation is on root domain we need to change the below relative URL if(is_dom_root($source_data['softpath'])){ $replace_data['RedirectMatch 301 ^/$'] = 'RedirectMatch 301 ^'.$__settings['relativeurl'].'/$'; }elseif(is_dom_root($__settings['softpath'])){ $replace_data['RedirectMatch 301 ^'.$source_data['relativeurl'].'/$'] = 'RedirectMatch 301 ^/$'; } sclone_replace($replace_data, $__settings['softpath'].'/.htaccess', true); } //remove directories $tmp = sfile($__settings['softpath'].'/var/.htaccess'); srm($__settings['softpath'].'/var/'); smkdir($__settings['softpath'].'/var/', $globals['odc']); swrite($__settings['softpath'].'/var/.htaccess', $tmp, 1); //schmod permission @schmod($__settings['softpath'].'/var/', $globals['odc'], 1); } //Check whether the Minimum Software configuration matches function __requirements(){ global $__settings, $error, $software; return true; } ?> var/softaculous/pyro/_clone.php000075500000004353152346537320012666 0ustar00= '3.0.1'){ sclone_replace($replace_data, $__settings['softpath'].'/.env', true); }else{ sclone_replace($replace_data, $__settings['softpath'].'/system/cms/config/database.php', true); } if(sfile_exists($__settings['softpath'].'/.htaccess')){ // If the installation is on root domain we need to change the below relative URL if(is_dom_root($data['softpath'])){ $replace_data['RewriteBase /'] = 'RewriteBase '.$__settings['relativeurl'].'/'; }elseif(is_dom_root($__settings['softpath'])){ $replace_data['RewriteBase '.$data['relativeurl'].'/'] = 'RewriteBase /'; } sclone_replace($replace_data, $__settings['softpath'].'/.htaccess', true); } srm($__settings['softpath'].'/system/cms/cache/default'); } //Check whether the Minimum Software configuration matches function __requirements(){ global $__settings, $error, $software; return true; } ?>var/softaculous/flat/_clone.php000064400000007562152347123420012616 0ustar00(\s*?)(\'|")(.*?)(\'|"),/is', $file, $blogid, 6); soft_preg_replace('/(\'|")author(\'|")(\s*?)\=\>(\s*?)(\'|")(.*?)(\'|"),/is', $file, $__settings['author'], 6); $replace_data[$blogid] = $__settings['blogid']; sclone_replace($replace_data, $__settings['softpath'].'/fp-content/config/settings.conf.php', true); //admin.php sclone_replace($replace_data, $__settings['softpath'].'/fp-content/users/'.$__settings['author'].'.php', true); if(sfile_exists($__settings['softpath'].'/.htaccess')){ // If the installation is on root domain we need to change the below relative URL if(is_dom_root($source_data['softpath'])){ $replace_data['RewriteBase \'/\''] = 'RewriteBase \''.$__settings['relativeurl'].'\''; $replace_data['RewriteBase /'] = 'RewriteBase '.$__settings['relativeurl']; }elseif(is_dom_root($__settings['softpath'])){ $replace_data['RewriteBase \''.$source_data['relativeurl'].'\''] = 'RewriteBase \'/\''; $replace_data['RewriteBase '.$source_data['relativeurl']] = 'RewriteBase /'; } sclone_replace($replace_data, $__settings['softpath'].'/.htaccess', true); } //recreat cache srm($__settings['softpath'].'/fp-content/cache'); @smkdir($__settings['softpath'].'/fp-content/cache/', $globals['odc']); // CHMOD schmod($__settings['softpath'].'/fp-content/', $globals['odc'], 1); } //Check whether the Minimum Software configuration matches function __requirements(){ global $__settings, $error, $software; return true; } ?>var/softaculous/moodle30/_clone.php000064400000006367152347246070013323 0ustar00prefix(\s*?)=(\s*?)("|\')(.*?)("|\')(\s*?);/is', $file, $__settings['dbprefix'], 4); $dom_database = "UPDATE ".$__settings['dbprefix']."config SET value='".$__settings['domhost']."' WHERE name='chat_serverhost';"; sdb_query($dom_database, $__settings['softdbhost'], $__settings['softdbuser'], $__settings['softdbpass'], $__settings['softdb']); $dom_database1 = "UPDATE ".$__settings['dbprefix']."config SET value='".$__settings['siteidentifier'].$__settings['domhost']."' WHERE name='siteidentifier';"; sdb_query($dom_database1, $__settings['softdbhost'], $__settings['softdbuser'], $__settings['softdbpass'], $__settings['softdb']); $dom_database2 = "UPDATE ".$__settings['dbprefix']."config_log SET value='".$__settings['domhost']."' WHERE name='chat_serverhost';"; sdb_query($dom_database2, $__settings['softdbhost'], $__settings['softdbuser'], $__settings['softdbpass'], $__settings['softdb']); //deleting some cache directories @srm($__settings['softdatadir'].'/cache/'); @srm($__settings['softdatadir'].'/localcache/'); @srm($__settings['softdatadir'].'/temp/'); @smkdir($__settings['softdatadir'].'/cache/', $globals['odc']); @smkdir($__settings['softdatadir'].'/localcache/', $globals['odc']); @smkdir($__settings['softdatadir'].'/temp/', $globals['odc']); @schmod($__settings['softdatadir'], $globals['odc'], 1); } //Check whether the Minimum Software configuration matches function __requirements(){ global $__settings, $error, $software, $globals; //Get the PHP path if($globals['os'] == 'windows'){ $__settings['php_path'] = sphpbin(); }else{ $__settings['php_path'] = 'php'; } return true; } ?>var/softaculous/bagisto/_clone.php000064400000013560152347473340013324 0ustar00var/softaculous/chevereto/_clone.php000064400000020727152347616470013666 0ustar00(\s*?)("|\')(.*?)("|\'),/is', $file, $encryption_key, 6); $__settings['encryption_key'] = base64_encode(__generate(32)); $replace_data[$encryption_key] = $__settings['encryption_key']; sclone_replace($replace_data, $__settings['softpath'].'/app/env.php', true); } //This is to pass value of id_padding and crypt_salt into __cheveretoID function to get the $avtar_old $query = "SELECT `setting_value` FROM `".$__settings['dbprefix']."settings` WHERE `setting_name` = 'id_padding';"; $result = sdb_query($query, $__settings['softdbhost'], $__settings['softdbuser'], $__settings['softdbpass'], $__settings['softdb']); $__settings['id_padding'] = $result[0]['setting_value']; $query = "SELECT `setting_value` FROM `".$__settings['dbprefix']."settings` WHERE `setting_name` = 'crypt_salt';"; $result = sdb_query($query, $__settings['softdbhost'], $__settings['softdbuser'], $__settings['softdbpass'], $__settings['softdb']); $__settings['crypt_salt'] = $result[0]['setting_value']; //////////////////// $avtar_old = __cheveretoID(1); $__settings['crypt_salt'] = __random_string(8); $__settings['api_v1_key'] = __random_string(32); $avtar_new = __cheveretoID(1); @srename($__settings['softpath'].'/content/images/users/'.$avtar_old.'/', $__settings['softpath'].'/content/images/users/'.$avtar_new.'/'); $query = "UPDATE `".$__settings['dbprefix']."settings` SET `setting_value`='".$__settings['crypt_salt']."',`setting_default`='".$__settings['crypt_salt']."' WHERE `setting_name` = 'crypt_salt';"; sdb_query($query, $__settings['softdbhost'], $__settings['softdbuser'], $__settings['softdbpass'], $__settings['softdb']); $query = "UPDATE `".$__settings['dbprefix']."settings` SET `setting_value`='".$__settings['api_v1_key']."',`setting_default`='".$__settings['api_v1_key']."' WHERE `setting_name` = 'api_v1_key';"; sdb_query($query, $__settings['softdbhost'], $__settings['softdbuser'], $__settings['softdbpass'], $__settings['softdb']); if(sfile_exists($__settings['softpath'].'/.htaccess')){ // If the installation is on root domain we need to change the below relative URL if(is_dom_root($source_data['softpath'])){ $replace_data['RewriteBase \'/\''] = 'RewriteBase \''.$__settings['relativeurl'].'\''; $replace_data['RewriteBase /'] = 'RewriteBase '.$__settings['relativeurl']; }elseif(is_dom_root($__settings['softpath'])){ $replace_data['RewriteBase \''.$source_data['relativeurl'].'\''] = 'RewriteBase \'/\''; $replace_data['RewriteBase '.$source_data['relativeurl']] = 'RewriteBase /'; } sclone_replace($replace_data, $__settings['softpath'].'/.htaccess', true); } //CHMOD some files @schmod($__settings['softpath'].'/images/', $globals['odc'], 1); @schmod($__settings['softpath'].'/content/', $globals['odc']); @schmod($__settings['softpath'].'/content/images/', $globals['odc'], 1); @schmod($__settings['softpath'].'/app/content/', $globals['odc'], 1); } //Check whether the Minimum Software configuration matches function __requirements(){ global $__settings, $error, $software, $user, $insid; // Chevereto can be cloned in root directory only if(sversion_compare($user['ins'][$insid]['ver'], '4.0.5', '>=') && !empty($__settings['softdirectory'])){ $error[] = 'Chevereto Free ' .$__settings['ver']. ' can not be cloned/staged in sub-directory.'; } return true; } function __pre_unzip(){ global $error, $__settings, $replace_data, $source_data; $file = sfile($source_data['softpath'].'/app/env.php'); if(empty($file)){ $file = sfile($source_data['softpath'].'/app/settings.php'); } if(empty($file)){ $error[] = 'Could not read the config file to get the dbprefix.'; return false; } soft_preg_replace('/("|\')db_table_prefix("|\')(\s*?)\=\>(\s*?)("|\')(.*?)("|\'),/is', $file, $__settings['dbprefix'], 6); if(empty($__settings['dbprefix'])){ soft_preg_replace('/\$settings\[("|\')db_table_prefix("|\')\](\s*?)=(\s*?)("|\')(.*?)("|\');/is', $file, $__settings['dbprefix'], 6); } if(empty($__settings['dbprefix'])){ soft_preg_replace('/("|\')CHEVERETO_DB_TABLE_PREFIX("|\')(\s*?)\=\>(\s*?)("|\')(.*?)("|\'),/is', $file, $__settings['dbprefix'], 6); } if(sversion_compare($__settings['ver'], '4.0.5', '<')){ $query = "SELECT `login_ip` FROM `".$__settings['dbprefix']."logins` WHERE `login_id` = 1;"; $result = sdb_query($query, $source_data['softdbhost'], $source_data['softdbuser'], $source_data['softdbpass'], $source_data['softdb']); $replace_data[$result[0]['login_ip']] = $_SERVER['REMOTE_ADDR']; } } function __random_string($length) { switch(true) { case function_exists('mcrypt_create_iv') : $r = mcrypt_create_iv($length, MCRYPT_DEV_URANDOM); break; case function_exists('openssl_random_pseudo_bytes') : $r = openssl_random_pseudo_bytes($length); break; case is_readable('/dev/urandom') : // deceze $r = file_get_contents('/dev/urandom', false, null, 0, $length); break; default : $i = 0; $r = ''; while($i ++ < $length) { $r .= chr(mt_rand(0, 255)); } break; } return substr(bin2hex($r), 0, $length); } function __cheveretoID($in, $action="encode"){ global $__settings; $index = "abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"; $salt = $__settings['crypt_salt']; $id_padding = $__settings['id_padding']; // Use a stock version of the hashed values (faster execution) for($n = 0; $n $passhash, 'p' => $p, 'i' => $i ); array_multisort($p, SORT_DESC, $i); $index = implode($i); $base = strlen($index); if($id_padding > 0) { $in = $in * $id_padding; } $out = ''; for ($t = floor(log((float)$in, $base)); $t >= 0; $t--) { $bcp = pow($base, $t); $a = floor($in / $bcp) % $base; $out = $out . substr($index, $a, 1); $in = $in - ($a * $bcp); } return $out; } function __generate($length = 10, $charlist = '0-9a-z'){ global $error; $charlist = count_chars(preg_replace_callback('#.-.#', function($m) { return implode('', range($m[0][0], $m[0][2])); }, $charlist), 3); $chLen = strlen($charlist); if ($length < 1) { $error[] = 'Length must be greater than zero.'; } elseif ($chLen < 2) { $error[] = 'Character list must contain at least two chars.'; } $res = ''; for ($i = 0; $i < $length; $i++) { $res .= $charlist[random_int(0, $chLen - 1)]; } return $res; } ?>var/softaculous/seed/_clone.php000075500000017562152351503560012616 0ustar00=')){ $replace_data['httpRoot="'.$source_data['relativeurl'].'/seeddms/"'] = 'httpRoot="'.$__settings['relativeurl'].'/seeddms/"'; }else{ $replace_data['httpRoot="'.$source_data['relativeurl'].'/"'] = 'httpRoot="'.$__settings['relativeurl'].'/"'; } sclone_replace($replace_data, $__settings['softpath'].'/conf/settings.xml', true); if(sversion_compare($__settings['ver'], '6.0.19', '>=')){ if(sfile_exists($__settings['softpath'].'/.htaccess')){ // If the installation is on root domain we need to change the below relative URL if(is_dom_root($source_data['softpath'])){ $replace_data['RewriteBase \'/\''] = 'RewriteBase \''.$__settings['relativeurl'].'\''; $replace_data['RewriteBase /'] = 'RewriteBase '.$__settings['relativeurl']; $replace_data['RedirectMatch 301 ^'] = 'RedirectMatch 301 ^'.$__settings['relativeurl']; }elseif(is_dom_root($__settings['softpath'])){ $replace_data['RewriteBase \''.$source_data['relativeurl'].'\''] = 'RewriteBase \'/\''; $replace_data['RewriteBase '.$source_data['relativeurl']] = 'RewriteBase /'; $replace_data['RedirectMatch 301 ^'.$source_data['relativeurl']] = 'RedirectMatch 301 ^'; } sclone_replace($replace_data, $__settings['softpath'].'/.htaccess', true); } } // create symlink if($globals['os'] != 'windows'){ if(sversion_compare($__settings['ver'], '6.0.19', '>=')){ // Have to remove this files so symlinks can be created srm($__settings['softpath'].'/pear/vendor/bin/generate_vcards'); srm($__settings['softpath'].'/pear/vendor/bin/naturalselection'); srm($__settings['softpath'].'/pear/vendor/bin/sabredav'); srm($__settings['softpath'].'/pear/vendor/bin/vobject'); srm($__settings['softpath'].'/pear/vendor/pear/log/README.rst'); srm($__settings['softpath'].'/seeddms'); srm($__settings['softpath'].'/www/controllers'); srm($__settings['softpath'].'/www/inc'); srm($__settings['softpath'].'/www/install'); srm($__settings['softpath'].'/www/languages'); srm($__settings['softpath'].'/www/op'); srm($__settings['softpath'].'/www/out'); srm($__settings['softpath'].'/www/pdfviewer'); srm($__settings['softpath'].'/www/restapi'); srm($__settings['softpath'].'/www/styles'); srm($__settings['softpath'].'/www/views'); srm($__settings['softpath'].'/www/webdav'); srm($__settings['softpath'].'/www/.htaccess'); srm($__settings['softpath'].'/www/index.php'); srm($__settings['softpath'].'/www/views/bootstrap4/images'); srm($__settings['softpath'].'/seeddms-6.0.19/views/bootstrap4/images'); //php function to prepare symlinks on all platforms symlink($__settings['softpath'].'/pear/vendor/sabre/vobject/bin/generate_vcards', $__settings['softpath'].'/pear/vendor/bin/generate_vcards'); symlink($__settings['softpath'].'/pear/vendor/sabre/dav/bin/naturalselection', $__settings['softpath'].'/pear/vendor/bin/naturalselection'); symlink($__settings['softpath'].'/pear/vendor/sabre/dav/bin/sabredav', $__settings['softpath'].'/pear/vendor/bin/sabredav'); symlink($__settings['softpath'].'/pear/vendor/sabre/vobject/bin/vobject', $__settings['softpath'].'/pear/vendor/bin/vobject'); symlink($__settings['softpath'].'/pear/vendor/pear/log/docs/guide.txt', $__settings['softpath'].'/pear/vendor/pear/log/README.rst'); symlink($__settings['softpath'].'/seeddms-6.0.19/', $__settings['softpath'].'/seeddms'); symlink($__settings['softpath'].'/seeddms/controllers', $__settings['softpath'].'/www/controllers'); symlink($__settings['softpath'].'/seeddms/inc', $__settings['softpath'].'/www/inc'); symlink($__settings['softpath'].'/seeddms/install', $__settings['softpath'].'/www/install'); symlink($__settings['softpath'].'/seeddms/languages', $__settings['softpath'].'/www/languages'); symlink($__settings['softpath'].'/seeddms/op', $__settings['softpath'].'/www/op'); symlink($__settings['softpath'].'/seeddms/out', $__settings['softpath'].'/www/out'); symlink($__settings['softpath'].'/seeddms/pdfviewer', $__settings['softpath'].'/www/pdfviewer'); symlink($__settings['softpath'].'/seeddms/restapi', $__settings['softpath'].'/www/restapi'); symlink($__settings['softpath'].'/seeddms/styles', $__settings['softpath'].'/www/styles'); symlink($__settings['softpath'].'/seeddms/views', $__settings['softpath'].'/www/views'); symlink($__settings['softpath'].'/seeddms/webdav', $__settings['softpath'].'/www/webdav'); symlink($__settings['softpath'].'/seeddms/.htaccess', $__settings['softpath'].'/www/.htaccess'); symlink($__settings['softpath'].'/seeddms/index.php', $__settings['softpath'].'/www/index.php'); symlink($__settings['softpath'].'/www/views/bootstrap/images', $__settings['softpath'].'/www/views/bootstrap4/images'); symlink($__settings['softpath'].'/seeddms-6.0.19/views/bootstrap/images', $__settings['softpath'].'/seeddms-6.0.19/views/bootstrap4/images'); }else{ srm($__settings['softpath'].'/pear/vendor/pear/log/README.rst'); #srm($__settings['softpath'].'/pear/vendor/pear/net_smtp/README.rst'); srm($__settings['softpath'].'/pear/vendor/bin/naturalselection'); srm($__settings['softpath'].'/pear/vendor/bin/generate_vcards'); srm($__settings['softpath'].'/pear/vendor/bin/sabredav'); srm($__settings['softpath'].'/pear/vendor/bin/vobject'); //php function to prepare symlinks on all platforms symlink($__settings['softpath'].'/pear/vendor/pear/log/docs/guide.txt', $__settings['softpath'].'/pear/vendor/pear/log/README.rst'); #symlink($__settings['softpath'].'/pear/vendor/pear/net_smtp/docs/guide.txt', $__settings['softpath'].'/pear/vendor/pear/net_smtp/README.rst'); symlink($__settings['softpath'].'/pear/vendor/sabre/dav/bin/naturalselection', $__settings['softpath'].'/pear/vendor/bin/naturalselection'); symlink($__settings['softpath'].'/pear/vendor/sabre/vobject/bin/generate_vcards', $__settings['softpath'].'/pear/vendor/bin/generate_vcards'); symlink($__settings['softpath'].'/pear/vendor/sabre/dav/bin/sabredav', $__settings['softpath'].'/pear/vendor/bin/sabredav'); symlink($__settings['softpath'].'/pear/vendor/sabre/vobject/bin/vobject', $__settings['softpath'].'/pear/vendor/bin/vobject'); } } //CHMOD @schmod($__settings['softdatadir'].'/data/', $globals['odc'], 1); @schmod($__settings['softpath'].'/www/ext/', $globals['odc'], 1); } //Check whether the Minimum Software configuration matches function __requirements(){ global $__settings, $error, $software, $globals; //SeedDMS does not work on windows because it creates symlink if($globals['os'] == 'windows'){ $error[] = 'SeedDMS clone is not supported on windows.'; } return true; } ?>var/softaculous/userspice/_clone.php000064400000005702152351563700013670 0ustar00(\s*?)("|\')(.*?)("|\'),/is', $file, $cookie_name, 6); $__settings['cookie_name'] = __randomstring(20); $replace_data[$cookie_name] = $__settings['cookie_name']; soft_preg_replace('/("|\')session_name("|\')(\s*?)=>(\s*?)("|\')(.*?)("|\'),/is', $file, $session_name, 6); $__settings['session_name'] = __randomstring(20); $replace_data[$session_name] = $__settings['session_name']; sclone_replace($replace_data, $__settings['softpath'].'/users/init.php', true); if(sfile_exists($__settings['softpath'].'/.htaccess')){ // If the installation is on root domain we need to change the below relative URL if(is_dom_root($source_data['softpath'])){ $replace_data['RewriteBase \'/\''] = 'RewriteBase \''.$__settings['relativeurl'].'\''; $replace_data['RewriteBase /'] = 'RewriteBase '.$__settings['relativeurl']; }elseif(is_dom_root($__settings['softpath'])){ $replace_data['RewriteBase \''.$source_data['relativeurl'].'\''] = 'RewriteBase \'/\''; $replace_data['RewriteBase '.$source_data['relativeurl']] = 'RewriteBase /'; } sclone_replace($replace_data, $__settings['softpath'].'/.htaccess', true); } } //Check whether the Minimum Software configuration matches function __requirements(){ global $__settings, $error, $software; return true; } function __randomstring($len){ $len = $len++; $string = ""; $chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"; for($i=0;$i<$len;$i++) $string.=substr($chars,rand(0,strlen($chars)),1); return $string; } ?>var/softaculous/mautic/_clone.php000064400000007571152360251210013144 0ustar00(\s*?)("|\')(.*?)("|\'),/is', $file, $secret_key, 6); $__settings['secret_key'] = hash('sha256', uniqid(mt_rand(), true)); $replace_data[$secret_key] = $__settings['secret_key']; sclone_replace($replace_data, $__settings['softpath'].'/config/local.php', true); if($__settings['ver'] < '5.0.0'){ sclone_replace($replace_data, $__settings['softpath'].'/app/config/local.php', true); } if(sfile_exists($__settings['softpath'].'/.htaccess')){ // If the installation is on root domain we need to change the below relative URL if(is_dom_root($source_data['softpath'])){ $replace_data['RewriteBase \'/\''] = 'RewriteBase \''.$__settings['relativeurl'].'\''; $replace_data['RewriteBase /'] = 'RewriteBase '.$__settings['relativeurl']; $replace_data['If "%{REQUEST_URI} =~ m#^/(index|index_dev|upgrade/upgrade)\.php'] = 'If "%{REQUEST_URI} =~ m#^'.$__settings['relativeurl'].'/(index|index_dev|upgrade/upgrade)\.php'; }elseif(is_dom_root($__settings['softpath'])){ $replace_data['RewriteBase \''.$source_data['relativeurl'].'\''] = 'RewriteBase \'/\''; $replace_data['RewriteBase '.$source_data['relativeurl']] = 'RewriteBase /'; $replace_data['If "%{REQUEST_URI} =~ m#^'.$source_data['relativeurl'].'/(index|index_dev|upgrade/upgrade)\.php'] = 'If "%{REQUEST_URI} =~ m#^/(index|index_dev|upgrade/upgrade)\.php'; } sclone_replace($replace_data, $__settings['softpath'].'/.htaccess', true); } // Deleting the cache Directory and re-creating the same @srm($__settings['softpath'].'/app/cache/prod/'); @smkdir($__settings['softpath'].'/app/cache/prod/', $globals['odc']); schmod($__settings['softpath'].'/app/cache/prod/', $globals['odc'], 1); @srm($__settings['softpath'].'/var/cache/prod/'); @smkdir($__settings['softpath'].'/var/cache/prod/', $globals['odc']); schmod($__settings['softpath'].'/var/cache/prod/', $globals['odc'], 1); } //Check whether the Minimum Software configuration matches function __requirements(){ global $__settings, $error, $software, $globals; return true; } ?>var/softaculous/zentao/_clone.php000064400000004657152361513130013167 0ustar00=')){ //15.0.1 version checks 0777 permission explicitely hence we have added this. @schmod($__settings['softpath'].'/www/data/', 0777, 1); } sclone_replace($replace_data, $__settings['softpath'].'/config/my.php', true); if(sfile_exists($__settings['softpath'].'/.htaccess')){ // If the installation is on root domain we need to change the below relative URL if(is_dom_root($source_data['softpath'])){ $replace_data['RewriteBase /'] = 'RewriteBase '.$__settings['relativeurl'].'/'; $replace_data['RewriteBase \'/\''] = 'RewriteBase \''.$__settings['relativeurl'].'\''; }elseif(is_dom_root($__settings['softpath'])){ $replace_data['RewriteBase '.$source_data['relativeurl'].'/'] = 'RewriteBase /'; $replace_data['RewriteBase \''.$source_data['relativeurl'].'\''] = 'RewriteBase \'/\''; } sclone_replace($replace_data, $__settings['softpath'].'/.htaccess', true); } } //Check whether the Minimum Software configuration matches function __requirements(){ global $__settings, $error, $software; return true; } ?>var/softaculous/bludit/_clone.php000064400000006030152361723170013144 0ustar00var/softaculous/ospos/_clone.php000075500000004534152363261600013033 0ustar00var/softaculous/thelia/_clone.php000075500000007520152363310320013126 0ustar00