function printDisclaimer($mcid, $data, $team) { $updateQuery = "UPDATE `prhospi_accomodation_status` \n SET `hospi_printed` = 1 \n WHERE `page_modulecomponentid`={$mcid} AND `user_id`={$data}"; $updateRes = mysql_query($updateQuery) or displayerror(mysql_error()); global $sourceFolder, $moduleFolder; require_once $sourceFolder . "/" . $moduleFolder . "/qaos1/excel.php"; $displayFn = assignVars($data, $mcid); $content = getDisclaimer($team, $mcid); //escape quotes $content = str_replace("'", "\\'", $content); //replace the vars in file content with those defined $content = preg_replace('#\\{([a-z0-9\\-_]*?)\\}#is', "' . ((isset(\$displayFn['\\1'])) ? \$displayFn['\\1'] : '') . '", $content); //Make the content parseable eval("\$content = '{$content}';"); // displayinfo($content); //get parser done // displayinfo($content); return printContent($content); }
?> : <span id="product_code"><?php print $this->product->getEan(); ?> </span>)</span><?php } ?> </h1> <?php print $this->_tmp_product_html_start; ?> <?php if ($this->config->display_button_print) { print printContent(); } ?> <?php include dirname(__FILE__) . "/ratingandhits.php"; ?> <div class="row-fluid jshop"> <div class="span4 image_middle"> <?php print $this->_tmp_product_html_before_image; ?> <?php
$post->mt_allow_pings = 0; $post->mt_allow_comments = $oDocument->allowComment() ? 1 : 0; $posts[] = $post; } $content = getXmlRpcResponse($posts); printContent($content); } break; // Display RSD if there is no request // Display RSD if there is no request default: $homepagelink = getUrl('', 'mid', $this->mid); $site_module_info = Context::get('site_module_info'); $api_url = getFullSiteUrl($site_module_info->domain, '', 'mid', $site_module_info->mid, 'act', 'api'); $content = <<<RSDContent <?xml version="1.0" ?> <rsd version="1.0" xmlns="http://archipelago.phrasewise.com/rsd" > <service> <engineName>XpressEngine</engineName> <engineLink>http://www.xpressengine.com/ </engineLink> <homePageLink>{$homepagelink}</homePageLink> <apis> <api name="MetaWeblog" preferred="true" apiLink="{$api_url}" blogID="" /> </apis> </service> </rsd> RSDContent; printContent($content); break; } }
<?php include 'include/header.php'; ?> <h2>Hola!</h2> <p>Hey, here's a blog! There are a few ways you could include posts in here, but here's one. Remember that it's a prototype, so your code doesn't need to be squeaky clean or efficient.</p> <p>This way is located in <code>helpers.php</code> and is a loop through the <code>posts</code> directory.</p> <?php $open = '<article class="post">'; $close = '</article>'; printContent('posts', $open, $close); ?> <?php include 'include/footer.php';
<style> #wrapper { padding-left: 0px; } #wrapper #footer { left:0px; } </style> <div class="container-fluid"> <div class='articleContent'> <?php //loadModule("test");exit(); $page = explode("/", $_REQUEST['page']); if (isset($page[count($page) - 1]) && strlen($page[count($page) - 1]) <= 0) { unset($page[count($page) - 1]); } if (count($page) <= 1) { $page[1] = "help"; } loadModule("content"); $title = printContent($page[0], $page[1]); if ($title == null) { include APPROOT . APPS_PAGES_FOLDER . "error.php"; } ?> </div> </div>
/** * Set content */ function setContent() { // Get content ////////////////////////////////////////////////////////////// if (!isset($_GET[getLgFileText("CONTENT")])) { printContent(LINK_CNT_CAT_0); } else { $content = $_GET[getLgFileText("CONTENT")]; // Get language file $lang_array = parse_ini_file(LINK_LANG); // Get language array keys $lang_array_keys = array_keys($lang_array); $nbCat2 = count($lang_array_keys); // Loop on number of keys for ($j = 0; $j < $nbCat2; $j++) { // Get only categories if (substr($lang_array_keys[$j], 0, 3) == "CAT") { // Get category, trimed and where spaces are replaced by dashes $lineL = $lang_array_keys[$j]; // Main categories if (strlen($lineL) == 5) { if ($content == getLgFileTextForUrl($lineL)) { printContent(constant("LINK_CNT_" . $lineL)); } $cat = $lineL; } else { if (strlen($lineL) == 7) { if ($content == getLgFileTextForUrl($cat) . ">" . getLgFileTextForUrl($lineL)) { printContent(constant("LINK_CNT_" . $lineL)); } } } } } } }
printHeader("Backlinks for '{$title}'"); printBacklinks($title); printFooter($title); exit; } elseif (isset($_GET['recent'])) { $count = $_GET['recent']; if (!is_numeric($count)) { $count = 10; } printHeader("{$count} Most Recent Changes"); printRecentChanges($count); printFooter(); } elseif ($page) { $title = idToTitle($page); printHeader($title); printContent($title); printFooter($title); exit; } else { header('Location: ./?Special:NotFound'); } /** * Get page ID form HTTP query-string. * @param string $queryString * @return strng|false */ function parseQueryString($queryString) { return preg_match('~\\w+=.*~', $queryString) ? false : $queryString; } /**
function printDataForOCId($mcid, $trId) { global $sourceFolder, $moduleFolder; require_once $sourceFolder . "/" . $moduleFolder . "/qaos1/excel.php"; $evtDetails = getEvtProc($trId, $mcid); displayinfo(print_r($evtDetails, true)); $content = getDisclaimer("getOCAcceptance", $mcid); //escape quotes $content = str_replace("'", "\\'", $content); //replace the vars in file content with those defined $content = preg_replace('#\\{([a-z0-9\\-_]*?)\\}#is', "' . ((isset(\$evtDetails['\\1'])) ? \$evtDetails['\\1'] : '') . '", $content); //Make the content parseable eval("\$content = '{$content}';"); // displayinfo($content); //get parser done return printContent($content); }
} .time { white-space:nowrap; } tr.even { background: whitesmoke; } </style> </head> <body> <div class="page"> <?php $tab = 'Test Result'; $subtab = 'Screen Shot'; include 'header.inc'; printContent($fileHandler, $testInfo, $testRunResults); ?> </div> <?php include 'footer.inc'; ?> <?php if (!empty($hasJquery) && is_file('./js/jk-navigation.js') && $testRunResults->countSteps() > 1) { echo '<script type="text/javascript">'; include './js/jk-navigation.js'; echo 'addJKNavigation("h1.stepName")'; echo '</script>'; } ?>