private function fetch() { self::$short = mysql_escape_string(trim($_GET['upload'], "/")); $query = "SELECT * FROM `" . Config::$db_table . "` WHERE `short`='" . self::$short . "' LIMIT 1"; $result = Db::q($query); if ($row = mysql_fetch_assoc($result)) { self::$found = true; self::$name = $row['name']; self::$long = $row['long']; self::$type = $row['type']; self::$date = date("m/d/y", strtotime($row['ts'])); } }
} </style> </head> <body> <div id='header'> <div id='header-left'> <h2>Short 'n Sweet</h2> </div> <div id='header-right'> <ul class='horizontal'> <li><a href='http://github.com/helloandre/shortnsweet/' target='_blank'>view source on github</a></li> </ul> </div> </div> <?php if (!View::found()) { ?> <div id='sub-header'> <h1>Oops</h1> </div> <div id='center' class='post'> <h3>Hrm, couldn't find that.</h3> </div> <?php } else { ?> <script src="http://abcdn.us/js/jquery.js"></script> <script> /** * * PUT YOUR ANALYTICS HERE