Exemplo n.º 1
0
function setup($argc, $argv)
{
    if ($argc == 1 || loadOptions($argv) === false) {
        printHelp();
    }
    retrieveArgs($argv);
    loadConfigFiles();
    setupAutoload();
}
Exemplo n.º 2
0
<?php

/************************************************************
Version   Change
  1.1     Fixed the code so that you can view it without logging in.
  1.1.1   Patch fix for disable login feature.
  1.2.6	  admin-intgration


************************************************************/
require_once 'utils.php';
$options = loadOptions();
$line_id = getVar("line_id", null);
$access_time = date("Y-m-d H:i:s");
$ip_address = "0.0.0.0";
$url = "none";
$article_id = "0";
$user_agent = "";
$browser = "";
$referrer = "";
$sqlQuery = "SELECT * FROM {$tablestattraq} where line_id={$line_id}";
$row = $wpdb->get_row($sqlQuery);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
<head>
	<title>StatTraq Access Detail</title>
	<link rel="stylesheet" type="text/css" title="style" href="styles/normal.css" />
</head>
Exemplo n.º 3
0
    <tr>
        <td>Position</td>
        <td>&nbsp;
            <input type="hidden" name="z_position" value="=,','" /></td>
        <td><select id='x_position' name='x_position'>
            <option value="">All</option>
            <?php 
loadOptions("position_list.htm", $x_position);
?>
        </select>
        </td>
    </tr>
    <tr>
        <td>Location</td>
        <td>&nbsp;
            <input type="hidden" name="z_location" value="=,','" /></td>
        <td><select d='x_location' name='x_location'>
            <option value=''>All</option>
            <?php 
loadOptions("county_list.htm", $x_location);
?>
        </select></td>
    </tr>

</table>
<p>
<input type="submit" name="Action" value="Search">
</form>
<?php 
include "bottom.php";
phpmkr_db_close($conn);
Exemplo n.º 4
0
<?php

doActions('core_actions', false);
// ------------------------------------
if ($npage == 'xml_modules') {
    $ptitle = getMsg('coreModules');
    $isAll = true;
} else {
    $ptitle = getMsg('coreServices');
    $isAll = false;
}
// load options
loadOptions();
$mods = array();
foreach ($nav_modules as $mod => $item) {
    $role = $item['role'];
    if (!$isAll and $role == 'core') {
        continue;
    }
    $irev = $item['revision'];
    $sts = $item['_status'];
    $mods[$mod] = array('status' => $sts, 'title' => $item['title']);
}
if ($isAll) {
    $packs = array();
    $packs = parse_ini_file($mos . '/etc/pm/packages', true);
    // adding non installed modules
    foreach ($packs as $mod => $item) {
        if (!array_key_exists($mod, $nav_modules)) {
            if ($item['role'] == 'package') {
                continue;
Exemplo n.º 5
0
<?php

#print_r($_GET);
// load xkcd password criteria options from the $_GET request
$OPTIONS = loadOptions($_GET);
// generate an xkcd password using words from the file 'words' and options from
// the $_GET request
$PASSWORD = generatePassword(loadWords("words"), $OPTIONS);
/**
 * Returns an associative array of options for the password read from
 * $custom_options along with default options not specified.
 */
function loadOptions($custom_options)
{
    // create the default options
    static $options = array("letter_case" => "strtolower", "max_word_length" => 6, "min_password_length" => 12, "min_word_length" => 2, "min_words" => 3, "num_digits" => 1, "num_symbols" => 1, "separator" => "-");
    // override default options with $custom_options
    foreach ($options as $key => &$value) {
        // check if the default option exists in $custom_options
        if (isset($custom_options[$key])) {
            // override default options if custom option value is valid
            $custom_value = $custom_options[$key];
            if (isOptionValid($key, $custom_value)) {
                $value = $custom_value;
            }
        }
    }
    // break the reference with the last element
    unset($value);
    return $options;
}
Exemplo n.º 6
0
    <td>
      <input type="file" id="file" name="logo">
      <input type="hidden" name="currentFilename" value="<?php 
echo $franchise->logo;
?>
">
    </td>
  </tr>
  <tr>
    <td>
      Town or County:
    </td>
    <td>
      <select name="county" id="county">
      <?php 
loadOptions("county_list.htm", $franchise->county);
?>
      </select>
    </td>
  </tr>
  <tr>
    <td>
      Name:
    </td>
    <td>
      <input class = "detail" type="text" id="name" name="name" value="<?php 
echo $franchise->name;
?>
">
    </td>
  </tr>
Exemplo n.º 7
0
		<td><span>Labour Cost</span></td>
		<td><span>
		  <input type="hidden" name="z_achievement_labour" value="=,','"></span></td>
		<td>
		<select id='x_achievement_labour' name='x_achievement_labour'>
		<option value=''>Any </option>
		<?php 
loadOptions("achievement_list.htm", @$x_achievement_labour);
?>
		</select>
		</td>	
	</tr>
	<tr>
		<td><span>Notice required in current position</span></td>
		<td><input type="hidden" name="z_notice" value="<=,','"></td>
		<td>
		<select id='x_notice' name='x_notice'>
		<?php 
loadOptions("notice_period_list_reverse.htm", @$x_notice);
?>
		</select> 
		or less </td>		
	</tr>
</table>
<p>
<input type="submit" name="Action" value="Search">
<input type="button" name="Reset" value="Reset" onclick="EW_clearForm(this.form);">
</form>
<?php 
include "bottom.php";
phpmkr_db_close($conn);
Exemplo n.º 8
0
	</tr>
	<tr>
		<td><span>Tell us about yourself: max 50 words</span></td>
		<td><span id="cb_x_tell_us">
<textarea cols="35" rows="4" id="x_tell_us" name="x_tell_us"><?php 
echo @$x_tell_us;
?>
</textarea>
</span></td>
	</tr>
	<tr>
		<td><span>Notice required in current position</span></td>
		<td>
		<select id='x_notice' name='x_notice'>
		<?php 
loadOptions("notice_period_list.htm", @$x_notice);
?>
		</select>		</td>		
	</tr>
	<tr>
	 <td>&nbsp;</td>
	 <td><input type="submit" name="btnAction" id="btnAction" value="ADD"></td>
	 </tr>
</table>
<p>

</form>
<?php 
include "bottom.php";
phpmkr_db_close($conn);
?>