<?php 
require_once 'functions.php';
$db = connecti();
$accounts = '';
if ($db) {
	$query = "SELECT * FROM `iplusmobile` ORDER BY `account` DESC " ;
	$result = $db->query($query);
	while($row = $result->fetch_array(MYSQLI_ASSOC)) {
		$accounts .= '<p><br/>Service: '.$row['service'].'<br/>Type: ';
		if ($row['mobile']) {
			$accounts .= 'mobile<br/>URL : <a href="http://mobile.allopass.com/abo/wapplus/access.apu?ids='.$row['ids'].'&idd='.$row['idd'].'&offer_id='.$row['offer_id'].'" target="_blank">'.$row['description'].'</a></p>';
		}
		else {
			$accounts .= 'web<br/>URL : <a href="https://payment.allopass.com/abo/wapplus/purchase.apu?ids='.$row['ids'].'&idd='.$row['idd'].'&offer_id='.$row['offer_id'].'" target="_blank">'.$row['description'].'</a></p>';
		}
	}
}

echo $accounts;
?>
