-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5ae1aaa
commit 94c8f4c
Showing
3 changed files
with
48 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,48 @@ | ||
var auth = ['system', 'ranking', 'empire', 'messages']; | ||
|
||
|
||
function check_col (type, El) { | ||
var status = El.checked; | ||
for (i in groups_id) { | ||
document.getElementById(type+'_'+groups_id[i]).checked = status; | ||
} | ||
El.checked = status; | ||
function check_col(type, El) { | ||
let status = El.checked; | ||
for (let i in groups_id) { | ||
document.getElementById(type + '_' + groups_id[i]).checked = status; | ||
} | ||
El.checked = status; | ||
} | ||
|
||
function check_row(id, El) { | ||
var status = El.checked; | ||
for (var i = 0; i < auth.length; i++) { | ||
document.getElementById(auth[i]+'_'+id).checked = status; | ||
} | ||
El.checked = status; | ||
let status = El.checked; | ||
for (let i = 0; i < auth.length; i++) { | ||
document.getElementById(auth[i] + '_' + id).checked = status; | ||
} | ||
El.checked = status; | ||
} | ||
|
||
function set_all (status) { | ||
for (var i in groups_id) { | ||
for (var a = 0; a < auth.length; a++) { | ||
document.getElementById(auth[a]+'_'+groups_id[i]).checked = status; | ||
} | ||
} | ||
function set_all(status) { | ||
for (let i in groups_id) { | ||
for (var a = 0; a < auth.length; a++) { | ||
document.getElementById(auth[a] + '_' + groups_id[i]).checked = status; | ||
} | ||
} | ||
} | ||
|
||
function winOpen (El) { | ||
try {window.opener.open(El.href); return false;} catch (e) {} | ||
function get_xtense_url() { | ||
|
||
const regex = /(.*)index\.php\?action=xtense/gm; | ||
const str = window.location.href; | ||
let m; | ||
|
||
if ((m = regex.exec(str)) !== null) { | ||
// This is necessary to avoid infinite loops with zero-width matches | ||
return m[1]; | ||
} else { | ||
return ""; | ||
} | ||
} | ||
|
||
function winOpen(El) { | ||
try { | ||
window.opener.open(El.href); | ||
return false; | ||
} catch (e) { | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
Xtense | ||
2.7.5 | ||
2.7.6 | ||
Xtense,Xtense,xtense,xtense,index.php,1,1 | ||
3.3.5 | ||
2.7.22 |