X7ROOT File Manager
Current Path:
/var/softaculous/moodle50
var
/
softaculous
/
moodle50
/
??
..
??
NOTES.txt
(2.22 KB)
??
add_admin.php
(733 B)
??
check_utf8.php
(6.99 KB)
??
clone.php
(5.48 KB)
??
config.php
(745 B)
??
data.zip
(7.76 KB)
??
edit.php
(4.64 KB)
??
edit.xml
(433 B)
??
extend.php
(12.41 KB)
??
fileindex.php
(1002 B)
??
get_plugin_list.php
(840 B)
??
images
??
import.php
(7.7 KB)
??
info.xml
(3.53 KB)
??
install.js
(924 B)
??
install.php
(11.21 KB)
??
install.xml
(3.36 KB)
??
languages
??
md5
(3.89 KB)
??
moodle50.sql
(1.16 MB)
??
moodle50.zip
(90.46 MB)
??
php53
??
php56
??
php71
??
php81
??
php82
??
privatekey.php
(975 B)
??
update_pass.php
(541 B)
??
upgrade.php
(9.44 KB)
??
upgrade.xml
(307 B)
Editing: privatekey.php
<?php // We do not need this file any more @unlink('privatekey.php'); $ltikey = __mod_lti_verify_private_key(); $enrol_lti = __mod_lti_verify_private_key(); echo '<kid>'.$ltikey['kid'].'</kid>'; echo '<privatekey>'.$ltikey['privatekey'].'</privatekey>'; echo '<enrol_lti_kid>'.$enrol_lti['kid'].'</enrol_lti_kid>'; echo '<enrol_lti_privatekey>'.$enrol_lti['privatekey'].'</enrol_lti_privatekey>'; function __mod_lti_verify_private_key() { global $error; if (!function_exists('openssl_random_pseudo_bytes')) { $error[] = "openssl must be loaded for openssl_random_pseudo_bytes to function"; return null; } // Create the private key. $kid = bin2hex(openssl_random_pseudo_bytes(10)); $config = array( "digest_alg" => "sha256", "private_key_bits" => 2048, "private_key_type" => OPENSSL_KEYTYPE_RSA, ); $res = openssl_pkey_new($config); openssl_pkey_export($res, $privatekey); return array( 'kid' => $kid, 'privatekey' => $privatekey, ); } ?>
Upload File
Create Folder