Server IP : 149.255.58.128 / Your IP : 216.73.216.80
System : Linux cloud516.thundercloud.uk 5.14.0-427.26.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 17 15:51:13 EDT 2024 x86_64
PHP Version : 8.2.28
Disable Function : allow_url_include, apache_child_terminate, apache_setenv, exec, passthru, pcntl_exec, posix_kill, posix_mkfifo, posix_getpwuid, posix_setpgid, posix_setsid, posix_setuid, posix_setgid, posix_seteuid, posix_setegid, posix_uname, proc_close, proc_get_status, proc_open, proc_terminate, shell_exec, show_source, system
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Upload Files :
Command :
Current File : /var/softaculous/razor//softaculous_install.php
<?php
/**
* razorCMS FBCMS Softaculous Installer
*
* Updates configuration in sqlite db based on GET/POST parameters and responds in a RESTful way.
* Removes the ocnfiguration file once complete. RUN THIS FROM BASE INSTALL PATH!
*
* @param String GET/POST email - email address for the default user account
* @param String GET/POST password - the password for the default user account
* @param String/Bool GET/POST json - return json response
* For GET json response - RAZOR_BASE_PATH/softaculous_install.php?json=true&email=razorcms@razorcms.co.uk&password=password
* For GET raw html response - RAZOR_BASE_PATH/softaculous_install.php?email=razorcms@razorcms.co.uk&password=
*
* @return mixed (raw html or json) - The result of the install as a RESTful response (400 on error) with containing data
*
* Copywrite 2014 to Present Day - Paul Smith (aka smiffy6969, razorcms)
*
* @author Paul Smith
* @site ulsmith.net
* @created Jan 2015
*/
// constants
define("RAZOR_BASE_PATH", str_replace(array("softaculous_install.php"), "", $_SERVER["SCRIPT_FILENAME"]));
define('RAZOR_PDO', 'sqlite:'.RAZOR_BASE_PATH.'storage/database/razorcms.sqlite');
// includes
include_once(RAZOR_BASE_PATH.'library/php/razor/razor_file_tools.php');
include_once(RAZOR_BASE_PATH.'library/php/razor/razor_error_handler.php');
include_once(RAZOR_BASE_PATH.'library/php/razor/razor_site.php');
include_once(RAZOR_BASE_PATH."library/php/razor/razor_pdo.php");
include_once(RAZOR_BASE_PATH.'library/php/razor/razor_api.php');
// Load error handler
$error = new RazorErrorHandler();
set_error_handler(array($error, 'handle_error'));
set_exception_handler(array($error, 'handle_error'));
//////////////////////////////////////////////
// update the sqlite db based on get params //
//////////////////////////////////////////////
// first remove the this file
unlink(__FILE__);
// get query GET/POST data
$json = (isset($_GET['json']) || isset($_POST['json']) ? 'json' : null);
$email = (isset($_GET['email']) && !empty($_GET['email']) ? $_GET['email'] : (isset($_POST['email']) && !empty($_POST['email']) ? $_POST['email'] : null));
$password = (isset($_GET['password']) && !empty($_GET['password']) ? $_GET['password'] : (isset($_POST['password']) && !empty($_POST['password']) ? $_POST['password'] : null));
if (empty($email) || empty($password)) RazorAPI::response('email or password not set', $json, 400);
// generate password
$password = RazorAPI::create_hash($password);
// update db
$db = new RazorPDO();
$user = $db->edit_data('user', array('email_address' => $email, 'password' => $password), array('id' => 1), array('id'));
// check update OK and return result
if (empty($user)) RazorAPI::response('user not updated', $json, 400);
else RazorAPI::response('User details updated', $json);
/* PHP END */
Name |
Size |
Last Modified |
Owner / Group |
Permissions |
Options |
.. | -- | May 23 2025 09:37:16 | 0 / root | 0755 | |
images | -- | March 27 2025 10:37:31 | 0 / root | 0755 | |
php53 | -- | March 27 2025 10:37:31 | 0 / root | 0755 | |
php56 | -- | March 27 2025 10:37:31 | 0 / root | 0755 | |
php71 | -- | March 27 2025 10:37:31 | 0 / root | 0755 | |
php81 | -- | March 27 2025 10:37:31 | 0 / root | 0755 | |
php82 | -- | March 27 2025 10:37:31 | 0 / root | 0755 | |
upgrade | -- | March 27 2025 10:37:31 | 0 / root | 0755 | |
| | | | | |
check_suphp.php | 0.094 KB | December 23 2021 06:54:36 | 0 / root | 0644 | |
clone.php | 3.601 KB | March 26 2025 06:48:14 | 0 / root | 0644 | |
fileindex.php | 0.064 KB | December 23 2021 06:54:36 | 0 / root | 0644 | |
info.xml | 2.854 KB | March 26 2025 06:40:24 | 0 / root | 0644 | |
install.js | 0.899 KB | December 23 2021 06:54:36 | 0 / root | 0644 | |
install.php | 5.084 KB | March 26 2025 06:48:14 | 0 / root | 0644 | |
install.xml | 0.397 KB | December 23 2021 06:54:36 | 0 / root | 0644 | |
md5 | 3.589 KB | March 26 2025 06:48:14 | 0 / root | 0644 | |
notes.txt | 0.063 KB | December 23 2021 06:54:36 | 0 / root | 0644 | |
softaculous_install.php | 2.747 KB | December 23 2021 06:54:36 | 0 / root | 0644 | |
upgrade.php | 4.507 KB | March 26 2025 06:48:14 | 0 / root | 0644 | |
upgrade.xml | 0.422 KB | December 23 2021 06:54:36 | 0 / root | 0644 | |