Пример #1
0
    foreach ($PRELOAD as $key) {
        echo "\t\tpic{$i}= new Image(" . $key['w'] . ", " . $key['h'] . ");\n";
        echo "\t\tpic{$i}.src=\"" . $SITE_PREFIX . "imgs/" . $key['src'] . "\";\n";
        $i++;
    }
    echo "</script>\n";
}
?>
	</head>
	<body>
<?php 
if (isset($TWEETER) && $TWEETER) {
    $view_root = dirname(__FILE__) . "/";
    include $view_root . "../model/twitter.php";
    $twit = new twitter();
    $notices = $twit->showUpdates();
    $owner = explode(":", $notices);
    // Messy but goody
    $owner = $owner[0] . ':';
    ?>
		<div class = "tweet-tweet" ><!-- I do love my tweeter -->
			<div class = "tweet-text" >
				<div class = "shim" >
<?php 
    //echo ltrim( $notices[0]['descr'], $notices[0]['owner'] . ":" ); // hackasauris rex
    echo ltrim($notices, $owner);
    ?>
				</div>
			</div>
		</div>
<?php