foreach ($_REQUEST as $key=>$val) { ${$key}=$val;}
foreach ($_SERVER as $key=>$val) { ${$key}=$val;}
require "function.php";
$TITEL=$lang['onboardcli_title'];
function head() {
global $lang;
?>
}
function center() {
global $conn, $sesion,$id,$Qpsp,$Quser,$uu_uu,$ur_ur,$Qemail, $lang, $language,$dddd, $action, $messaa,$kolmes;
$subses=substr($Qpsp, 24, 32);
$client_id="737615945244-r3qqfpekrvo27t0jg6qjgospeumgbaek.apps.googleusercontent.com";
$client_secret="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";
$redirect_uri="https://profyer.com/auth.php";
if(isset($_GET["action"])){
if($_GET["action"]=="retinfo"){
$aaa=json_decode($_GET["u_info"], true);
print_r($aaa);
die;
}
}
if(isset($_GET["action"])){
if($_GET["action"]=="rettoken"){
$params = array(
"access_token" => $_GET["access_token"],
"id_token" => $_GET["id_token"],
"token_type" => "Bearer",
"expires_in" => 3599
);
$info = file_get_contents("https://www.googleapis.com/oauth2/v1/userinfo?" . http_build_query($params));
print_r($info);
die;
}
}
if(!isset($_GET["code"])) {
$params = array(
"redirect_uri" => $redirect_uri,
"client_id" => $client_id,
"response_type" => "code",
"scope" => "https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/userinfo.profile",
"state" => "0"
);
$params1 = array(
'client_id' => '409556495360235',
'redirect_uri' => 'https://profyer.com/fbauth.php',
'scope' => 'email',
'response_type' => 'code',
'state' => '0'
);
}
?>
/*
*/
?>
$z=mysqli_query($conn, "select count(id) from podcategory ");
$x=@mysqli_fetch_array($z);
$z1=mysqli_query($conn, "select count(id) from user where prof=1 ");
$x1=@mysqli_fetch_array($z1);
$r4=@mysqli_query($conn, "select sum(rating) from review ");
$f4=@mysqli_fetch_array($r4);
if ($f4[0]==NULL) {$f4[0]=0;}
$r5=@mysqli_query($conn, "select count(id) from review ");
$f5=@mysqli_fetch_array($r5);
///echo "===$f4[0]==$f5[0]=";
$rating=@($f4[0]/$f5[0]);
$rating=round($rating, 1);
$rating="4.7";
$z2=mysqli_query($conn, "select count(id) from lang_speak");
$x2=@mysqli_fetch_array($z2);
?>
$r1= mysqli_query($conn, "select count(id) from user where prof=1");
$f15666=mysqli_fetch_array($r1);
?>
/////echo "========$Quser==$ur_ur==";
$wh=" and onkli='1' ";
$kolonka="name_".$language;
///////echo "select id, $kolonka from faq_razdel where id>0 $wh ";
$r = mysqli_query($conn, "select id, $kolonka from faq_razdel where id>0 $wh order by sorti ");
for($i=0; $i$f[1]
";
$r1= mysqli_query($conn, "select id, $kolonka, o$kolonka from faq where id_razdel ='$f[id]' $wh order by sorti ");
for($j=0; $j
$f1[1]";
echo "$f1[2]
";
}
}
?>
$kolonka="name_".$language;
$r= mysqli_query($conn, "select id, $kolonka from category limit 0,4");
for($i=0; $i
|
$r1= mysqli_query($conn, "select id, $kolonka from podcategory where id_category ='$f[id]' ");
for($j=0; $j
|
}
?>
}
?>
$kolonka="name_".$language;
$r= mysqli_query($conn, "select id, $kolonka from category limit 4,4");
for($i=0; $i
|
$r1= mysqli_query($conn, "select id, $kolonka from podcategory where id_category ='$f[id]' ");
for($j=0; $j
|
}
?>
}
?>
$kolonka="name_".$language;
$r= mysqli_query($conn, "select id, $kolonka from category limit 8,3");
for($i=0; $i
|
$r1= mysqli_query($conn, "select id, $kolonka from podcategory where id_category ='$f[id]' ");
for($j=0; $j
|
}
?>
}
?>
$kolonka="name_".$language;
$r= mysqli_query($conn, "select id, $kolonka from category limit 11,5");
for($i=0; $i
|
$r1= mysqli_query($conn, "select id, $kolonka from podcategory where id_category ='$f[id]' ");
for($j=0; $j
|
}
?>
}
?>
}
include "templates/main.php";
?>