Пример #1
0
function filter_Linkify($text)
{
    # It turns urls into links, and video urls into embedded players
    //DebugEcho("begin: filter_linkify");
    $html = LoadDOM($text);
    if ($html) {
        //DebugEcho("filter_linkify: " . $html->save());
        foreach ($html->find('text') as $element) {
            //DebugEcho("filter_linkify: " . $element->innertext);
            $element->innertext = make_links($element->innertext);
        }
        $ret = $html->save();
    } else {
        $ret = make_links($text);
    }
    //DebugEcho("end: filter_linkify");
    return $ret;
}
Пример #2
0
        <?php 
        //slide show starts
        $couponid = $row["coupon_id"];
        $slider = 0;
        $slider_result = mysql_query("select * from slider_images where coupon_id='{$couponid}'");
        if (mysql_num_rows($slider_result) > 0) {
            $slider = mysql_num_rows($slider_result);
        }
        ?>
        <div class="cnt_left fl">
          <div class="img_left deal_video">
            <div class="sold_out"></div>
            <?php 
        if ($row['is_video'] == 1) {
            //get the video url
            $split_video = make_links(html_entity_decode($row['embed_code'], ENT_QUOTES));
            $video_1 = explode("\"", $split_video);
            //print_r($video_1);
            ?>
			     <!-- video embed code-->
			     <object width="404" height="315"><param name="movie" value="<?php 
            echo $video_1[0];
            ?>
?version=3&amp;hl=en_US&amp;rel=0"></param><param name="allowFullScreen" value="true"></param>
			    <param name="allowscriptaccess" value="always" ></param><param name="wmode" value="transparent"> </param> <embed src="<?php 
            echo $video_1[0];
            ?>
?version=3&amp;hl=en_US&amp;rel=0" type="application/x-shockwave-flash" width="404" height="315" allowscriptaccess="always" allowfullscreen="true"  wmode="transparent"></embed></object>
            <?php 
        } else {
            if ($slider > 0) {
Пример #3
0
 function DirectProcessText($str, $nb = 1, $kt = 1, $ml = 0)
 {
     global $GV;
     if ($kt) {
         $str = htmlspecialchars($str);
         $str = strip_tags($str);
     }
     if ($nb) {
         $str = str_replace("\n", "", $str);
         $str = nl2br($str);
     }
     if ($ml) {
         $str = make_links($str);
     }
     $str = ereg_replace(" +", " ", trim(stripslashes(stripslashes(addslashes($str)))));
     $str = str_replace($GV["sep1"], "", $str);
     $str = str_replace($GV["sep2"], "", $str);
     $str = str_replace($GV["sep3"], "", $str);
     return $str;
 }
Пример #4
0
$labelurl[] = 'Unlimited iPod Downloads';
$reseller[] = 'http://www.myipodownloads.com';
$hoplinks[] = 'http://nulled.sharedm.hop.clickbank.net';
$labelurl[] = 'Share Movies';
$reseller[] = 'http://sharedmovies.com';
$hoplinks[] = 'http://nulled.movadvance.hop.clickbank.net';
$labelurl[] = 'Movie Downloads';
$reseller[] = 'http://www.movieadvanced.com';
$hoplinks[] = 'http://nulled.cauction.hop.clickbank.net';
$labelurl[] = 'Car Auction';
$reseller[] = 'http://www.car-auction.com';
if (is_numeric($c) === false || $hoplinks[$c] == '') {
    $c = 0;
} else {
    if ($data = @file_get_contents($reseller[$c])) {
        $data = make_links($data, $hoplinks[$c]);
        // check if points to a page or directly to domain
        if (count(explode('/', $reseller[$c])) > 3) {
            $reseller = dirname($reseller[$c]);
        } else {
            $reseller = $reseller[$c];
        }
        $data = reltoabs($data, $reseller);
        exit($data);
    } else {
        exit('invalid id');
    }
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
Пример #5
0
    if ($count > 0) {
        $row = $sql->db_Fetch();
        $content = "" . page_form($row);
        if ($elements[0] == "revert") {
            $content .= get_history($page);
        }
        if ($elements[0] == "delete" && ADMIN) {
            $sql->db_Delete("wiki", "page_title='" . $row['page_title'] . "' ");
            Header("Location: ./");
        }
    }
} elseif (!isset($_GET['page'])) {
    // list of last 10 pages added or modified
    $title = LAN_W_3;
    $sql->db_Select("wiki", "*", "page_active = 1 ORDER BY page_datestamp DESC LIMIT 0,10", true);
    $content = make_links($sql->db_getList());
} else {
    $page = mysql_real_escape_string($_GET['page']);
    $count = $sql->db_Select("wiki", "*", "page_title = '" . $page . "' and page_active=1", true);
    if ($count > 0) {
        // Page does exists
        $row = $sql->db_Fetch();
        $title = $row['page_title'];
        $content = make_content($row);
        $has_page = $row['page_id'];
    } elseif (check_perm()) {
        $title = "New Page";
        $content = "" . page_form(array());
    } else {
        // Page not found
        $title = LAN_W_1;
Пример #6
0
          <h5><?php 
    echo $user->name;
    ?>
            <small>
              <a href="<?php 
    echo $url;
    ?>
" target="_blank">
                <?php 
    echo '@' . $sname;
    ?>
              </a>
            </small>
          </h5>
          <?php 
    echo make_links($tweet->text);
    ?>
      </div>
      <div class="col-sm-2 tweet-time">
        <?php 
    echo human_time($tweet->created_at);
    ?>
      </div>
    </div>
    <?php 
}
?>

    <?php 
// echo '<pre>' . print_r($tweets, true) . '</pre>';
?>