Quantcast
Channel: LowEndTalk
Viewing all articles
Browse latest Browse all 39981

Lets Play Fix the 5.2 WHMCS Code

$
0
0

Code snippet from WHMCS broke when they nuked dbconnect.php, but replacing init.php does not fix things.. Any ideas? Also anyone know what to pull to get the actual news links?

include("/home/blargh/public_html/whmcs/init.php");
include("/home/blargh/public_html/whmcs/includes/functions.php");
$query = "SELECT * FROM tblannouncements WHERE published='on' ORDER BY date DESC LIMIT 0,3";
$result = mysql_query($query);
while ($data = mysql_fetch_array($result)) {
$id = $data["id"];
$date = $data["date"];
$title = $data["title"];
$announcement = $data["announcement"];
$url = $data["url"];
$date = fromMySQLDate($date);
echo '<p><font color="#cccccc">'.$date.'</font> - <b>'.$title.'</b><br />';
echo '<ul class="features"> <h5>'.$date.'</h5><li>'.$title.'</li></ul>'
;


Viewing all articles
Browse latest Browse all 39981

Trending Articles