Code: Alles auswählen
#
#-----[ OPEN ]-----
#
portal.php
#
#-----[ FIND ]-----
#
if ($cal_config['number_events'] <> 0)
{
#
#-----[ AFTER, ADD ]-----
#
$subject_length = 20; // Change this number to decrease/increase the subject length!
#
#-----[ FIND ]-----
#
if ( strlen($subject) > $cal_config['subject_length']) {
if ((substr($subject,-3,1) == '(') && (substr($subject,-1,1) == ')')) {
// store the number of permits and tack them on the end of the shortened subject
$subjectnum = substr($subject,-2,1);
$subject = substr($subject, 0, -3);
}
$subject = substr($subject, 0, $cal_config['subject_length']);
$subject .= '..';
}
#
#-----[ REPLACE WITH ]-----
#
if ( strlen($subject) > $subject_length) {
if ((substr($subject,-3,1) == '(') && (substr($subject,-1,1) == ')')) {
// store the number of permits and tack them on the end of the shortened subject
$subjectnum = substr($subject,-2,1);
$subject = substr($subject, 0, -3);
}
$subject = substr($subject, 0, $subject_length);
$subject .= '..';
}
#
#-----[ SAVE/CLOSE ALL FILES ]-----
#
# EoM