force sync from /var/www/html/panel: 2025-09-08T20:36:30Z
This commit is contained in:
commit
4f717c9ee8
18119 changed files with 2566034 additions and 0 deletions
50
ControlPanel/js/modules/gamemanager_update.js
Executable file
50
ControlPanel/js/modules/gamemanager_update.js
Executable file
|
|
@ -0,0 +1,50 @@
|
|||
function GetURLParameter(sParam)
|
||||
{
|
||||
var sPageURL = window.location.search.substring(1);
|
||||
var sURLVariables = sPageURL.split('&');
|
||||
for (var i = 0; i < sURLVariables.length; i++)
|
||||
{
|
||||
var sParameterName = sURLVariables[i].split('=');
|
||||
if (sParameterName[0] == sParam)
|
||||
{
|
||||
return sParameterName[1];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$(document).ready(function(){
|
||||
if( GetURLParameter('get_sgc') == 'show' )
|
||||
{
|
||||
var home_id = GetURLParameter('home_id');
|
||||
var mod_id = GetURLParameter('mod_id');
|
||||
var returnUrl = "home.php?m=gamemanager&p=update&update=refresh&home_id="+home_id+"&mod_id="+mod_id
|
||||
var addpost = {};
|
||||
addpost.sgc = '';
|
||||
$('#dialog').html("<label for='SteamGuardCode'>Steam Guard:</label>\n"+
|
||||
"<input class='SteamGuardCode' type=text style='width:99%;' name='sgc'>");
|
||||
$('#dialog').dialog({
|
||||
autoOpen: true,
|
||||
width: 450,
|
||||
modal: true,
|
||||
buttons: [{ text: "Send Code", click: function(){
|
||||
addpost.sgc = $('input[class="SteamGuardCode"]').val();
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: returnUrl,
|
||||
data: addpost,
|
||||
async: false,
|
||||
success: function(data){
|
||||
$('#dialog').html("<div class=\"loader\"></div>");
|
||||
setTimeout(function(){
|
||||
window.location.href = returnUrl;
|
||||
}, 10000);
|
||||
}
|
||||
});
|
||||
}
|
||||
}],
|
||||
close: function() {
|
||||
$( this ).dialog( "close" );
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue