public static GetExampleName ( $intCategoryId, $intExampleId ) |
<?php require_once dirname(__FILE__) . '/../../../../qcubed.inc.php'; require 'includes/examples.inc.php'; $intCategoryId = QApplication::PathInfo(0); $intExampleId = QApplication::PathInfo(1); $strScript = QApplication::PathInfo(2); $strReference = Examples::GetExampleScriptPath($intCategoryId, $intExampleId); $strName = Examples::GetExampleName($intCategoryId, $intExampleId); if (!$strScript) { QApplication::Redirect(QApplication::$RequestUri . substr($strReference, strrpos($strReference, '/'))); } ?> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=<?php _p(QApplication::$EncodingType); ?> " /> <title>QCubed PHP 5 Development Framework - View Source</title> <link rel="stylesheet" type="text/css" href="<?php _p(__VIRTUAL_DIRECTORY__ . __CSS_ASSETS__ . '/styles.css'); ?> "></link> <link rel="stylesheet" type="text/css" href="<?php _p(__VIRTUAL_DIRECTORY__ . __EXAMPLES__ . '/includes/examples.css'); ?> "></link> </head> <body> <div id="page">
<?php require_once 'qcubed.inc.php'; require 'includes/examples.inc.php'; $strCategoryId = QApplication::PathInfo(0); $strExampleId = QApplication::PathInfo(1); if ($strCategoryId == 'plugin') { $strSubId = QApplication::PathInfo(2); $strScript = QApplication::PathInfo(3); } else { $strSubId = null; $strScript = QApplication::PathInfo(2); } $strReference = Examples::GetExampleScriptPath($strCategoryId, $strExampleId); $strName = Examples::GetExampleName($strCategoryId, $strExampleId); if (!$strScript) { $strUrl = QApplication::$RequestUri . substr($strReference, strrpos($strReference, '/')); QApplication::Redirect($strUrl, true); } ?> <html> <head> <meta charset="<?php _p(QApplication::$EncodingType); ?> " /> <title>QCubed PHP 5 Development Framework - View Source</title> <link rel="stylesheet" type="text/css" href="<?php _p(__VIRTUAL_DIRECTORY__ . __CSS_ASSETS__ . '/styles.css'); ?> " />