Your IP : 216.73.216.1


Current Path : /proc/thread-self/root/usr/local/ei/
Upload File :
Current File : //proc/thread-self/root/usr/local/ei/suitcrm.php

<?php
include('public/legacy/config.php');

$c = $sugar_config['dbconfig'];

$str = "DATABASE_URL=\"mysql://{$c['db_user_name']}:{$c['db_password']}@localhost/{$c['db_name']}\"\n";
$str .= "APP_SECRET=\"" . bin2hex(openssl_random_pseudo_bytes(12)) . "\"\n";
file_put_contents('.env.local', $str);

file_put_contents('index.php', "<?php header('location: public/'); ?>");