mirror of
https://github.com/itflow-org/itflow
synced 2026-07-23 08:50:42 +00:00
22 lines
543 B
PHP
22 lines
543 B
PHP
<?php
|
|
|
|
// Set Page Title
|
|
|
|
// Get the current page name without the .php extension
|
|
$page_title = basename($_SERVER['PHP_SELF'], '.php');
|
|
|
|
// Lets make the Page title look pretty
|
|
// Replace any underscores with spaces
|
|
$page_title = str_replace('_', ' ', $page_title);
|
|
|
|
// Capitize
|
|
$page_title = ucwords($page_title);
|
|
|
|
// Sanitize title for SQL input such as logging
|
|
$page_title_sanitized = escapeSql($page_title);
|
|
|
|
// Sanitize the page title to prevent XSS for output
|
|
$page_title = escapeHtml($page_title);
|
|
|
|
$tab_title = $session_company_name;
|