echo translate("No unapproved events for") . " " . $temp_fullname . "."; } else { echo $eventinfo; } } ?> <H2><FONT COLOR="<?php echo $H2COLOR; ?> "><?php etranslate("Unapproved Events"); ?> </FONT></H2> <?php // List unapproved events for this user. list_unapproved($login); // Admin users can also approve Public Access events if ($is_admin && $public_access == "Y") { echo "<P><H3>" . translate("Public Access") . "</H3>\n"; list_unapproved("__public__"); } ?> <?php include "includes/trailer.php"; ?> </BODY> </HTML>
<h2><?php etranslate("Unapproved Events"); if ($user == '__public__') { echo " - " . $PUBLIC_ACCESS_FULLNAME; } ?> </h2> <?php // List unapproved events for this user. list_unapproved($is_assistant || $is_nonuser_admin || $is_admin ? $user : $login); // Admin users can also approve Public Access events if ($is_admin && $public_access == "Y" && (empty($user) || $user != '__public__')) { echo "\n<h3>" . translate("Public Access") . "</h3>\n"; list_unapproved("__public__"); } // NonUser calendar admins cal approve events on that specific NonUser // calendar. if ($nonuser_enabled == 'Y') { $admincals = get_nonuser_cals($login); for ($i = 0; $i < count($admincals); $i++) { echo "\n<h3>" . $admincals[$i]['cal_fullname'] . "</h3>\n"; list_unapproved($admincals[$i]['cal_login']); } } ?> <?php print_trailer(); ?> </body> </html>
// header ( 'Content-type: application/rss+xml'); header('Content-type: text/xml'); echo '<?xml version="1.0" encoding="' . $charset . '"?> <rss version="2.0" xml:lang="' . $lang . '"> <channel> <title><![CDATA[' . $appStr . ']]></title> <link>' . $SERVER_URL . '</link> <description><![CDATA[' . $descr . ']]></description> <language>' . $lang . '</language> <generator>WebCalendar ' . $PROGRAM_VERSION . '</generator> <image> <title><![CDATA[' . $appStr . ']]></title> <link>' . $SERVER_URL . '</link> <url>http://www.k5n.us/k5n_small.gif</url> </image>' . "\n"; echo list_unapproved($user); echo " </channel>\n</rss>\n"; exit; /* List all unapproved events for the specified user. * Exclude "extension" events (used when an event goes past midnight). * TODO: Only include delete link if they have permission to delete * when user access control is enabled. * NOTE: this function is almost identical to the one in list_unapproved.php. * Just the format (RSS vs HTML) is different. */ function list_unapproved($user) { global $login, $SERVER_URL; $count = 0; $ret = ''; $sql = 'SELECT we.cal_id, we.cal_name, we.cal_description, weu.cal_login,
$all = $my_non_users; for ($j = 0, $cnt = count($all); $j < $cnt; $j++) { $x = $all[$j]['cal_login']; if (empty($app_user_hash[$x])) { $app_user_hash[$x] = 1; $app_users[] = $x; } } } } echo ' <form action="list_unapproved.php" name="listunapproved" method="post"> <table border="0" summary="">'; for ($i = 0, $cnt = count($app_users); $i < $cnt; $i++) { // List unapproved entries for this user. echo list_unapproved($app_users[$i]); } echo ' <tr> <td colspan="5"> </td> </tr>' . $noret . ' </table> <input type="hidden" name="process_action" value="" /> <input type="hidden" name="process_user" value="" /> </form>' . (!empty($eventinfo) ? $eventinfo : '') . ' <script language="javascript" type="text/javascript"> <!-- <![CDATA[ function check_all ( user ) { var theForm = document.forms [ \'listunapproved\' ], z;