예제 #1
0
/**
 * Show domain details
 * @param string $domain
 * @return NULL
 */
function show_domaine_details($domain)
{
    global $conf;
    print '<tr><td><a href="admin.php?domain=' . $domain . '">' . $domain . '</a></td>';
    // TODO : synchronization OpenLDAP<-Active Directory
    print '<td>N/A</td>';
    print '<td><b>' . getnumber($domain, 'compte') . '</b></td>';
    print '<td><b>' . getnumber($domain, 'mail') . '</b></td>';
    print '<td><b>' . getnumber($domain, 'smb') . '</b></td>';
    print '<td><b>' . getnumber($domain, 'alias') . '</b></td>';
    print '<td>' . getquota($domain, 'group') . '</td>';
    print '<td>';
    // suppression possible que si utilisation de LDAP
    if ($conf['domaines']['driver'] == 'ldap') {
        print '<a href="domaine.php?del=' . $domain . '">
            <img src="inc/suppr.png" /></a>';
    } else {
        print "Impossible";
    }
    print '</td></tr>';
}
예제 #2
0
	$res .= "<option value=\"$i\"";
	if($i == $rating)
		$res .= " selected";
	$res .= ">".$i."</option>\n";
}
$res .= "</select>\n";
echo $res;
?>
Minimal <a href="http://www.didx.net/rating" target="new">DID vendor rating</a>
<br />
<?php echo getcountry($country_arr, $country, $ID);?>
<br />
<?php echo getarea($area_arr, $area);?>
<br />
<?php if($country==1) echo getnxx($nxx_arr, $nxx)."<br />\n"; else echo '<input type="hidden" name="nxx" value="0">'; ?>
<?php echo getnumber($number_arr, $country, $number);?>
<br />
</form>
</td></tr>
</table>
</div>
<?php

if($number) {
	$vr = $didx->GetCostOfDIDByNumber($number);
	$number_info = $didx->getDIDMinutesInfo($number);
	$number_info['Vendor rating'] = $vr[3];
	echo "<h3>DID $number parameters:</h3><br />";
	echo "<ul>";
	foreach($number_info as $key => $value) {
		echo "<li>$key:&nbsp;$value</li>";
예제 #3
0
파일: index.php 프로젝트: piiskop/pstk
echo "<br>";
echo "<br>";
//Harjutused sõnadele
echo mb_strlen("Süütuse eeldamine.");
echo "<br>";
echo htmlspecialchars("mysql databases -h localhost -u databases -p < [faili nimi].sql", ENT_HTML5, "UTF-8");
echo "<br>";
echo "getPhoneNumber >>>> ", trim("getPhoneNumber", "get");
echo "<br>";
function getnumber($sisestus)
{
    $sisestus = ucfirst($sisestus);
    $tagastan = "get{$sisestus}";
    return $tagastan;
}
echo getnumber("phoneNumber");
echo "<br>";
echo ucwords("ergo siig");
echo "<br>";
echo trim("(\"In Transition 2.0\")", "(\"\")");
echo "<br>";
echo mb_strtolower("(\"In Transition 2.0\")");
echo "<br>";
echo mb_strtoupper("(\"In Transition 2.0\")");
echo "<br>";
$muutuja = 2015.16;
echo number_format($muutuja, 1, ".", " ");
echo "<br>";
?>
<!--  Harjutus: Tähed-->
<h1>Massiivid</h1>