Skip to content

Commit

Permalink
Remove unused options.
Browse files Browse the repository at this point in the history
  • Loading branch information
Stuart Childs committed Sep 21, 2011
1 parent e2ebdb9 commit c7c9a4e
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions scormcloud/admin/settings.php
Expand Up @@ -4,10 +4,6 @@

if(isset($_POST['scormcloud_hidden']) && $_POST['scormcloud_hidden'] == 'Y') {
//Form data sent
$dbhost = isset($_POST['scormcloud_dbhost']) ? $_POST['scormcloud_dbhost'] : null;
$dbname = isset($_POST['scormcloud_dbname']) ? $_POST['scormcloud_dbname'] : null;
$dbuser = isset($_POST['scormcloud_dbuser']) ? $_POST['scormcloud_dbuser'] : null;
$dbpwd = isset($_POST['scormcloud_dbpwd']) ? $_POST['scormcloud_dbpwd'] : null;
$appid = $_POST['scormcloud_appid'];
$engine_url = $_POST['scormcloud_engine_url'];
$secretkey = $_POST['scormcloud_secretkey'];
Expand All @@ -16,10 +12,6 @@
if (ScormCloudPlugin::is_network_managed()){
$sharecourses = $_POST['scormcloud_sharecourses'];

update_site_option('scormcloud_dbhost', $dbhost);
update_site_option('scormcloud_dbname', $dbname);
update_site_option('scormcloud_dbuser', $dbuser);
update_site_option('scormcloud_dbpwd', $dbpwd);
update_site_option('scormcloud_appid', $appid);
update_site_option('scormcloud_engine_url', $engine_url);
update_site_option('scormcloud_secretkey', $secretkey);
Expand All @@ -28,10 +20,6 @@


} else {
update_option('scormcloud_dbhost', $dbhost);
update_option('scormcloud_dbname', $dbname);
update_option('scormcloud_dbuser', $dbuser);
update_option('scormcloud_dbpwd', $dbpwd);
update_option('scormcloud_appid', $appid);
update_option('scormcloud_engine_url', $engine_url);
update_option('scormcloud_secretkey', $secretkey);
Expand Down Expand Up @@ -74,21 +62,13 @@

//Normal page display
if (ScormCloudPlugin::is_network_managed()){
$dbhost = get_site_option('scormcloud_dbhost');
$dbname = get_site_option('scormcloud_dbname');
$dbuser = get_site_option('scormcloud_dbuser');
$dbpwd = get_site_option('scormcloud_dbpwd');
$appid = get_site_option('scormcloud_appid');
$secretkey = get_site_option('scormcloud_secretkey');
$engine_url = (strlen(get_site_option('scormcloud_engine_url')) > 0) ? get_site_option('scormcloud_engine_url') : "http://cloud.scorm.com/EngineWebServices";
$player_cssurl = (strlen(get_site_option('scormcloud_player_cssurl')) > 0) ? get_site_option('scormcloud_player_cssurl') : 'http://cloud.scorm.com/sc/css/cloudPlayer/cloudstyles.css';
$sharecourses = get_site_option('scormcloud_sharecourses');

} else {
$dbhost = get_option('scormcloud_dbhost');
$dbname = get_option('scormcloud_dbname');
$dbuser = get_option('scormcloud_dbuser');
$dbpwd = get_option('scormcloud_dbpwd');
$appid = get_option('scormcloud_appid');
$secretkey = get_option('scormcloud_secretkey');
$engine_url = (strlen(get_option('scormcloud_engine_url')) > 0) ? get_option('scormcloud_engine_url') : "http://cloud.scorm.com/EngineWebServices";
Expand Down

0 comments on commit c7c9a4e

Please sign in to comment.