Stud.IP  2.4 Revision 48548
 All Data Structures Namespaces Files Functions Variables Groups Pages
sms_box.php File Reference

Namespaces

namespace  messaging

Variables

 $msging = new messaging
 $query_showfolder = $query_time_sort = $query_movetofolder = $query_time = ''
 $cmd = Request::option('cmd')
 $cmd_show = Request::option('cmd_show')
 $sms_data = & $_SESSION['sms_data']
 $sms_show = & $_SESSION['sms_show']
 $my_messaging_settings = UserConfig::get($user->id)->MESSAGING_SETTINGS
 $my_messaging_hash = md5(serialize($my_messaging_settings))
 $my_messaging_observer
if(Request::option('readingconfirmation'))
if($sms_data['tmp']['move_to_folder']&&!Request::option('move_folder'))
if(Request::submitted('delete_selected_button')||$cmd=="delete_selected")
if(Request::option('mclose'))
else if(Request::option('mopen'))
if($cmd=="mark_allsmsreaded") 
$count_newsms = count_messages_from_user($sms_data['view'], "AND deleted='0' AND readed='0'")
 $show_folder = Request::option('show_folder')
if($move_folder) if($sms_data['tmp']['move_to_folder']) $query_time_sort = ""
if($sms_data["time"]=="all")
else if($sms_data["time"]=="new")
else if($sms_data["time"]=="24h") else if($sms_data["time"]=="7d") else if($sms_data["time"]=="30d") else if($sms_data["time"]=="older") 
$query_time = $query_time_sort
 $count_timefilter = count_x_messages_from_user($sms_data['view'], "all", $query_time_sort." AND folder=''")
 $open = folder_openclose($sms_show['folder'][$sms_data['view']], "all")
 $symbol = "\"></a>"
 $zusatz = show_nachrichtencount($count, $count_timefilter)
 $time_by_links = ""
 $view_by_links = ""
if($SessSemName[0]&&$SessSemName["class"]=="inst")
else if($SessSemName[0]) 
$neum = count_messages_from_user('in', " AND message_user.readed = 0 ")
 $altm = count_messages_from_user('in', " AND message_user.readed = 1 ")
 $show_message_count = sprintf(_("Sie haben %s empfangene und %s gesendete Nachrichten."), ($altm+$neum), count_messages_from_user("snd"))
if($neum=="1") else if($neum >"1") $infobox
 if ($my_messaging_settings["last_box_visit"]< time())

Variable Documentation

$altm = count_messages_from_user('in', " AND message_user.readed = 1 ")
$cmd = Request::option('cmd')
$cmd_show = Request::option('cmd_show')
if (Request::option('readingconfirmation')) if ($sms_data['tmp']['move_to_folder']&&!Request::option('move_folder')) if (Request::submitted('delete_selected_button')||$cmd=="delete_selected") if (Request::option('mclose')) else if (Request::option('mopen')) if ($cmd=="mark_allsmsreaded") $count_newsms = count_messages_from_user($sms_data['view'], "AND deleted='0' AND readed='0'")
$count_timefilter = count_x_messages_from_user($sms_data['view'], "all", $query_time_sort." AND folder=''")
if ($neum=="1") else if ($neum >"1") $infobox
Initial value:
array($tmp_array_1,
array("kategorie" => _("Information:"),"eintrag" => array(
array('icon' => 'icons/16/black/info.png', "text" => $show_message_count))),
array("kategorie" => _("nach Zeit filtern:"),"eintrag" => array(
array('icon' => 'icons/16/black/new/mail.png', "text" => $time_by_links))),
array("kategorie" => _("weitere Ansichten:"),"eintrag" => array(
array('icon' => 'icons/16/black/new/mail.png', "text" => $view_by_links))),
array("kategorie" => _("Optionen:"),"eintrag" => array(
array("icon" => 'icons/16/black/admin.png', "text" => "<a href=\"".URLHelper::getLink("?cmd_show=openall")."\">"._("Alle Nachrichten aufklappen")."</a><br><a href=\"".URLHelper::getLink("?cmd=mark_allsmsreaded")."\">"._("Alle als gelesen speichern")."</a>"),
array("icon" => 'icons/16/black/add/folder-empty.png', "text" => "<a href=\"".URLHelper::getLink("?cmd=admin_folder&cmd_2=new")."\">"._("Neuen Ordner erstellen")."</a>")
))
)
$msging = new messaging
$my_messaging_hash = md5(serialize($my_messaging_settings))
$my_messaging_observer
Initial value:
if ($my_messaging_hash != md5(serialize($my_messaging_settings))) {
UserConfig::get($user->id)->store('MESSAGING_SETTINGS', $my_messaging_settings);
}
}
$my_messaging_settings = UserConfig::get($user->id)->MESSAGING_SETTINGS
if ($SessSemName[0]&&$SessSemName["class"]=="inst") else if ($SessSemName[0]) $neum = count_messages_from_user('in', " AND message_user.readed = 0 ")
$open = folder_openclose($sms_show['folder'][$sms_data['view']], "all")
$query_showfolder = $query_time_sort = $query_movetofolder = $query_time = ''
if ($sms_data["time"]=="all") else if ($sms_data["time"]=="new") else if ($sms_data["time"]=="24h") else if ($sms_data["time"]=="7d") else if ($sms_data["time"]=="30d") else if ($sms_data["time"]=="older") $query_time = $query_time_sort
if ($move_folder) if ($sms_data['tmp']['move_to_folder']) $query_time_sort = ""
$show_folder = Request::option('show_folder')
$show_message_count = sprintf(_("Sie haben %s empfangene und %s gesendete Nachrichten."), ($altm+$neum), count_messages_from_user("snd"))
$sms_data = & $_SESSION['sms_data']
$sms_show = & $_SESSION['sms_show']
$symbol = "\"></a>"
$time_by_links = ""
$view_by_links = ""
$zusatz = show_nachrichtencount($count, $count_timefilter)
if($my_messaging_settings["last_box_visit"]< time())