# this will return the URL to the post.
    $returnITEM .= "<link>" . $post_link . "</link>\n";
    $returnITEM .= "</item>\n";
    return $returnITEM;
}
// Lets build the page
$filename = "/home/a5336948/public_html/feeds/index.xml";
$rootURL = "http://cpassman.net23.net/feeds/";
/*$filename = "http://localhost/main/feeds/index.xml";
$rootURL = "http://localhost/main/feeds/";*/
$latestBuild = date("r");
// Lets define the the type of doc we're creating.
$createXML = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";
$createXML .= "<rss version=\"0.92\">\n";
$createXML .= "<channel>\r\n\t<title>cPassMan Feed</title>\r\n\t<link>{$rootURL}</link>\r\n\t<description>Subscribe to cPassMan RSS feed and stay up to date with latest news and releases</description>\r\n\t<lastBuildDate>{$latestBuild}</lastBuildDate>\r\n\t<docs>http://backend.userland.com/rss092</docs>\r\n\t<language>en</language>\r\n";
// Lets Get the News Articles
$content_search = "SELECT * FROM website_blog ORDER BY date DESC";
$content_results = mysql_query($content_search);
// Lets get the results
while ($articleInfo = mysql_fetch_object($content_results)) {
    $page = $rootURL . "blog-" . $row["id"] . "." . prepare_title($articleInfo->sujet);
    $description = nl2br($articleInfo->rss_desc);
    $title = "{$articleInfo->sujet}";
    $createXML .= createRSSFile($title, $description, $page);
}
$createXML .= "</channel>\n </rss>";
// Finish it up
$filehandle = fopen($filename, "w") or die("Can't open the file");
fwrite($filehandle, $createXML);
fclose($filehandle);
//echo "XML Sitemap updated!";
Exemple #2
0
} else {
    if (isset($_GET['article'])) {
        $data = mysql_fetch_array(mysql_query("SELECT * FROM website_blog WHERE id =" . $_GET['article']));
        echo '
    <form id="form"></form>
    <h1>' . $data['sujet'] . '</h1>
    <div id="blog_article">
        <div style="float:left;width:420px;color:#FF8000;font-style:italic;">
        Written by ' . $data['auteur'] . ' on ' . $data['date'] . '
        </div>
        <div style="float:right;width:250px;text-align:right;">&nbsp;
        <a target="_blank" href="http://digg.com/submit?phase=2&url=http://cpassman.net23.net/blog-' . $data['id'] . '.' . prepare_title($data['sujet']) . '"><img src="images/ico_digg.png" /></a>&nbsp;
        <a target="_blank" href="http://del.icio.us/post?url=http://cpassman.net23.net/blog-' . $data['id'] . '.' . prepare_title($data['sujet']) . '&jump=no"><img src="images/ico_delicious.png" /></a>&nbsp;
        <a target="_blank" href="http://reddit.com/submit?url=http://cpassman.net23.net/blog-' . $data['id'] . '.' . prepare_title($data['sujet']) . '"><img src="images/ico_reddit.png" /></a>&nbsp;
        <a target="_blank" href="http://www.stumbleupon.com/submit?url=http://cpassman.net23.net/blog-' . $data['id'] . '.' . prepare_title($data['sujet']) . '"><img src="images/ico_stumbleupon.png" /></a>&nbsp;
        <a target="_blank" href="http://twitthis.com/twit?url=http://cpassman.net23.net/blog-' . $data['id'] . '.' . prepare_title($data['sujet']) . '"><img src="images/ico_twitter.png" /></a>&nbsp;
        <a target="_blank" href="http://feeds.feedburner.com/cPassMan" target="_blank"><img src="images/ico_rss.png" /></a>&nbsp;
        </div><br />
        <hr style="width:660px;margin:20px 0px 20px 0px ;">
        <p style="float:right; margin:-17px 5px 5px 10px;">
        <script type="text/javascript" src="http://tweetmeme.com/i/scripts/button.js"></script>
        </p>
        <p style="text-align:justify;">
        ' . nl2br($data['texte']) . '
        </p>
        
        <hr style="width:660px;margin:20px 0px 20px 00px ;">
        <h2>Comments</h2>
        <div id="comments" style="">';
        $count = mysql_fetch_row(mysql_query("SELECT COUNT(*) FROM website_comments WHERE blog_id=" . $_GET['article'] . " ORDER BY id desc"));
        if ($count[0] > 0) {
Exemple #3
0
        <span class="ui-icon ui-icon-pin-w" style="float: left; margin-right: .3em;">&nbsp;</span>Define minimal password complexity for each Group,<br />
        <span class="ui-icon ui-icon-pin-w" style="float: left; margin-right: .3em;">&nbsp;</span>Auto log-off system when session is over,<br />
        <span class="ui-icon ui-icon-pin-w" style="float: left; margin-right: .3em;">&nbsp;</span>Deploy a strategy for "renewal passwords",<br />
        <span class="ui-icon ui-icon-pin-w" style="float: left; margin-right: .3em;">&nbsp;</span>All actions are launched using a contextual Menu,<br />
        <span class="ui-icon ui-icon-pin-w" style="float: left; margin-right: .3em;">&nbsp;</span>Passwords can be restricted to a set of user,<br />
        <span class="ui-icon ui-icon-pin-w" style="float: left; margin-right: .3em;">&nbsp;</span>Send emails to inform other users about a creation or a modification.<br />
    </div>
    
    <br />
    <h2>Rockin\' blog updates</h2> 
    <div style="text-align:justify;">';
$res = mysql_query("SELECT * FROM website_blog ORDER BY id desc LIMIT 0, 5");
while ($data = mysql_fetch_array($res)) {
    $madate = explode(' ', $data['date']);
    echo '
            <div class="blog"><span>' . $madate[0] . ' ' . $madate[1] . ', ' . $madate[2] . '</span> - <a href="blog-' . $data['id'] . '.' . prepare_title($data['sujet']) . '">' . $data['sujet'] . '</a></div>';
}
echo '
    </div>
</div>

<div class="col_small">
    <br />
    <div class="ui-state-focus ui-corner-all" style="padding:3px;text-align:center;">
        See the Gallery<br />
        <a class="lightbox-json" href="images/album/identification.png" title="Connection page"><img src="images/album/ts_identification.png"  alt="" /></a>
        <a class="lightbox-json" href="images/album/home.png" title="Home page"><img src="images/album/ts_home.png"  alt="" /></a>
    </div>
    <br />
    <div class="ui-state-focus ui-corner-all" style="padding:3px;text-align:center;">
        Subsribe to feed<br />