function step_3() { $this->ukey = md5($this->u_ver_id . time() . $this->m['id'] . uniqid(rand(), true)); require_once "./up_" . $this->u_ver_id . "/sql_queries.php"; while (list(, $sql_query) = each($SQL)) { if (!mysql_query($sql_query)) { $this->step_3("An error encountered while trying to run the following SQL Query.<br /><br />" . $sql_query . "<br /><br />MySQL returned the following error.<br /><br />" . mysql_error() . "<br /><br />" . mysql_errno()); } } $this->ifthd->core->add('upgrade', array('10032251' => array('updated_old' => 0, 'new_skin_id' => 0))); $content = "<div class='groupbox'>Upgrade Complete</div>\n <div class='option1'>Congratulations, Trellis Desk has been successfully upgraded to " . $this->u_ver_human . ". Click the link below to return to Trellis Desk.</div>\n <div class='option2'><a href='http://docs.accord5.com/Whats_New' target='_blank'>To learn more about this upgrade, such as where new features are located and how to configure them, click here.</a></div>\n <div class='formtail'><div class='fb_pad'><a href='../index.php' class='fake_button'>Finish</a></div></div>"; do_output($content, 3); }
function crawlFiles($path) { global $ecma_classes; $fp = fopen("php://stderr", "w+"); if ($dir = @opendir($path)) { while (($file = readdir($dir)) !== false) { if ($file != "." && $file != "..") { if (is_dir($path . "/" . $file)) { fputs($fp, "Entering directory " . $file . "\n"); crawlFiles($path . "/" . $file); fputs($fp, "Leaving directory " . $file . "\n"); } elseif (is_file($path . "/" . $file) && preg_match("/^[A-Za-z0-9_]+(\\.cc|\\.cpp|\\.h|\\.hpp)\$/", $file)) { fputs($fp, "\tchecking {$file}\n"); searchKalyptusCode($path . "/" . $file, $fp); } } } closedir($dir); } } define(DEBUG, 0); $ecma_classes = array(); $ksvg_path = "../"; $path = basename(realpath($ksvg_path)); if ($path != "ksvg") { echo "Execute it in base ksvg dir please :S\n"; return false; } crawlFiles($ksvg_path); do_output($argv[1], $ecma_classes);
<?php require 'includes/connect.php'; require 'includes/utils.php'; $data = get_quiz_questions(); do_output(true, $data);
function show_login($error = '') { global $ifthd; $ifthd->delete_cookie('upgsid'); set_steps('Upgrade Trellis Desk', array(0 => 'Login')); set_titles(array(0 => 'Login to the Upgrade Center')); $content = ""; if ($error) { $content .= "<div class='critical'>{$error}</div>"; } $content .= "<form action='index.php' method='post'>\n <input type='hidden' name='do_login' value='1' />\n <div class='groupbox'>Log In</div>\n <div class='option1'><input type='text' name='username' id='username' value='Username' onfocus=\"clear_value(this, 'Username')\" onblur=\"reset_value(this, 'Username')\" size='30' /></div>\n <div class='option2'><input type='password' name='password' id='password' value='password' onfocus=\"clear_value(this, 'password')\" onblur=\"reset_value(this, 'password')\" size='30' /></div>\n <div class='formtail'><input type='submit' name='submit' id='login' value='Log In' class='button' /></div>\n </form>"; do_output($content, 0); }
function step_5() { $this->ifthd->rebuild_set_cache(); $this->ifthd->rebuild_skin_cache(); $this->ifthd->core->add('upgrade', array('10031234' => array('updated_old' => 0, 'new_skin_id' => 0))); $content = "<div class='groupbox'>Upgrade Complete</div>\n <div class='option1'>Congratulations, Trellis Desk has been successfully upgraded to " . $this->u_ver_human . ". Click the link below to return to Trellis Desk.</div>\n <div class='option2'><a href='http://docs.accord5.com/trellis/whatsnew' target='_blank'>To learn more about this upgrade, such as where new features are located and how to configure them, click here.</a></div>\n <div class='formtail'><div class='fb_pad'><a href='../index.php' class='fake_button'>Finish</a></div></div>"; do_output($content, 5); }