Stud.IP  2.5 Revision
sms_box.php File Reference

Namespaces

 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($neux &&! $show_folder) if($show_folder=="close") else if($show_folder !="") if(empty($sms_show['folder'][$sms_data['view']])) if($sms_show['folder'][$sms_data['view']] !="all") else
 
 $new_folder = Request::get('new_folder')
 
if($new_folder &&Request::submitted('new_folder_button')) if(Request::option('delete_folder') &&Request::submitted('delete_folder_button')) if(Request::submitted('ren_folder_button')) if(empty($my_messaging_settings["openall"])) if(Request::option('sms_time')) else if($sms_data["time"]=="" &&empty($my_messaging_settings["timefilter"])) else if($sms_data["time"]=="" &&!empty($my_messaging_settings["timefilter"])) if($sms_data['view']=="in") else if($sms_data['view']=="out") if(Request::option('sel_lock')) if(Request::optionArray('move_to_folder')) if(Request::submitted('move_selected_button') &&Request::optionArray('sel_sms')) $move_folder = Request::option('move_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
 
if($cmd=="admin_folder") $count = count_messages_from_user($sms_data['view'], "AND folder=''")
 
 $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")
 
if(! $sms_data['tmp']['move_to_folder']) $titel = "<a href=\"".$link."\" class=\"tree\" >".$info_text_002."</a>"
 
 $symbol = "<a href=\"".$link.$link_add."\"><img src=\"".$GLOBALS['ASSETS_URL']."images/".$picture."\"></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

$altm = count_messages_from_user('in', " AND message_user.readed = 1 ")

◆ $cmd

$cmd = Request::option('cmd')

◆ $cmd_show

$cmd_show = Request::option('cmd_show')

◆ $count

if ( $cmd=="admin_folder") $count = count_messages_from_user($sms_data['view'], "AND folder=''")

◆ $count_newsms

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_timefilter = count_x_messages_from_user($sms_data['view'], "all", $query_time_sort." AND folder=''")

◆ $infobox

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>")
))
)
static getLink($url='', $params=NULL, $ignore_registered_params=false)
Definition: URLHelper.php:149
$show_message_count
Definition: sms_box.php:549
$view_by_links
Definition: sms_box.php:537
$time_by_links
Definition: sms_box.php:530

◆ $move_folder

if ( $new_folder &&Request::submitted( 'new_folder_button')) if (Request::option( 'delete_folder') &&Request::submitted( 'delete_folder_button')) if (Request::submitted( 'ren_folder_button')) if (empty( $my_messaging_settings["openall"])) if (Request::option( 'sms_time')) else if ( $sms_data["time"]=="" &&empty( $my_messaging_settings["timefilter"])) else if ( $sms_data["time"]=="" &&!empty( $my_messaging_settings["timefilter"])) if ( $sms_data[ 'view']=="in") else if ( $sms_data[ 'view']=="out") if (Request::option( 'sel_lock')) if (Request::optionArray( 'move_to_folder')) if (Request::submitted( 'move_selected_button') &&Request::optionArray( 'sel_sms')) $move_folder = Request::option('move_folder')

◆ $msging

$msging = new messaging

◆ $my_messaging_hash

$my_messaging_hash = md5(serialize($my_messaging_settings))

◆ $my_messaging_observer

$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
Definition: sms_box.php:46
$user
Definition: studip_cli_env.inc.php:76
$my_messaging_hash
Definition: sms_box.php:47
static get()
Definition: Config.class.php:38

◆ $my_messaging_settings

$my_messaging_settings = UserConfig::get($user->id)->MESSAGING_SETTINGS

◆ $neum

if ( $SessSemName[0] &&$SessSemName["class"]=="inst") else if ( $SessSemName[0]) $neum = count_messages_from_user('in', " AND message_user.readed = 0 ")

◆ $new_folder

$new_folder = Request::get('new_folder')

◆ $open

$open = folder_openclose($sms_show['folder'][$sms_data['view']], "all")

◆ $query_showfolder

$query_showfolder = $query_time_sort = $query_movetofolder = $query_time = ''

◆ $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

◆ $query_time_sort

if ( $move_folder) if ( $sms_data[ 'tmp'][ 'move_to_folder']) $query_time_sort = ""

◆ $show_folder

$show_folder = Request::option('show_folder')

◆ $show_message_count

$show_message_count = sprintf(_("Sie haben %s empfangene und %s gesendete Nachrichten."), ($altm+$neum), count_messages_from_user("snd"))

◆ $sms_data

$sms_data =& $_SESSION['sms_data']

◆ $sms_show

$sms_show =& $_SESSION['sms_show']

◆ $symbol

$symbol = "<a href=\"".$link.$link_add."\"><img src=\"".$GLOBALS['ASSETS_URL']."images/".$picture."\"></a>"

◆ $time_by_links

$time_by_links = ""

◆ $titel

if (! $sms_data[ 'tmp'][ 'move_to_folder']) $titel = "<a href=\"".$link."\" class=\"tree\" >".$info_text_002."</a>"

◆ $view_by_links

$view_by_links = ""

◆ $zusatz

$zusatz = show_nachrichtencount($count, $count_timefilter)

◆ else

if ( $sms_data[ 'tmp'][ 'move_to_folder'] &&$open=="close") else
Initial value:
{
$query_showfolder = "AND message_user.folder=''"
$query_showfolder
Definition: sms_box.php:41

◆ if

if($my_messaging_settings["last_box_visit"]< time())