コード例 #1
0
ファイル: load.php プロジェクト: kelsh/classic
    $uuid = substr($chars, 0, 8) . '-';
    $uuid .= substr($chars, 8, 4) . '-';
    $uuid .= substr($chars, 12, 4) . '-';
    $uuid .= substr($chars, 16, 4) . '-';
    $uuid .= substr($chars, 20, 12);
    return $prefix . $uuid;
}
if (preg_match('/^.*\\.?wetfish.net$/i', $URL['host'])) {
    echo file_get_contents($_GET['url']);
    return false;
    $HTML = str_get_html(file_get_contents($_GET['url'] . "&load=true"));
    $Unique = uuid('yay');
    $CSS = new CSS();
    $Data = array();
    foreach ($HTML->find('style') as $Style) {
        $CSS->Import($Style->innertext);
        $Data = array_merge($Data, $CSS->Export('raw'));
        $Style->outertext = '';
    }
    foreach ($HTML->find('link') as $Style) {
        $CSS->Import(file_get_contents($URL['scheme'] . "://" . $URL['host'] . "/" . $Style->href));
        $Data = array_merge($Data, $CSS->Export('raw'));
        $Style->outertext = '';
    }
    foreach ($Data as $Tag => $Styles) {
        if ($Styles['position'] == "relative") {
            $Data['#' . $_GET['id']] = array('height' => $Styles['height'], 'width' => $Styles['width']);
        }
        switch ($Tag[0]) {
            default:
                foreach ($HTML->find($Tag) as $Derp) {