Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $request = explode("/", trim($_SERVER["PATH_INFO"], "/"));
- include "dbconnect.php";
- $table = preg_replace("/[^a-z0-9_]+/i", "", array_shift($request));
- $table = mysqli_real_escape_string($link, (string) $table);
- $hashtag = array_shift($request);
- $hashtag = mysqli_real_escape_string($link, (string) $hashtag);
- $spinRange = array_shift($request) + 0;
- $post_id = array_shift($request) + 0;
- $sql = "SELECT share_title, title, caption, link_tag, twtAuthor, app_id FROM posts WHERE post_id=" . $post_id;
- $result = mysqli_query($link, $sql);
- if (!$result) {
- http_response_code(404);
- exit(mysqli_error());
- }
- $post = mysqli_fetch_object($result);
- $_title = $post->share_title;
- $_btitle = $post->title;
- $_caption = $post->caption;
- $_linktag = $post->link_tag;
- $_twtAuthor = $post->twtAuthor;
- $_appid = $post->app_id;
- $_host = "https://" . $_SERVER["HTTP_HOST"];
- $_hostaddon = "https://" . PURWAK;
- $_loader = "//" . PURWAK;
- $_hostaddoncloud = "https://" . PURWAK_CLOUD;
- $_host2 = "https://" . IMAGE_SUBDOMAIN;
- header("Content-Type: image/jpeg");
- $ogArr = array();
- $ogArr[] = imageCreateFromjpeg("../" . $post_id . "/fb_ogimage1.jpg");
- $ogArr[] = imageCreateFromjpeg("../" . $post_id . "/fb_ogimage2.jpg");
- $ogArr[] = imageCreateFromjpeg("../" . $post_id . "/fb_ogimage3.jpg");
- $ogArr[] = imageCreateFromjpeg("../"......
- ......................
- ......
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement