Exemple #1
0
function showResult($txt)
{
    global $victim, $ymsg;
    header('Content-Type: text/xml');
    $xml = '<?xml version="1.0" ?><is>';
    $xml .= '<id>' . htmlentities($victim) . '</id>';
    if (in_array($txt, array('id', 'yahoo', 'exists', 'invalid', 'busy', 'forbid'))) {
        $xml .= '<error>';
        switch ($txt) {
            case 'id':
                $xml .= 'id';
                break;
            case 'invalid':
                $xml .= 'i';
                break;
            case 'exists':
                $xml .= 'e';
                break;
            case 'yahoo':
                $xml .= 'y';
                break;
            case 'busy':
                $xml .= 'b1';
                break;
            case 'forbid':
                $xml .= 'b' . rand(1, 3);
                break;
        }
        $xml .= '</error>';
    } else {
        $isProfile = checkProfile($victim);
        $xml .= '<status>';
        switch ($txt) {
            case 'offline':
                $xml .= 0;
                break;
            case 'online':
                $xml .= 1;
                break;
            case 'invisible':
                $xml .= 2;
                break;
        }
        $xml .= '</status>';
        if ($isProfile) {
            $xml .= '<profile>1</profile>';
        } else {
            $xml .= '<profile>0</profile>';
        }
    }
    $xml .= '</is>';
    die($xml);
}
Exemple #2
0
 if (preg_match("/\\.{0,1}[ru|su|рф]\$/ui", $zone->zone)) {
     $isR = 1;
     if (!checkProfile("max", $_SESSION["userId"], $domain->profileId)) {
         print $_lang[PayErrorNoProfileWithPassport];
         print "<BR>" . $_lang[PayGoto] . " <A class=rootlink href=billing.php?do=profile&isR=1&profileId={$domain->profileId}&bill_id={$r->id}>" . $_lang[PayGotoFor] . "</a>.";
         foot('utf-8');
         mclose();
         exit;
     }
 } else {
     $isD = 1;
     if (mb_strtolower($zone->zone) == "pp.ua") {
         $isPPUA = 1;
         $rF[] = "mobile";
     }
     if (!checkProfile("min", $_SESSION["userId"], $domain->profileId)) {
         print $_lang[PayErrorNoProfile];
         print "<BR>" . $_lang[PayGoto] . " <A class=rootlink href=billing.php?do=profile&isD=1&isPPUA={$isPPUA}&profileId={$domain->profileId}&bill_id={$r->id}>" . $_lang[PayGotoFor] . "</a>.";
         foot('utf-8');
         mclose();
         exit;
     }
 }
 if (mb_strtolower($zone->zone) == "ru") {
     $isR = 1;
     $isD = "";
     if (!checkProfileByAdmin($_SESSION["userId"], $domain->profileId)) {
         print $_lang[PayErrorNoProfileCheck];
         foot('utf-8');
         mclose();
         exit;
Exemple #3
0
	
	<!-- HEADER -->
	<div id="header-with-tabs">
		
		

	</div> <!-- end header -->
	
	
	
	<!-- MAIN CONTENT -->
	<div id="content">
		
		<div class="page-full-width cf">

			<? checkProfile();?>
		
			

			<div class="content-module">
			
				<div class="content-module-heading cf">
				
					<h3 class="fl">Profile</h3>
					<span class="fr expand-collapse-text">Click to collapse</span>
					<span class="fr expand-collapse-text initial-expand">Click to expand</span>
				
				</div> <!-- end content-module-heading -->
				
				
				<div class="content-module-main">