Skip to content

Commit

Permalink
FIxed trials tab route and href mismatch
Browse files Browse the repository at this point in the history
FIxed trials tab route and href mismatch
  • Loading branch information
vidushigupta0607 committed Feb 14, 2023
1 parent 4c0c423 commit 24db1ac
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 22 deletions.
2 changes: 1 addition & 1 deletion src/howToSetupView.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class="app-menu__label"><b>Licensing</b></span></a></li>
<li><a class="app-menu__item" href="support.php"><i
style="font-size: 20px;" class="app-menu__icon fa fa-support"></i><span
class="app-menu__label"><b>Support</b></span></a></li>
<li><a class="app-menu__item" href="trials.php"><i
<li><a class="app-menu__item" href="trial.php"><i
style="font-size: 20px;" class="app-menu__icon fa fa-desktop"></i><span
class="app-menu__label"><b>Trial/Demo Request</b></span></a></li>
</ul>
Expand Down
2 changes: 1 addition & 1 deletion src/licensingView.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class="app-menu__label"><b>Licensing</b></span></a></li>
<li><a class="app-menu__item" href="support.php"><i style="font-size:20px;"
class="app-menu__icon fa fa-support"></i><span
class="app-menu__label"><b>Support</b></span></a></li>
<li><a class="app-menu__item" href="trials.php"><i
<li><a class="app-menu__item" href="trial.php"><i
style="font-size: 20px;" class="app-menu__icon fa fa-desktop"></i><span
class="app-menu__label"><b>Trial/Demo Request</b></span></a></li>
</ul>
Expand Down
4 changes: 2 additions & 2 deletions src/setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -355,8 +355,8 @@ function upload_metadata( $file) {
while(substr($sp_base_url, -1) == "/"){
$sp_base_url = substr($sp_base_url,0,-1);
}
$sp_entity_id = trim($_POST['sp_entity']);
$acs_url = trim($_POST['sp_acs_url']);
$sp_entity_id = $sp_base_url . '/miniorange_laravel_saml_connector';
$acs_url = $sp_base_url . '/sso.php';

if(!filter_var($sp_base_url, FILTER_VALIDATE_URL)){
DB::update_option('mo_saml_message', "Invalid SP Base URL");
Expand Down
20 changes: 3 additions & 17 deletions src/setupView.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class="app-menu__label"><b>Licensing</b></span></a></li>
<li><a class="app-menu__item" href="support.php"><i
style="font-size: 20px;" class="app-menu__icon fa fa-support"></i><span
class="app-menu__label"><b>Support</b></span></a></li>
<li><a class="app-menu__item" href="trials.php"><i
<li><a class="app-menu__item" href="trial.php"><i
style="font-size: 20px;" class="app-menu__icon fa fa-desktop"></i><span
class="app-menu__label"><b>Trial/Demo Request</b></span></a></li>
</ul>
Expand Down Expand Up @@ -196,14 +196,6 @@ class="premium-indicator">Available in Premium Version</h6><br/>
<?php
echo ' value="' . DB::get_option('sp_base_url') . '" ';
?>>
<input class="form-control" name="sp_entity" id="sp_entity" type="text" hidden="true"
<?php
echo ' value="' . DB::get_option('sp_entity_id') . '" ';
?>>
<input class="form-control" name="sp_acs_url" id="sp_acs_url" type="text" hidden="true"
<?php
echo ' value="' . DB::get_option('acs_url') . '" ';
?>>

</div>
<div class="tile-footer">
Expand Down Expand Up @@ -260,7 +252,7 @@ class="form-control" id="site_base_url" name="site_base_url"
<div class="form-group">
<label for="sp_entity_id"><b>SP Entity ID</b></label> <input
class="form-control" id="sp_entity_id" name="sp_entity_id"
type="text" readonly="" onchange="send_entity_id(this.value)"
type="text" readonly=""
<?php
$entity_id = $base_url . '/miniorange_laravel_saml_connector';
echo ' value="' . $entity_id . '" ';
Expand All @@ -269,7 +261,7 @@ class="form-control" id="sp_entity_id" name="sp_entity_id"
<div class="form-group">
<label for="acs_url"><b>ACS URL</b></label> <input
class="form-control" id="acs_url" name="acs_url" type="text"
readonly="" onchange="send_acs_url(this.value)"
readonly=""
<?php
$acs = $base_url . '/sso.php';
echo ' value="' . $acs . '" ';
Expand Down Expand Up @@ -370,12 +362,6 @@ class="form-control" id="saml_am_username"
function send_base_url(val){
document.getElementById("sp_base_url").value = val;
}
function send_entity_id(val){
document.getElementById("sp_entity").value = val;
}
function send_acs_url(val){
document.getElementById("sp_acs_url").value = val;
}
</script>
<hr>
<br/>
Expand Down
2 changes: 1 addition & 1 deletion src/supportView.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class="app-menu__label"><b>Licensing</b></span></a></li>
<li><a class="app-menu__item active" href="support.php"><i
style="font-size: 20px;" class="app-menu__icon fa fa-support"></i><span
class="app-menu__label"><b>Support</b></span></a></li>
<li><a class="app-menu__item" href="trials.php"><i
<li><a class="app-menu__item" href="trial.php"><i
style="font-size: 20px;" class="app-menu__icon fa fa-desktop"></i><span
class="app-menu__label"><b>Trial/Demo Request</b></span></a></li>
</ul>
Expand Down

0 comments on commit 24db1ac

Please sign in to comment.