Example #1
0
function createAllClasses($array, $objectName)
{
    $nPerColumn = 8;
    for ($i = 0; $i < $nColumns; $i++) {
        print_r($i);
        print_r("<div>");
        for ($j = $i * $nPerColumn; $j < min(count($array), ($i + 1) * $nPerColumn); $j++) {
            print_r($j);
            print_r(showClass($array[$j][0], $array[$j][1], $objectName));
        }
        print_r("</div>");
    }
}
Example #2
0
<?php

header("Content-type: text/plain");
$GLOBALS['language'] = $source->language;
if ($GLOBALS['language'] == 'js') {
    $GLOBALS['language'] = 'javascript';
}
foreach ($source->extractor->info['function'] as $func) {
    showFunction($func);
}
foreach ($source->extractor->info['class'] as $class_data) {
    showClass($class_data);
}
// Functions
function showClass($class_data)
{
    global $source;
    if ($class_data['name'][0] == '_') {
        return;
    }
    ?>

<?php 
    echo strip_tags($class_data['desc']);
    ?>


<?php 
    showArguments($class_data['args']);
    showExample($class_data['example']);
    if ($class_data['methods']) {
Example #3
0
<td width="245" height="177" background="images/w01.jpg"  valign="top">
<?php 
if (!defined('GALLERY')) {
    die("Hack attempt!");
}
if (is_numeric($_GET[id])) {
    $query = "select * from users where id = {$_GET[id]}";
    $sql = mysql_query($query) or die(mysql_error());
    $rows = mysql_fetch_assoc($sql);
    print '<h2>Фотографии игрока ' . $rows[char_name] . '</h2><ul>
		Уровень : ' . $rows[char_level] . '<br>
		Класс : ' . showClass($rows[char_class]) . '<br>
		Раса : ' . showRace($rows[char_race]) . '<br><br>';
    $dir = "photos/" . $_GET[id];
    $i = 0;
    if ($dh = opendir($dir)) {
        while (($file = readdir($dh)) !== false) {
            if ($file != "." && $file != ".." && $file != "thumbs") {
                if ($i == 3) {
                    echo "<br>";
                    $i = 0;
                }
                print '<a rel="lightbox" href="' . $dir . '/' . $file . '" >
					<img src="' . $dir . '/thumbs/' . $file . '" /></a>';
                $i++;
            }
        }
        closedir($dh);
    }
    echo '</ul>';
} else {
Example #4
0
echo $chars[4][2] . "lvl<br> " . showRace($chars[4][3]) . ", " . showClass($chars[4][4]);
?>
</div>
					</td>
				</tr>
				<tr>
				</tr>
			</table>
			</td>
			<td width="251" height="175" background="images/w07.jpg" style="padding-left:11px;padding-top:40px;" valign="top">
			<table cellpadding="0" cellspacing="0" border="0">
				<tr>
					<td><img src="photos/<?php 
echo $chars[5][5] . "/thumbs/" . $chars[5][1] . ".jpg";
?>
" hspace="10" vspace="5"></td>
					<td width="180" valign="top">
					<div class="cap"><a href = index.php?action=showuser&id=<?php 
echo $chars[5][5] . ">" . $chars[5][0] . "</a>";
?>
</div>
					<div class="small"><?php 
echo $chars[5][2] . "lvl<br> " . showRace($chars[5][3]) . ", " . showClass($chars[5][4]);
?>
</div>
					</td>
				</tr>
				<tr>
				</tr>
			</table>
</td>