コード例 #1
0
ファイル: about.php プロジェクト: toXel/churchtools_basic
/**
 * about main function
 * @return string html
 */
function about_main()
{
    global $config;
    if (getVar("consistentcheck")) {
        return check_db_constraints(false);
    }
    $txt = '
      <div class="row-fluid">
      <div class="span3 bs-docs-sidebar">
        <ul id="navlist" class="nav nav-list bs-docs-sidenav affix-top">
          <li><a href="#log1">' . t("about") . " " . getConf("site_name") . '</a>';
    if (user_access("administer persons", "churchcore")) {
        $txt .= '
          <li><a href="#log2">' . t("current.permissions") . '</a>
          <li><a href="#log3">' . t("current.config") . '</a>
          <li><a href="#log4">' . t("consistence.check") . '</a>';
    }
    $txt .= '
      </div>
      <div class="span9">
        <anchor id="log1"/><h1>' . t("about") . " " . getConf("site_name") . '</h1>
        <div class="well">';
    $txt = applyFilter('add_about_text', $txt);
    $txt .= '
        </div>
        <p>PHP-Version: ' . phpversion() . '
        <br>Browser: ' . $_SERVER['HTTP_USER_AGENT'] . '
        <br>ChurchTools2.0-Version: ' . $config["version"];
    if ($user = getVar("user", false, $_SESSION)) {
        $txt .= "\n        <p>" . t("logged.in.as", "{$user->vorname} {$user->name} [{$user->id}]") . " - {$user->email}";
        // print out user permissions
        ob_start();
        print_r($user->auth);
        // ob_get_clean() returns the contents of the output buffer. Then improve it for showing on a webpage
        $var = preg_replace('/\\n/', "<br>", ob_get_clean());
        $var = preg_replace('/ /', "&nbsp; ", $var);
        $txt .= '
        <anchor id="log2"/><h2>' . t("current.permissions") . '</h2><p >' . $var;
        // print out configuration
        if (user_access("administer persons", "churchcore")) {
            $config["password"] = "******";
            $config["encryptionkey"] = "****";
            if (getConf("mail_pear_args")) {
                $config["mail_pear_args"]["password"] = "******";
            }
            ob_start();
            print_r($config);
            // ob_get_clean() returns the contents of the output buffer. Then improve it for showing on a webpage
            $var = preg_replace('/\\n/', "<br>", ob_get_clean());
            $var = preg_replace('/ /', "&nbsp; ", $var);
            $txt .= '
          <anchor id="log3"/><h2>' . t("current.config") . '</h2><p >' . $var . '
          <anchor id="log4"/><h2>' . t("current.db.consistence.check") . '</h2>
          <p >';
            $res = check_db_constraints();
            if ($res == "") {
                $txt .= "\n          <p>" . t("found.no.problem");
            } else {
                $txt .= $res . '
          <p><a href="?q=about&consistentcheck=true" class="btn">' . t("detailed.report") . '</a>';
            }
        }
    }
    $txt .= '</div>';
    return $txt;
}
コード例 #2
0
ファイル: index.php プロジェクト: kichkasch/jumicycling
$filter = hex2bin($_REQUEST['filter']);
if (isset($action)) {
    if (!empty($action)) {
        if (!strcmp($action, "addWorkout")) {
            $datetime = $_REQUEST['datetime'];
            $comment = $_REQUEST['comment'];
            $maxspeed = $_REQUEST['maxspeed'];
            $averagespeed = $_REQUEST['averagespeed'];
            $duration = $_REQUEST['duration'];
            $distance = $_REQUEST['distance'];
            addWorkout();
        } else {
            if (!strcmp($action, "applyFilter")) {
                $timerange = $_REQUEST['timerange'];
                $commentpattern = $_REQUEST['commentpattern'];
                $filter = applyFilter();
            }
        }
    }
}
$filter = checkFilter();
/*print($filter);*/
?>

<body>
<div id="wrap">
  <div id="header">
    <h1>JuMiCycling</h1>
    <h2>Repository for Cycling statistics</h2>
  </div>
  <div id="menu"> <!--<a href="#">Home</a> <a href="#">About </a> <a href="#">Contact</a>--></div>
コード例 #3
0
ファイル: Story.php プロジェクト: patilstar/HMVC-WITH-CI
 public function get_story_by_id($id)
 {
     $id = applyFilter('NUMERIC_GT_ZERO', $id);
     if ($id > 0) {
         $condtion = "deleted !='0' AND id={$id}";
         $fetch_config = array('condition' => $condtion, 'debug' => FALSE, 'return_type' => "array");
         $result = $this->find('story', $fetch_config);
         return $result;
     }
 }
コード例 #4
0
ファイル: demo.php プロジェクト: CeusMedia/Image
			<h5>Sepia</h5>
			<img class="img-polaroid img-rounded" src="' . (string) applyFilter($original, "sepia") . '"/><br/>
			<code>sepia()</code>
		</div>
	</div>
	<br/>
	<h4>Effect: Pixelate <small class="muted">version 2</small></h4>
	<div class="row-fluid">
		<div class="span4">
			<h5>Even</h5>
			<img class="img-polaroid img-rounded" src="' . (string) applyFilter($original, "pixelate2", array(10, 10)) . '"/><br/>
			<code>pixelate2( 10, 10 )</code>
		</div>
		<div class="span4">
			<h5>Horizonal</h5>
			<img class="img-polaroid img-rounded" src="' . (string) applyFilter($original, "pixelate2", array(20, 1)) . '"/><br/>
			<code>pixelate2( 30, 1 )</code>
		</div>
		<div class="span4">
			<h5>Vertical</h5>
			<img class="img-polaroid img-rounded" src="' . (string) applyFilter($original, "pixelate2", array(1, 20)) . '"/><br/>
			<code>pixelate2( 1, 20 )</code>
		</div>
	</div>
</div>';
$page = new \UI_HTML_PageFrame();
#$page->addJavaScript( $pathCDN.'js/bootstrap.min.js' );
$page->addStylesheet($pathCDN . 'css/bootstrap.min.css');
//$page->addStylesheet( 'style.css' );
$page->addBody($body);
print $page->build();