Beispiel #1
0
<?php

checkauthentication();
$sql = xhead("type='css'");
$count = mysql_num_rows($sql);
if ($count != 0) {
    while ($xhead = mysql_fetch_object($sql)) {
        ?>
			<link href="<?php 
        echo $xhead->src;
        ?>
" rel="stylesheet" type="text/css" /><?php 
    }
}
$sql = "SELECT * FROM xhead WHERE type = 'js'";
$sql = xhead("type='js'");
$count = mysql_num_rows($sql);
if ($count != 0) {
    while ($xhead = mysql_fetch_object($sql)) {
        ?>
			<script language="javascript" src="<?php 
        echo $xhead->src;
        ?>
"></script><?php 
    }
}
Beispiel #2
0
function xhead_list()
{
    return xhead("", "type,src");
}
Beispiel #3
0
<?php

include "includes.php";
checkauthentication();
$ohead = xhead("src", "type = 'css'");
$nhead = mysql_num_rows($ohead);
if ($nhead > 0) {
    while ($xhead = mysql_fetch_array($ohead)) {
        ?>
			
            <link href="<?php 
        echo $xhead['src'];
        ?>
" rel="stylesheet" type="text/css" /><?php 
    }
}
$ohead = xhead("src", "type = 'js'");
$nhead = mysql_num_rows($ohead);
if ($nhead > 0) {
    while ($xhead = mysql_fetch_array($ohead)) {
        ?>
			
			<script language="javascript" src="<?php 
        echo $xhead['src'];
        ?>
"></script><?php 
    }
}