Esempio n. 1
0
 function credits_php($controller, $service, $modul)
 {
     ob_start();
     phpcredits(CREDITS_ALL - CREDITS_FULLPAGE);
     $credits = ob_get_contents();
     ob_end_clean();
     return $credits;
 }
Esempio n. 2
0
/**
 * Returns phpinfo without html, head and body tags
 * @return  string
 */
function phpcreditsNoHtml()
{
    ob_start();
    phpcredits();
    $content = ob_get_contents();
    ob_end_clean();
    return phpcredits_extractContent($content);
}
Esempio n. 3
0
<?php

var_dump(phpcredits());
var_dump(phpcredits(array()));
echo "--\n";
var_dump(phpcredits(0));
echo "--\n";
var_dump(phpcredits(CREDITS_GROUP));
Esempio n. 4
0
<?php

phpcredits();
Esempio n. 5
0
if (!isset($_GET['exts'])) {
    $directory = '';
}
if ($_GET['display'] == "phpinfo") {
    ob_start();
    phpinfo();
    $phpinfo = ob_get_contents();
    ob_end_clean();
    preg_match_all("=<body[^>]*>(.*)</body>=siU", $phpinfo, $tab);
    $phpinfo = $tab[1][0];
    $phpinfo = str_replace(";", "; ", $phpinfo);
    $phpinfo = str_replace(",", ", ", $phpinfo);
}
if ($_GET['display'] == "phpcredits") {
    ob_start();
    phpcredits(CREDITS_ALL - CREDITS_FULLPAGE);
    $phpcredits = ob_get_contents();
    ob_end_clean();
    $phpcredits = str_replace('<h1>PHP Credits</h1>', '', $phpcredits);
}
$modules = @opendir("../../modules");
$modules_files = array();
while ($modules_file = @readdir($modules)) {
    if ($modules_file != '..' && $modules_file != '.' && $modules_file != '' && @is_dir("../../modules/" . $modules_file) && @file_exists("../../modules/" . $modules_file . "/easyphp+.php")) {
        $modules_files[] = $modules_file;
    }
    sort($modules_files);
}
@closedir($modules);
clearstatcache();
// Notifications
<?php

/*
phpcredits — Prints out the credits for PHP
http://www.php.net/manual/en/function.phpcredits.php
*/
phpcredits(CREDITS_ALL);
Esempio n. 7
0
if (strpos($_SERVER["HTTP_USER_AGENT"], "MSIE 7") === false && strpos($_SERVER["HTTP_USER_AGENT"], "MSIE 8") === false) {
    $styleswitcher = '<select id="themes">' . "\n";
    $themes = glob('wampthemes/*', GLOB_ONLYDIR);
    foreach ($themes as $theme) {
        if (file_exists($theme . '/style.css')) {
            $theme = str_replace('wampthemes/', '', $theme);
            $styleswitcher .= '<option name="' . $theme . '" id="' . $theme . '">' . $theme . '</option>' . "\n";
        }
    }
    $styleswitcher .= '</select>' . "\n";
}
//affichage du phpinfo
if (isset($_GET['phpinfo'])) {
    phpinfo();
    if (version_compare(PHP_VERSION, '5.5.0', '<')) {
        phpcredits(CREDITS_ALL | CREDITS_SAPI);
    }
    exit;
}
//affichage des images
if (isset($_GET['img'])) {
    switch ($_GET['img']) {
        case 'pngFolder':
            header("Content-type: image/png");
            echo base64_decode($pngFolder);
            exit;
        case 'pngFolderGo':
            header("Content-type: image/png");
            echo base64_decode($pngFolderGo);
            exit;
        case 'gifLogo':
Esempio n. 8
0
 public function phpcredits_shows_the_folks_that_made_the_language()
 {
     // The ob_* functions allow us to capture output sent to stdout.
     // to see the content of $result, comment out ob_start/ob_get_clean
     ob_start();
     phpcredits(CREDITS_GENERAL);
     $result = ob_get_clean();
     assert_that($result)->contains_string(__);
 }