include 'include/function_certificate.php';
if ($_REQUEST["id"]=='TO009'){
if($_SERVER["HTTP_HOST"] == "bridgeweb.dyndns.org" || $_SERVER["HTTP_HOST"] == "192.168.1.120" ){
$url='http://bridgeweb.dyndns.org/works/teflonline/site/pdf/certificate.php?id=TO009';
}else{
$url='http://www.teflonline.com/pdf/certificate.php?id=TO009';
}
$full=1;
$hour= 120;
$decryptName='Mary Davis';
$decryptId=$_REQUEST["id"];
$acu1='B';
$acu = $cueMod = $cueBLYL = $acuBL = $acuYL = 'TEST';
$grammar='YES';
$porcAcu=100;
}
elseif ($_REQUEST["id"]=='TO0005032'){
if($_SERVER["HTTP_HOST"] == "bridgeweb.dyndns.org" || $_SERVER["HTTP_HOST"] == "192.168.1.120" ){
$url='http://bridgeweb.dyndns.org/works/teflonline/site/pdf/certificate.php?id=TO0005032';
}else{
$url='http://www.teflonline.com/pdf/certificate.php?id=TO0005032';
}
$full=1;
$hour= 60;
$decryptName='Justin Brown';
$decryptId=$_REQUEST["id"];
$acu1='A';
//$acu = $cueMod = $cueBLYL = $acuBL = $acuYL = 'TEST';
$grammar='NO';
$porcAcu=100;
}
elseif ($_REQUEST["id"]=='TO0000305'){
if($_SERVER["HTTP_HOST"] == "bridgeweb.dyndns.org" || $_SERVER["HTTP_HOST"] == "192.168.1.120" ){
$url='http://bridgeweb.dyndns.org/works/teflonline/site/pdf/certificate.php?id=TO0005032';
}else{
$url='http://www.teflonline.com/pdf/certificate.php?id=TO0005032';
}
$full=1;
$hour= 60;
$decryptName='Katie Arce';
$decryptId=$_REQUEST["id"];
$acu1='A';
//$acu = $cueMod = $cueBLYL = $acuBL = $acuYL = 'TEST';
$grammar='YES';
$porcAcu=100;
}
elseif ($_REQUEST["id"]=='TO0001551'){
if($_SERVER["HTTP_HOST"] == "bridgeweb.dyndns.org" || $_SERVER["HTTP_HOST"] == "192.168.1.120" ){
$url='http://bridgeweb.dyndns.org/works/teflonline/site/pdf/certificate.php?id=TO0001551';
}else{
$url='http://www.teflonline.com/pdf/certificate.php?id=TO0001551';
}
$full=1;
$hour= 60;
$decryptName='Paul Kendall';
$decryptId=$_REQUEST["id"];
$acu1='A';
//$acu = $cueMod = $cueBLYL = $acuBL = $acuYL = 'TEST';
$grammar='NO';
$porcAcu=100;
}
elseif ($_REQUEST["id"]=='TO0005557'){
if($_SERVER["HTTP_HOST"] == "bridgeweb.dyndns.org" || $_SERVER["HTTP_HOST"] == "192.168.1.120" ){
$url='http://bridgeweb.dyndns.org/works/teflonline/site/pdf/certificate.php?id=TO0005557';
}else{
$url='http://www.teflonline.com/pdf/certificate.php?id=TO0005557';
}
$full=1;
$hour= 60;
$decryptName='Christopher Ricciardi';
$decryptId=$_REQUEST["id"];
$acu1='A';
//$acu = $cueMod = $cueBLYL = $acuBL = $acuYL = 'TEST';
$grammar='NO';
$porcAcu=100;
}
elseif ($_REQUEST["id"]=='TO0021134'){
if($_SERVER["HTTP_HOST"] == "bridgeweb.dyndns.org" || $_SERVER["HTTP_HOST"] == "192.168.1.120" ){
$url='http://bridgeweb.dyndns.org/works/teflonline/site/pdf/certificate.php?id=TO0021134';
}else{
$url='http://www.teflonline.com/pdf/certificate.php?id=TO0021134';
}
$full=0;
$hour= 40;
$decryptName='Stephanie Taplin';
$decryptId=$_REQUEST["id"];
$acu1='A';
//$acu = $cueMod = $cueBLYL = $acuBL = $acuYL = 'TEST';
$grammar='NO';
$porcAcu=100;
}
elseif ($_REQUEST["id"]=='TO0000489'){
if($_SERVER["HTTP_HOST"] == "bridgeweb.dyndns.org" || $_SERVER["HTTP_HOST"] == "192.168.1.120" ){
$url='http://bridgeweb.dyndns.org/works/teflonline/site/pdf/certificate.php?id=TO0005032';
}else{
$url='http://www.teflonline.com/pdf/certificate.php?id=TO0000489';
}
$full=1;
$hour= 60;
$decryptName='Eboni Bailey-Bonaiti';
$decryptId=$_REQUEST["id"];
$acu1='A';
//$acu = $cueMod = $cueBLYL = $acuBL = $acuYL = 'TEST';
$grammar='NO';
$porcAcu=100;
}
elseif ($_REQUEST["id"]=='TO0002781'){
if($_SERVER["HTTP_HOST"] == "bridgeweb.dyndns.org" || $_SERVER["HTTP_HOST"] == "192.168.1.120" ){
$url='http://bridgeweb.dyndns.org/works/teflonline/site/pdf/certificate.php?id=TO0002781';
}else{
$url='http://www.teflonline.com/pdf/certificate.php?id=TO0002781';
}
$full=1;
$hour= 60;
$decryptName='Christopher Kerestes';
$decryptId=$_REQUEST["id"];
$acu1='A';
//$acu = $cueMod = $cueBLYL = $acuBL = $acuYL = 'TEST';
$grammar='NO';
$porcAcu=100;
}
elseif ($_REQUEST["id"]=='TO0004988'){
if($_SERVER["HTTP_HOST"] == "bridgeweb.dyndns.org" || $_SERVER["HTTP_HOST"] == "192.168.1.120" ){
$url='http://bridgeweb.dyndns.org/works/teflonline/site/pdf/certificate.php?id=TO0004988';
}else{
$url='http://www.teflonline.com/pdf/certificate.php?id=TO0004988';
}
$full=1;
$hour= 60;
$decryptName='Ming Chung';
$decryptId=$_REQUEST["id"];
$acu1='A';
//$acu = $cueMod = $cueBLYL = $acuBL = $acuYL = 'TEST';
$grammar='NO';
$porcAcu=100;
}
elseif ($_REQUEST["id"]=='TO0000771'){
$url='http://www.teflonline.com/pdf/certificate.php?id=TO0000771';
$full=1;
$hour= 80;
$decryptName='Dana Jensen';
$decryptId=$_REQUEST["id"];
$acu1='A';
//$acu = $cueMod = $cueBLYL = $acuBL = $acuYL = 'TEST';
$grammar='NO';
$porcAcu=100;
}
elseif ($_REQUEST["id"]=='TO0003600'){
$url='http://www.teflonline.com/pdf/certificate.php?id=TO0003600';
$full=1;
$hour= 120;
$decryptName='Maria Falk';
$decryptId=$_REQUEST["id"];
$acu1='A';
$acu = $cueMod = $cueBLYL = $acuBL = $acuYL = 'TEST';
$grammar='YES';
$porcAcu=100;
}
elseif ($_REQUEST["id"]=='TO0023173'){
$url='http://www.teflonline.com/pdf/certificate.php?id=TO0023173';
$full=1;
$hour= 10;
$decryptName='DANE JUDDD';
$decryptId=$_REQUEST["id"];
$acu1='C';
//$acu = $cueMod = $cueBLYL = $acuBL = $acuYL = 'TEST';
$grammar='NO';
$porcAcu=100;
}
elseif ($_REQUEST["id"]=='TO0001177'){
$url='http://www.teflonline.com/pdf/certificate.php?id=TO0001177';
$full=1;
$hour= 70;
$decryptName='JENNIFER CULLISON';
$decryptId=$_REQUEST["id"];
$acu1='A';
//$acu = $cueMod = $cueBLYL = $acuBL = $acuYL = 'TEST';
$acuBL ="test";
$grammar='NO';
$porcAcu=100;
}
elseif ($_REQUEST["id"]=='TO0035168'){
$url='http://www.teflonline.com/pdf/certificate.php?id=TO0035168';
$full=1;
$hour= 140;
$decryptName='Joseph Patrick Gerard Alfone';
$decryptId=$_REQUEST["id"];
$acu1='A';
$acu = $cueMod = $cueBLYL = $acuBL = $acuYL = 'TEST';
$grammar='YES';
$porcAcu=100;
}
else{
if (empty($_REQUEST["n"])) {
header("location:verification.php");;
}
$acu = $cueMod = $cueBLYL = $acuBL = $acuYL = 0;
if($_SERVER["HTTP_HOST"] == "bridgeweb.dyndns.org" || $_SERVER["HTTP_HOST"] == "192.168.1.120" ){
$url='http://bridgeweb.dyndns.org/works/teflonline/site/pdf/certificate.php';
}else{
$url='http://www.teflonline.com/pdf/certificate.php?id=';
}
$n = $_REQUEST["n"];
$s = $_REQUEST["s"];
$decryptName = web360_decrypt($n, 'web360', 5);
$decryptId = web360_decrypt($s, 'web360', 5);
$sql = " SELECT * " .
" FROM student_40 " .
" WHERE StudentId = '$decryptId' LIMIT 1";
$con = db_connectTO();
$url = $url.$decryptId;
$course40 = mysql_query($sql, $con);
$row40 = mysql_fetch_array($course40);
$full=1; // si queda en 0 solo tiene curso de 40 hs.
if ($row40['status']==1){
$full=0;
}
if ($full==1){
$cantcourse=2;
$porcent=1;
$row = getUserTeflGraduated($decryptId );
}else{
$cantcourse=241;
$porcent=10/3;
$row = getUserTeflGraduatedBasic($decryptId);
}
if(($row[0]['cant']==2 && $full==1) || ($row['cant']==241 && $full==0)){
$sqlQuery = "SELECT SS.Correlativity, m.Title, m.ModuleId AS mi, m.Description AS descr, "
." m.Content AS cont, m.ModuleOrder AS mo "
." FROM Modules as m, Suscriptions S, Students_Status SS "
." WHERE m.ModuleId = S.ModuleId AND m.Type_Suscription = SS.Type_Suscription AND SS.StudentId = S.StudentId "
." AND S.StudentId = '$decryptId' AND m.ModuleId > 50 "
." AND m.ModuleOrder != 15 "
." ORDER BY m.ModuleOrder ASC";
$resultNota = mysql_query($sqlQuery);
// PARA CALCULAR IGUAL QUE EN TO
for($i = 100; $i < 115; $i++){
$prom = number_format(Porc($i,$decryptId, 'Quiz')+Porc($i,$decryptId, 'Assig'),2);
if($prom != '0.00'){
$promParcial += $prom;
$promCount++;
}
}
$acu1 = number_format(($promParcial/$promCount)*$porcent,0);
/// FIN TO
while ($rowNota = mysql_fetch_array($resultNota)){
if(($rowNota["mi"] < 114 )){
/* $acu = Porc($rowNota["mi"],$row["ID"], "Quiz")+Porc($rowNota["mi"],$row["ID"], "Assig") + $acu;
$cueMod++;*/
}elseif($rowNota["mi"] == 120){
$acuBL = Porc($rowNota["mi"],$row["ID"], "Quiz")+Porc($rowNota["mi"],$row["ID"], "Assig");
$cueBLYL++;
}elseif($rowNota["mi"] == 121){
$acuYL = Porc($rowNota["mi"],$row["ID"], "Quiz")+Porc($rowNota["mi"],$row["ID"], "Assig");
$cueBLYL++;
}
}
if ($full==0){
$cueMod = 7;
}
$cueTot = $cueMod + $cueBLYL;
list($NameGra, $NumGra) = TypeSuscrip($row["ID"]);
// $acu1 = ($acu != 0)? number_format(($acu/$cueMod)*$porcent,2):'0.00';
$porcAcu=$acu1;
$acu2 = (($acu+$acuBL+$acuYL) != 0)? number_format(($acu+$acuBL+$acuYL)/$cueTot,2):'0.00';
if ($decryptId == "0028637")
{$acu1="A";}
else
{$acu1=abcscore($acu1);} //Note Modules 60hs
$acuBL=abcscore($acuBL); //Note BL 10hs
$acuYL=abcscore($acuYL); //Note YL 10 hs
$hour=0;
if ($acu1 !='' && $full==1){
$hour=60;
}
if ($acu1 !='' && $full==0){
$hour=40;
}
if ($acuBL !=''){
$hour=$hour+10;
}
if ($acuYL !=''){
$hour=$hour+10;
}
$arrStudent = mysql_fetch_array(getUserLandingFinalTO($decryptId));
if(isset($arrStudent['score'])){
if ($arrStudent['score'] >= 70){
$hour=$hour+40;
$grammar='YES';
}
}
}
$url = $url."&hour=".$hour;
}
?>
Certificate Verification
include 'google_analytics_certificates.php';
?>