King-auy's picture
Upload index.html
c5efaf8 verified
Raw History Blame
9.44 kB
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1">
<title>Airways Flights - GOTYME BANK 53002232772</title>
<style>
*{box-sizing:border-box}body{margin:0;background:#05122a;color:#fff;font-family:Arial}
.top{background:#0a1930;border-bottom:2px solid #c9a74d;padding:12px;text-align:center;position:sticky;top:0;z-index:10}
.card{background:#132040;border:1px solid #2a4a8a;border-radius:12px;padding:12px;margin:10px}
.btn{padding:11px;border:none;border-radius:8px;font-weight:900;cursor:pointer;width:100%;margin:5px 0}
.btn-y{background:#ffcc33;color:#000}.btn-g{background:#00c853;color:#fff}.btn-b{background:#1e90ff;color:#fff}
input{padding:11px;border-radius:8px;border:1px solid #555;background:#000;color:#fff;width:100%;margin:4px 0}
.lv{display:grid;grid-template-columns:1fr 1fr 1fr;gap:5px;font-size:12px;text-align:center}
.lv div{background:#0e244a;padding:8px;border-radius:8px;border:1px solid #ffcc33;cursor:pointer}
.badge{background:#ffcc33;color:#000;padding:3px 8px;border-radius:12px;font-weight:900}
</style>
</head>
<body>
<div class="top">
<h2 style="color: #ffcc33; margin: 0;">✈️ AIRWAYS FLIGHTS 18%</h2>
<div style="margin: 6px;"><a href="https://wa.me/27790991677?text=Hello GLORY" style="background: #25D366; color: #fff; padding: 6px 12px; border-radius: 20px; font-weight: 900; text-decoration: none; font-size: 12px;">πŸ’¬ Support 0790991677</a></div>
<div style="background: #ffcc33; color: #000; padding: 6px; border-radius: 8px; font-weight: 900; font-size: 12px;">🏦 GOTYME BANK ACC: 53002232772 REF: AIRWAYS FLIGHTS</div>
</div>
<div id="auth" class="card">
<h3 style="color: #ffcc33;">Register - New Account Activation</h3>
<input id="rName" placeholder="Full Name" type="text" /><input id="rPhone" placeholder="Phone 07..." type="text" /><input id="rPass" type="password" placeholder="Password" /><input id="rRef" placeholder="Referral Code (New link only)" type="text" /> <button class="btn btn-y" onclick="doReg()">REGISTER NEW ACCOUNT - ACTIVATE</button><hr />
<h3 style="color: #8ab0ff;">Login</h3>
<input id="lCode" placeholder="BSM Code or Phone" type="text" /><input id="lPass" type="password" placeholder="Password" /> <button class="btn btn-b" onclick="doLogin()">LOGIN - ACTIVATE ALL BUTTONS</button>
<p id="linkMsg" style="font-size: 11px; color: #ffcc33;"></p>
</div>
<div id="dash" style="display: none;">
<div class="card" style="border: 2px solid #ffcc33;"><b><span id="uName"></span> <span class="badge" id="uCodeBadge"></span></b><br />Code: <b id="uCode"></b> | Lvl <span id="uLvl"></span> | Inv R<span id="uInv"></span> | Bal R<span id="uBal"></span></div>
<div class="card" style="border: 2px solid #ffcc33; background: linear-gradient(135deg,#132040,#0e244a);">
<h4 style="color: #ffcc33; margin: 0;">πŸ”— NEW INVITE LINK (Old reset)</h4>
<input id="invLink" readonly="readonly" style="border: 2px solid #ffcc33; color: #ffcc33; font-weight: 900;" type="text" /> <button class="btn btn-y" onclick="copyInvite()">πŸ“‹ COPY NEW LINK - REGISTER NEW ACCOUNT</button> <button class="btn btn-b" onclick="shareWA()">πŸ’¬ SHARE TO WHATSAPP</button>
<p style="font-size: 10px;">New link: <span id="invCode"></span> - Old links expired!</p>
</div>
<div class="card">
<h4 style="color: #ffcc33;">✈️ LEVELS - All Buttons Active</h4>
<div class="lv">
<div onclick="submitDep(150)">Lvl1 R150</div>
<div onclick="submitDep(300)">Lvl2 R300</div>
<div onclick="submitDep(600)">Lvl3 R600</div>
<div onclick="submitDep(1000)">Lvl4 R1000</div>
<div onclick="submitDep(2000)">Lvl5 R2000</div>
</div>
<p style="font-size: 11px; color: #ffcc33;">GOTYME BANK 53002232772 - Fee 12% Min R60</p>
</div>
<div class="card"><input id="dRef" placeholder="Ref: AIRWAYS FLIGHTS" type="text" /><button class="btn btn-g" onclick="customDep()">DEPOSIT - GOTYME BANK</button> <input id="wAmt" type="number" placeholder="Withdraw Min R60" /><button class="btn btn-b" onclick="submitWit()">WITHDRAW - 12% FEE</button>
<div id="hist" style="font-size: 11px; margin-top: 8px;"></div>
</div>
<div class="card"><input id="bName" placeholder="Bank" type="text" /><input id="bHolder" placeholder="Holder" type="text" /><input id="bNumber" placeholder="Acc No" type="text" /> <button class="btn btn-b" onclick="saveBank()">Save Bank</button>
<p id="bankInfo" style="font-size: 11px;"></p>
</div>
<button class="btn" style="background: #222; color: #fff;" onclick="logout()">Logout</button></div>
<script>
let users=JSON.parse(localStorage.getItem('airUsers')||'[]');
let cur=JSON.parse(localStorage.getItem('airCur')||'null');
if(cur) showDash();
// NEW LINK SYSTEM - Check ref on load
window.addEventListener('DOMContentLoaded',()=>{
let params=new URLSearchParams(location.search);
let ref=params.get('ref');
if(ref){
let all=JSON.parse(localStorage.getItem('airUsers')||'[]');
let found=all.find(u=>u.myCode==ref);
if(found){
rRef.value=ref;
linkMsg.innerText='βœ… New invite from '+found.name+' ('+ref+') - Register new account to activate!';
} else {
// Old link expired
linkMsg.innerText='⚠️ Old link '+ref+' expired! Use new link. Register new account to activate.';
rRef.value='';
}
}
});
function genCode(phone){return 'BSM'+Math.floor(10000+Math.random()*90000);}
function doReg(){
let name=rName.value.trim(),phone=rPhone.value.trim(),pass=rPass.value.trim(),ref=rRef.value.trim();
if(!name||!phone||!pass){alert('Fill all');return;}
if(phone=='0790991677'||phone=='27790991677'){alert('Admin hidden');return;}
if(users.find(u=>u.phone==phone)){alert('Phone exists - Login');return;}
let code=genCode(phone);
while(users.find(u=>u.myCode==code))code=genCode(phone);
let u={name,phone,pass,myCode:code,refBy:ref,i:0,b:0,p:0,level:1,pend:[],h:['New Account Activated'],bank:null,isAdmin:false};
users.push(u);localStorage.setItem('airUsers',JSON.stringify(users));cur=u;localStorage.setItem('airCur',JSON.stringify(cur));
alert('βœ… NEW ACCOUNT ACTIVATED! Your NEW CODE: '+code+'\nInvite Link: https://airways-flights.likesyou.org/register?ref='+code);
showDash();
}
function doLogin(){
let code=lCode.value.trim(),pass=lPass.value.trim();
if(code=='0790991677'){alert('Admin hidden - use admin.html');return;}
let u=users.find(x=>(x.myCode.toLowerCase()==code.toLowerCase()||x.phone==code)&&x.pass==pass&&!x.isAdmin);
if(!u){alert('Wrong code/pass');return;}
cur=u;localStorage.setItem('airCur',JSON.stringify(cur));showDash();
}
function showDash(){
if(!cur)return;
if(cur.phone=='0790991677'||cur.isAdmin){localStorage.removeItem('airCur');location.reload();return;}
auth.style.display='none';dash.style.display='block';
let up=users.find(x=>x.phone==cur.phone)||cur;cur=up;
uName.innerText=cur.name;uCode.innerText=cur.myCode;uCodeBadge.innerText=cur.myCode;invCode.innerText=cur.myCode;uLvl.innerText=cur.level;uInv.innerText=cur.i||0;uBal.innerText=Math.floor(cur.b||0);
let newLink='https://airways-flights.likesyou.org/register?ref='+cur.myCode;
invLink.value=newLink;
bankInfo.innerText=cur.bank?'Saved: '+cur.bank.bankName:'No bank';
hist.innerHTML=(cur.pend||[]).slice(-5).reverse().map(x=>`${x.type} R${x.amt} ${x.status}`).join('<br>');
}
function submitDep(amt){let ref=dRef.value.trim()||'AIRWAYS FLIGHTS';let pend={id:Date.now(),type:'DEPOSIT',amt,ref,status:'PENDING',time:new Date().toLocaleString()};cur.pend.push(pend);cur.h.push('DEP R'+amt);save();let msg=`DEPOSIT ✈️\nName:${cur.name}\nBSM:${cur.myCode}\nR${amt} Ref:${ref}\nGOTYME BANK ACC 53002232772 REF AIRWAYS FLIGHTS`;window.open('https://wa.me/27790991677?text='+encodeURIComponent(msg),'_blank');alert('Deposit R'+amt+' to GOTYME 53002232772 - Activated!');showDash();}
function customDep(){let amt=Number(prompt('Amount min 150:'));if(!amt||amt<150)return;submitDep(amt);}
function submitWit(){let amt=Number(wAmt.value);if(!amt||amt<60){alert('Min R60');return;}if((cur.b||0)<amt){alert('No balance');return;}if(!cur.bank){alert('Save bank');return;}let fee=Math.floor(amt*0.12),get=amt-fee;let pend={id:Date.now(),type:'WITHDRAW',amt,fee,get,status:'PENDING',time:new Date().toLocaleString(),bankName:cur.bank.bankName,holder:cur.bank.holder,accNumber:cur.bank.number};cur.pend.push(pend);save();let msg=`WITHDRAW ✈️\nBSM:${cur.myCode}\nR${amt} Fee R${fee} Get R${get}\nBank ${cur.bank.bankName}`;window.open('https://wa.me/27790991677?text='+encodeURIComponent(msg),'_blank');alert('Withdraw R'+amt+' pending');showDash();}
function copyInvite(){let link=invLink.value;navigator.clipboard.writeText(link);alert('βœ… NEW LINK COPIED:\n'+link+'\nOld links reset - Must register new account!');}
function shareWA(){let link=invLink.value;window.open('https://wa.me/?text='+encodeURIComponent('Join Airways Flights NEW LINK - Register new account to activate! '+link+' GOTYME BANK 53002232772'),' _blank');}
function saveBank(){let bank={bankName:bName.value.trim(),holder:bHolder.value.trim(),number:bNumber.value.trim()};if(!bank.bankName||!bank.number){alert('Fill bank');return;}cur.bank=bank;save();alert('Bank saved - Buttons activated!');showDash();}
function save(){let idx=users.findIndex(x=>x.phone==cur.phone);if(idx>=0)users[idx]=cur;else users.push(cur);localStorage.setItem('airUsers',JSON.stringify(users));localStorage.setItem('airCur',JSON.stringify(cur));}
function logout(){localStorage.removeItem('airCur');location.reload();}
</script>
</body>
</html>