PHP Code Calc For ZTE

Status
Not open for further replies.

Fast Unlocking

Administrator
Staff member
Country
Jordan
Offline
Country flag
<?
$imei=$_REQUEST['imei'];
if(empty($imei)){
?>
<html>
<head>
<title>ZTE Code Calc</title>
</head>
<body>
<div align="center">
<h1 align="center">
PHP ZTE CODE CALC
<BR />
By Celui
</h1>
<strong>IMEI:</strong>
<form name="ztecalc" method="post" action="<? $_SERVER['PHP_SELF']; ?>">
<input type="text" name="imei" maxlength="15" />
<br /><br />
<input type="submit" name="calculate" value="Calculate" />
</form>
</div>
</body>
</html>
<?
}else{
?>
<html>
<head>
<title>ZTE Code Calc</title>
</head>
<body>
<?
$imeilength=strlen($imei);
$imeichars=12;
$imeistart=$imeilength-$imeichars;
$imeistr=substr($imei,$imeistart,$imeichars);
$arr1=str_split($imeistr,6);
$narr1=$arr1[0];
$sub1=str_split($narr1);
$sub11=$sub1[0];
$sub12=$sub1[1];
$sub13=$sub1[2];
$sub14=$sub1[3];
$sub15=$sub1[4];
$sub16=$sub1[5];
$narr2=$arr1[1];
$sub2=str_split($narr2);
$sub21=$sub2[0];
$sub22=$sub2[1];
$sub23=$sub2[2];
$sub24=$sub2[3];
$sub25=$sub2[4];
$sub26=$sub2[5];
$arrtotal=$sub11+$sub12+$sub13+$sub14+$sub15+$sub16+$sub21+$sub22+$sub23+$sub24+$sub25+$sub26;
$sub31=$sub11*$arrtotal;
$leng***1=strlen($sub31);
$characters31=1;
$start31=$leng***1-$characters31;
$sub311=substr($sub31,$start31,$characters31);
$sub32=$sub12*$arrtotal;
$leng***2=strlen($sub32);
$characters32=1;
$start32=$leng***2-$characters32;
$sub312=substr($sub32,$start32,$characters32);
$sub33=$sub13*$arrtotal;
$leng***3=strlen($sub33);
$characters33=1;
$start33=$leng***3-$characters33;
$sub313=substr($sub33,$start33,$characters33);
$sub34=$sub14*$arrtotal;
$leng***4=strlen($sub34);
$characters34=1;
$start34=$leng***4-$characters34;
$sub314=substr($sub34,$start34,$characters34);
$sub35=$sub15*$arrtotal;
$leng***5=strlen($sub35);
$characters35=1;
$start35=$leng***5-$characters35;
$sub315=substr($sub35,$start35,$characters35);
$sub36=$sub16*$arrtotal;
$leng***6=strlen($sub36);
$characters36=1;
$start36=$leng***6-$characters36;
$sub316=substr($sub36,$start36,$characters36);
$sub41=$sub21*$arrtotal;
$length41=strlen($sub41);
$characters41=1;
$start41=$length41-$characters41;
$sub411=substr($sub41,$start41,$characters41);
$sub42=$sub22*$arrtotal;
$length42=strlen($sub42);
$characters42=1;
$start42=$length42-$characters42;
$sub412=substr($sub42,$start42,$characters42);
$sub43=$sub23*$arrtotal;
$length43=strlen($sub43);
$characters43=1;
$start43=$length43-$characters43;
$sub413=substr($sub43,$start43,$characters43);
$sub44=$sub24*$arrtotal;
$length44=strlen($sub44);
$characters44=1;
$start44=$length44-$characters44;
$sub414=substr($sub44,$start44,$characters44);
$sub45=$sub25*$arrtotal;
$length45=strlen($sub45);
$characters45=1;
$start45=$length45-$characters45;
$sub415=substr($sub45,$start45,$characters45);
$sub46=$sub26*$arrtotal;
$length46=strlen($sub46);
$characters46=1;
$start46=$length46-$characters46;
$sub416=substr($sub46,$start46,$characters46);
if($sub26==="0"){$new11="0";}elseif($sub26==="1"){$new11="8";}elseif($sub26==="2"){$new11="6";}elseif($sub26==="3"){$new11="4";}elseif($sub26==="4"){$new11="2";}elseif($sub26==="5"){$new11="0";}elseif($sub26==="6"){$new11="8";}elseif($sub26==="7"){$new11="6";}elseif($sub26==="8"){$new11="4";}else{$new11="2";}
if($sub25==="0"){$new12="0";}elseif($sub25==="1"){$new12="8";}elseif($sub25==="2"){$new12="6";}elseif($sub25==="3"){$new12="4";}elseif($sub25==="4"){$new12="2";}elseif($sub25==="5"){$new12="0";}elseif($sub25==="6"){$new12="8";}elseif($sub25==="7"){$new12="6";}elseif($sub25==="8"){$new12="4";}else{$new12="2";}
if($sub24==="0"){$new13="0";}elseif($sub24==="1"){$new13="8";}elseif($sub24==="2"){$new13="6";}elseif($sub24==="3"){$new13="4";}elseif($sub24==="4"){$new13="2";}elseif($sub24==="5"){$new13="0";}elseif($sub24==="6"){$new13="8";}elseif($sub24==="7"){$new13="6";}elseif($sub24==="8"){$new13="4";}else{$new13="2";}
if($sub23==="0"){$new14="0";}elseif($sub23==="1"){$new14="8";}elseif($sub23==="2"){$new14="6";}elseif($sub23==="3"){$new14="4";}elseif($sub23==="4"){$new14="2";}elseif($sub23==="5"){$new14="0";}elseif($sub23==="6"){$new14="8";}elseif($sub23==="7"){$new14="6";}elseif($sub23==="8"){$new14="4";}else{$new14="2";}
if($sub22==="0"){$new15="0";}elseif($sub22==="1"){$new15="8";}elseif($sub22==="2"){$new15="6";}elseif($sub22==="3"){$new15="4";}elseif($sub22==="4"){$new15="2";}elseif($sub22==="5"){$new15="0";}elseif($sub22==="6"){$new15="8";}elseif($sub22==="7"){$new15="6";}elseif($sub22==="8"){$new15="4";}else{$new15="2";}
if($sub21==="0"){$new16="0";}elseif($sub21==="1"){$new16="8";}elseif($sub21==="2"){$new16="6";}elseif($sub21==="3"){$new16="4";}elseif($sub21==="4"){$new16="2";}elseif($sub21==="5"){$new16="0";}elseif($sub21==="6"){$new16="8";}elseif($sub21==="7"){$new16="6";}elseif($sub21==="8"){$new16="4";}else{$new16="2";}
if($sub16==="0"){$new21="0";}elseif($sub16==="1"){$new21="8";}elseif($sub16==="2"){$new21="6";}elseif($sub16==="3"){$new21="4";}elseif($sub16==="4"){$new21="2";}elseif($sub16==="5"){$new21="0";}elseif($sub16==="6"){$new21="8";}elseif($sub16==="7"){$new21="6";}elseif($sub16==="8"){$new21="4";}else{$new21="2";}
if($sub15==="0"){$new22="0";}elseif($sub15==="1"){$new22="8";}elseif($sub15==="2"){$new22="6";}elseif($sub15==="3"){$new22="4";}elseif($sub15==="4"){$new22="2";}elseif($sub15==="5"){$new22="0";}elseif($sub15==="6"){$new22="8";}elseif($sub15==="7"){$new22="6";}elseif($sub15==="8"){$new22="4";}else{$new22="2";}
if($sub14==="0"){$new23="0";}elseif($sub14==="1"){$new23="8";}elseif($sub14==="2"){$new23="6";}elseif($sub14==="3"){$new23="4";}elseif($sub14==="4"){$new23="2";}elseif($sub14==="5"){$new23="0";}elseif($sub14==="6"){$new23="8";}elseif($sub14==="7"){$new23="6";}elseif($sub14==="8"){$new23="4";}else{$new23="2";}
if($sub13==="0"){$new24="0";}elseif($sub13==="1"){$new24="8";}elseif($sub13==="2"){$new24="6";}elseif($sub13==="3"){$new24="4";}elseif($sub13==="4"){$new24="2";}elseif($sub13==="5"){$new24="0";}elseif($sub13==="6"){$new24="8";}elseif($sub13==="7"){$new24="6";}elseif($sub13==="8"){$new24="4";}else{$new24="2";}
if($sub12==="0"){$new25="0";}elseif($sub12==="1"){$new25="8";}elseif($sub12==="2"){$new25="6";}elseif($sub12==="3"){$new25="4";}elseif($sub12==="4"){$new25="2";}elseif($sub12==="5"){$new25="0";}elseif($sub12==="6"){$new25="8";}elseif($sub12==="7"){$new25="6";}elseif($sub12==="8"){$new25="4";}else{$new25="2";}
if($sub11==="0"){$new26="0";}elseif($sub11==="1"){$new26="8";}elseif($sub11==="2"){$new26="6";}elseif($sub11==="3"){$new26="4";}elseif($sub11==="4"){$new26="2";}elseif($sub11==="5"){$new26="0";}elseif($sub11==="6"){$new26="8";}elseif($sub11==="7"){$new26="6";}elseif($sub11==="8"){$new26="4";}else{$new26="2";}
$old1="6";
$old2="8";
$old3="8";
$old4="9";
$old5="5";
$old6="0";
$old7="0";
$old8="0";
$old9="0";
$old10="0";
$old11="0";
$old12="0";
$code1=$sub311+$old1+$new11;
$codelength1=strlen($code1);
$codechars1=1;
$codestart1=$codelength1-$codechars1;
$code31=substr($code1,$codestart1,$codechars1);
$code2=$sub312+$old2+$new12;
$codelength2=strlen($code2);
$codechars2=1;
$codestart2=$codelength2-$codechars2;
$code32=substr($code2,$codestart2,$codechars2);
$code3=$sub313+$old3+$new13;
$codeleng***=strlen($code3);
$codechars3=1;
$codestart3=$codeleng***-$codechars3;
$code33=substr($code3,$codestart3,$codechars3);
$code4=$sub314+$old4+$new14;
$codelength4=strlen($code4);
$codechars4=1;
$codestart4=$codelength4-$codechars4;
$code34=substr($code4,$codestart4,$codechars4);
$code5=$sub315+$old5+$new15;
$codelength5=strlen($code5);
$codechars5=1;
$codestart5=$codelength5-$codechars5;
$code35=substr($code5,$codestart5,$codechars5);
$code6=$sub316+$old6+$new16;
$codelength6=strlen($code6);
$codechars6=1;
$codestart6=$codelength6-$codechars6;
$code36=substr($code6,$codestart6,$codechars6);
$code7=$sub411+$old7+$new21;
$codelength7=strlen($code7);
$codechars7=1;
$codestart7=$codelength7-$codechars7;
$code37=substr($code7,$codestart7,$codechars7);
$code8=$sub412+$old8+$new22;
$codelength8=strlen($code8);
$codechars8=1;
$codestart8=$codelength8-$codechars8;
$code38=substr($code8,$codestart8,$codechars8);
$code9=$sub413+$old9+$new23;
$codelength9=strlen($code9);
$codechars9=1;
$codestart9=$codelength9-$codechars9;
$code39=substr($code9,$codestart9,$codechars9);
$code10=$sub414+$old10+$new24;
$codelength10=strlen($code10);
$codechars10=1;
$codestart10=$codelength10-$codechars10;
$code40=substr($code10,$codestart10,$codechars10);
$code11=$sub415+$old11+$new25;
$codelength11=strlen($code11);
$codechars11=1;
$codestart11=$codelength11-$codechars11;
$code41=substr($code11,$codestart11,$codechars11);
$code12=$sub416+$old12+$new26;
$codelength12=strlen($code12);
$codechars12=1;
$codestart12=$codelength12-$codechars12;
$code42=substr($code12,$codestart12,$codechars12);
$spck1=$code31+$sub26;
$spcklength1=strlen($spck1);
$spckchars1=1;
$spckstart1=$spcklength1-$spckchars1;
$spck51=substr($spck1,$spckstart1,$spckchars1);
$spck2=$code32+$sub25;
$spcklength2=strlen($spck2);
$spckchars2=1;
$spckstart2=$spcklength2-$spckchars2;
$spck52=substr($spck2,$spckstart2,$spckchars2);
$spck3=$code33+$sub24;
$spckleng***=strlen($spck3);
$spckchars3=1;
$spckstart3=$spckleng***-$spckchars3;
$spck53=substr($spck3,$spckstart3,$spckchars3);
$spck4=$code34+$sub23;
$spcklength4=strlen($spck4);
$spckchars4=1;
$spckstart4=$spcklength4-$spckchars4;
$spck54=substr($spck4,$spckstart4,$spckchars4);
$spck5=$code35+$sub22;
$spcklength5=strlen($spck5);
$spckchars5=1;
$spckstart5=$spcklength5-$spckchars5;
$spck55=substr($spck5,$spckstart5,$spckchars5);
$spck6=$code36+$sub21;
$spcklength6=strlen($spck6);
$spckchars6=1;
$spckstart6=$spcklength6-$spckchars6;
$spck56=substr($spck6,$spckstart6,$spckchars6);
$spck7=$code37+$sub16;
$spcklength7=strlen($spck7);
$spckchars7=1;
$spckstart7=$spcklength7-$spckchars7;
$spck57=substr($spck7,$spckstart7,$spckchars7);
$spck8=$code38+$sub15;
$spcklength8=strlen($spck8);
$spckchars8=1;
$spckstart8=$spcklength8-$spckchars8;
$spck58=substr($spck8,$spckstart8,$spckchars8);
$spck9=$code39+$sub14;
$spcklength9=strlen($spck9);
$spckchars9=1;
$spckstart9=$spcklength9-$spckchars9;
$spck59=substr($spck9,$spckstart9,$spckchars9);
$spck10=$code40+$sub13;
$spcklength10=strlen($spck10);
$spckchars10=1;
$spckstart10=$spcklength10-$spckchars10;
$spck60=substr($spck10,$spckstart10,$spckchars10);
$spck11=$code41+$sub12;
$spcklength11=strlen($spck11);
$spckchars11=1;
$spckstart11=$spcklength11-$spckchars11;
$spck61=substr($spck11,$spckstart11,$spckchars11);
$spck12=$code42+$sub11;
$spcklength12=strlen($spck12);
$spckchars12=1;
$spckstart12=$spcklength12-$spckchars12;
$spck62=substr($spck12,$spckstart12,$spckchars12);
$ztenckcode="$code31$code32$code33$code34$code35$code36$code37$code38$code39$code40$code41$code42";
$ztespckcode="$spck51$spck52$spck53$spck54$spck55$spck56$spck57$spck58$spck59$spck60$spck61$spck62";
echo"<div align=center>";
echo"<strong>NCK/NP Code - $ztenckcode</strong>";
echo"<br /><br />";
echo"<strong>SPCK/SP Code - $ztespckcode</strong>";
echo"<br /><br />";
echo"<strong><a href=".$_SERVER['PHP_SELF'].">Go Back</a></strong>";
echo"</div>";
?>
</body>
</html>
<?
}
exit;
?>
 
Status
Not open for further replies.
Back
Top