if ( defined( url_param('op') ) ) {
if ( url_param('op') eq 'export' ) {
+
+ if ( logged_in() ne 1 ) {
+ push( @errors,"You have to be logged in to perform that operation." );
+ #return;
+ }
+
my $sn = 'n';
if ( defined( param('snapshots') ) ) {
$sn = 'y';
# JSON
# JSON Show tags:
if ( url_param('op') eq 'json_tags' ) {
- print
- "Content-Type: application/x-javascript;charset=UTF-8\r\n\r\n";
+ print "Content-Type: application/x-javascript;charset=UTF-8\r\n\r\n";
send_json_tags();
exit;
}
# JSON Show bookmarks:
if ( url_param('op') eq 'json_posts' ) {
- print
- "Content-Type: application/x-javascript;charset=UTF-8\r\n\r\n";
+ print "Content-Type: application/x-javascript;charset=UTF-8\r\n\r\n";
send_json_posts();
exit;
}
{
if ( logged_in() ne 1 ) {
- push( @errors,
- "You have to be logged in to perform that operation." );
-
+ push( @errors,"You have to be logged in to perform that operation." );
#return;
}