aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/notification
Commit message (Expand)AuthorAgeFilesLines
* [ticket/12594] Remove @package tags and update file headersYuriy Rusko2014-05-2727-126/+207
* [ticket/12435] Update the commentTristan Darricau2014-05-141-4/+6
* [ticket/12435] purge_notifications() fails for unused notificationsTristan Darricau2014-05-141-8/+19
* [ticket/12371] Fix typos in commentJoas Schilling2014-05-021-1/+1
* [ticket/12371] Fix redirect link for approve_post and post_in_queueJoas Schilling2014-04-252-0/+16
* [ticket/12371] Fix language in commentJoas Schilling2014-04-251-3/+2
* [ticket/12371] Do not add unlimited users as respondersJoas Schilling2014-04-251-1/+22
* [ticket/12371] Do not update the notification entry unneccessarilyJoas Schilling2014-04-252-11/+20
* [ticket/12371] Allow notification types to redirect to a different urlJoas Schilling2014-04-253-0/+23
* [ticket/12371] Do not group "quote" notificationsJoas Schilling2014-04-251-23/+8
* Merge remote-tracking branch 'github-nickvergessen/ticket/12282' into develop...Nils Adermann2014-04-103-9/+9
|\
| * [ticket/12282] Use interface for type hintingJoas Schilling2014-04-013-9/+9
* | Merge remote-tracking branch 'nickvergessen/ticket/12349' into develop-ascraeusDhruv2014-04-081-1/+1
|\ \
| * | [ticket/12349] Update license header in several new filesJoas Schilling2014-04-031-1/+1
| |/
* | Merge remote-tracking branch 'Elsensee/ticket/7707' into develop-ascraeusJoas Schilling2014-04-051-1/+1
|\ \ | |/ |/|
| * [ticket/7707] Add get_username_string() once moreOliver Schramm2014-03-291-1/+1
* | Merge remote-tracking branch 'prototech/ticket/11959' into develop-ascraeusJoas Schilling2014-03-291-5/+4
|\ \
| * | [ticket/11959] Move phpbb_generate_string_list() to functions_content.php.Cesar G2014-03-291-5/+0
| * | [ticket/11959] Rename phpbb_gen_string_list() & fix incorrect var name.Cesar G2014-03-191-3/+3
| * | [ticket/11959] Simplify how the users are trimmed.Cesar G2014-03-191-15/+7
| * | [ticket/11959] List the last user with "and" instead of a comma.Cesar G2014-03-191-0/+7
| * | [ticket/11959] Use the plurals system for the untrimmed language strings.Cesar G2014-03-191-1/+6
| |/
* | [ticket/12317] Cast string to int to refix DBMSes not using int for integers.Andreas Fischer2014-03-284-5/+5
|/
* [ticket/12256] Selecting founders is fetching $sql instead of $resultForumhulp.com2014-03-091-1/+1
* [ticket/12192] Fix call to undefined method get_user_avatar().Cesar G2014-02-141-1/+1
* [ticket/12032] Do not inherit read status in certain notifications.Cesar G2014-01-168-4/+60
* [ticket/12034] AJAXify notifications popup.Cesar G2013-12-301-2/+4
* Merge pull request #1882 from prototech/ticket/11959Nathan Guse2013-11-211-3/+30
|\
| * [ticket/11959] Rename $extra_cnt to something more descriptive.Cesar G2013-11-211-3/+3
| * [ticket/11959] Use COMMA_SEPARATOR to join the user list.Cesar G2013-11-211-1/+1
| * [ticket/11959] Trim the list of users from post notifications.Cesar G2013-11-211-2/+29
* | [ticket/11484] Display login box for users following email notification link.Cesar G2013-11-211-1/+1
|/
* [ticket/12008] Update the run time value for the prune notifications cron taskCesar G2013-11-141-1/+8
* [ticket/11746] The IN_PHPBB check is not necessary.Cesar G2013-11-021-8/+0
* Merge pull request #1812 from prototech/ticket/11746Nathan Guse2013-11-021-0/+174
|\
| * [ticket/11746] Add "admin activation required" notification.Cesar G2013-10-241-0/+174
* | [task/code-sniffer] Replace spaces with tabs.Andreas Fischer2013-10-301-4/+2
* | [task/code-sniffer] Remove the IN_PHPBB check side-effect from class files.Andreas Fischer2013-10-3026-208/+0
* | [ticket/11981] Fix code sniffer complaintsMarc Alexander2013-10-281-1/+1
|/
* [ticket/11919] Remove extra argument to notification manager's sql_fetchfield()Patrick Webster2013-10-141-2/+2
* Merge pull request #1654 from rechosen/ticket/11786Nathan Guse2013-10-032-2/+2
|\
| * Merge branch 'develop' of git://github.com/phpbb/phpbb3 into ticket/11786rechosen2013-09-233-9/+293
| |\
| * | [ticket/11786] Further improve wording in phpbb/notification/type/quote.phprechosen2013-08-131-1/+1
| * | [ticket/11786] Fix typo and ugly English in the notification system PHPDocrechosen2013-08-132-2/+2
* | | [ticket/11700] Fix some more incorrectly changed commentsNils Adermann2013-09-194-4/+4
* | | [ticket/11700] And some last comments with backslashesNils Adermann2013-09-162-2/+2
* | | [ticket/11700] Fix a few more commentsNils Adermann2013-09-162-2/+2
* | | [ticket/11700] Fix tests after merging new develop codeNils Adermann2013-09-162-2/+6
* | | Merge remote-tracking branch 'github-phpbb/develop' into ticket/11700Nils Adermann2013-09-163-9/+293
|\ \ \ | | |/ | |/|
| * | Merge branch 'develop' of github.com:phpbb/phpbb3 into ticket/11373Nathan Guse2013-09-123-4/+286
| |\ \
pan>, widget_name => 'background', title => 'root window'); $win->set_type_hint('desktop'); # for matchbox window manager $win->realize; mygtk2::set_root_window_background_with_gc($win->style->bg_gc('normal')); $root_window = $win; } sub create_step_box { gtknew('HBox', spacing => 0, children => [ @_, 0, gtknew('Alignment', width => 24), ]); } #------------------------------------------------------------------------------ my %steps; sub create_steps_window { my ($o) = @_; $o->{steps_window} and $o->{steps_window}->destroy; $steps{$_} ||= gtknew('Pixbuf', file => "steps_$_") foreach qw(on off done); my $category = sub { create_step_box( 1, gtknew('Label_Right', text_markup => '<b>' . uc($_[0]) . '</b>', widget_name => 'Step-categories'), ); }; my @l = ( $category->(N("Installation")) ); foreach (grep { !eval $o->{steps}{$_}{hidden} } @{$o->{orderedSteps}}) { if ($_ eq 'setRootPassword_addUser') { push @l, '', $category->(N("Configuration")); } my $img = gtknew('Image', file => 'steps_off.png'); $steps{steps}{$_}{img} = $img; push @l, create_step_box( 1, $steps{steps}{$_}{text} = gtknew('Label_Right', text => translate($o->{steps}{$_}{text})), 0, gtknew('Alignment', width => 6), 0, $img, ); } my $offset = 10; $o->{steps_widget} = gtknew('MDV_Notebook', widget_name => 'Steps', children => [ # 145 is the vertical offset in order to be below the actual logo: [ gtknew('VBox', spacing => 6, width => ($::stepswidth - $offset), children_tight => \@l), 0, 145 ] ]); $root_window->add( $o->{steps_window} = gtknew('HBox', children => [ if_($::stepswidth != 0, 0, $o->{steps_widget}), 1, gtknew('Label', width => -1, height => -1), ], ) ); $root_window->show_all; } sub update_steps_position { my ($o) = @_; return if !$steps{steps}; my $last_step; foreach (@{$o->{orderedSteps}}) { exists $steps{steps}{$_} or next; if ($o->{steps}{$_}{entered} && !$o->{steps}{$_}{done}) { # we need to flush the X queue since else we got a temporary Y position of -1 when switching locales: mygtk2::flush(); #- for auto_installs which never go through the Gtk2 main loop $o->{steps_widget}->move_selection($steps{steps}{$_}{text}); if ($last_step) { $steps{steps}{$last_step}{img}->set_from_pixbuf($steps{done}); } return; } $last_step = $_; } mygtk2::flush(); #- for auto_installs which never go through the Gtk2 main loop } #------------------------------------------------------------------------------ sub init_gtk { my ($o) = @_; symlink("/tmp/stage2/etc/$_", "/etc/$_") foreach qw(gtk-2.0 pango fonts); if ($o->{vga16}) { #- inactivate antialias in VGA16 because it makes fonts look worse output('/tmp/fonts.conf', q(<fontconfig> <include>/etc/fonts/fonts.conf</include> <match target="font"><edit name="antialias"><bool>false</bool></edit></match> </fontconfig> )); $ENV{FONTCONFIG_FILE} = '/tmp/fonts.conf'; } Gtk2->init; Gtk2->set_locale; } #------------------------------------------------------------------------------ sub init_sizes { my ($o) = @_; ($::rootwidth, $::rootheight) = (Gtk2::Gdk->screen_width, Gtk2::Gdk->screen_height); $::stepswidth = $::rootwidth <= 640 ? 0 : 196; ($::logowidth, $::logoheight) = $::rootwidth <= 640 ? (0, 0) : (800, 75); ($o->{windowwidth}, $o->{windowheight}) = ($::rootwidth - $::stepswidth, $::rootheight); ($::real_windowwidth, $::real_windowheight) = (576, 465); } sub handle_unsafe_mouse { my ($o, $window) = @_; $o->{mouse}{unsafe} or return; $window->add_events('pointer-motion-mask'); my $signal; $signal = $window->signal_connect(motion_notify_event => sub { delete $o->{mouse}{unsafe}; log::l("unsetting unsafe mouse"); $window->signal_handler_disconnect($signal); }); } sub special_shortcuts { my (undef, $event) = @_; my $d = ${{ $Gtk2::Gdk::Keysyms{F2} => 'screenshot', $Gtk2::Gdk::Keysyms{Home} => 'restart' }}{$event->keyval}; if ($d eq 'screenshot') { install::any::take_screenshot($::o); } elsif ($d eq 'restart' && member('control-mask', @{$event->state}) && member('mod1-mask', @{$event->state})) { log::l("restarting install"); ugtk2->exit(0x35); } 0; } #------------------------------------------------------------------------------ sub createXconf { my ($file, $mouse_type, $mouse_dev, $_wacom_dev, $Driver) = @_; $mouse_type = 'IMPS/2' if $mouse_type eq 'vboxmouse'; symlinkf(devices::make($mouse_dev), "/dev/mouse") if $mouse_dev ne 'none'; #- needed for imlib to start on 8-bit depth visual. symlink("/tmp/stage2/etc/imrc", "/etc/imrc"); symlink("/tmp/stage2/etc/im_palette.pal", "/etc/im_palette.pal"); #- remove "error opening security policy file" warning symlink("/tmp/stage2/etc/X11", "/etc/X11"); return if !$Driver; my ($mouse_driver, $mouse_protocol) = detect_devices::is_vmware() ? qw(vmmouse auto) : ('mouse', $mouse_type); output($file, sprintf(<<'END', $mouse_driver, $mouse_protocol, $Driver, $Driver eq 'fbdev' ? '"default"' : '"800x600" "640x480"')); Section "ServerFlags" Option "AutoAddDevices" "False" EndSection Section "Module" Disable "dbe" Disable "record" Disable "dri" Disable "dri2" Disable "glx" EndSection Section "Files" FontPath "/usr/share/fonts:unscaled" EndSection Section "InputDevice" Identifier "Keyboard" Driver "keyboard" Option "XkbModel" "pc105" Option "XkbLayout" "us" EndSection Section "InputDevice" Identifier "Mouse" Driver "%s" Option "Protocol" "%s" Option "Device" "/dev/mouse" Option "ZAxisMapping" "4 5" EndSection Section "Monitor" Identifier "monitor" HorizSync 31.5-35.5 VertRefresh 50-70 EndSection Section "Device" Identifier "device" Driver "%s" EndSection Section "Screen" Identifier "screen" Device "device" Monitor "monitor" DefaultColorDepth 16 Subsection "Display" Depth 16 Modes %s EndSubsection EndSection Section "ServerLayout" Option "BlankTime" "0" Option "StandbyTime" "0" Option "SuspendTime" "0" Option "OffTime" "0" Identifier "layout" Screen "screen" InputDevice "Mouse" "CorePointer" InputDevice "Keyboard" "CoreKeyboard" EndSection END } 1;