?> "><?php echo image_tag('blogs/Dissenys/noticies_culturals/B3_A.png', array('class' => 'rollover', 'alt' => 'Què ha passat?')); ?> </a><br /> </td> <td class="right-col content"> <?php if ($MODE == 'CONTINGUT') { ?> <?php if (isset($NOTICIA)) { printEntry($NOTICIA); } else { printEntries($NOTICIES); } ?> <?php } elseif ($MODE == 'FORM1') { ?> <?php echo printForm1($FORM1); ?> <?php } elseif ($MODE == 'FORM2') { ?> <?php echo printForm2($FORM2);
/** * Executes a query on the Snippets Feed. No authentication is required * since the Snippets Feed is public information. * * @return void */ function querySnippetFeed() { echo "<h2>Execute a query on the snippets feed</h2>\n"; $service = new Zend_Gdata_Gbase(); $query = $service->newSnippetQuery(); $query->setBq('[title:Programming]'); $query->setOrderBy('modification_time'); $query->setSortOrder('descending'); $query->setMaxResults('5'); $query->setCategory('jobs'); $feed = $service->getGbaseSnippetFeed($query); printEntries($feed); }
die("Couldn't write to disk!<br>\n"); } writeXMLFile($h); include "mail.php"; foreach ($mail as $i) { $emailmangled = str_replace("@", " at ", $emailname); $emailmangled = str_replace(".", " dot ", $emailmangled); mail($i, "CS documentation annotated by {$authorname}", "Author: {$authorname}\n" . "E-Mail: {$emailmangled}\n" . "Topic: {$theme}\n" . "File: {$HTTP_REFERER}\n" . "Time: " . gmstrftime("%a, %d %b %G (%H:%M UTC)", $newentry->date) . " (" . $newentry->date . ")\n" . "Comment:\n" . stripslashes($texttext)); } fclose($h); chmod($file, 0666); print "<h3>Comment added!</h3>\n"; unset($entries); readXMLFile($file); } printEntries(); print "<a href=\"{$self}?action=showadd#comments\">Add a comment</a><br>\n"; } class entry { var $author; var $email; var $text; var $date; var $addr; var $agent; function entry() { $this->author = ""; $this->email = ""; $this->text = "";