Exemplo n.º 1
0
	<strong>Password Recovery</strong>
	<br/>
	<br/>
	<?php 
if (isset($this->TempPass)) {
    ?>
	<label>Username : </label>
	<input type='text' value='<?php 
    exho($this->Username);
    ?>
' name='Username' /> 
	<br/>

	<label>Current Password : </label>
	<input type='text' value='<?php 
    exho($this->TempPass);
    ?>
' name='TempPass' /> 
	<br/>
	
	<label>New Password : </label>
	<input type='password' value='' name='Password'/> 
	<br/>
	
	<label>Retype : </label>
	<input type='password' value='' name='Retype'/> 
	<br/>
	
	<br/>
	<input type='submit' value='Change Password' />
	
Exemplo n.º 2
0
/**
 * exho alias
 * @see exho
 * @param string $data
 */
function echos($data)
{
    exho($data);
}
Exemplo n.º 3
0
/**
 * need to supply me with $result and $profiler
 * first one being test result object of PHPUnit and second an instance of profiler
 */
function DumpResultRows($ResultArray, $BackgroundColor, $Color, $Text, $Odd = false)
{
    if (count($ResultArray)) {
        ?>
<tr style='background-color:<?php 
        exho($BackgroundColor);
        ?>
;color:<?php 
        exho($Color);
        ?>
;font-weight:bold;'>
<td colspan='4' >
	<?php 
        exho(count($ResultArray));
        echo " {$Text}";
        ?>
	
</td>
</tr>
<?php 
        $n = 0;
        foreach ($ResultArray as $test) {
            echo "<tr>";
            echo "<td width='50' align='center'>\n\t\t";
            echo ++$n;
            echo "\n</td>";
            $t = $test->failedTest();
            echo "<td>\n\t\t";
            echo get_class($t);
            echo " :: ";
            echo $t->getName();
            echo "\n</td>";
            echo "<td>\n\t\t";
            $e = new Exception();
            echo $test->getExceptionAsString();
            echo "</td>";
            echo "<td>\n\t\t";
            $trace = $test->thrownException()->getTrace();
            if ($Odd) {
                $file = $trace[0]['file'];
                $line = $trace[0]['line'];
            } else {
                if (isset($trace[3]['file'])) {
                    $file = $trace[3]['file'];
                    $line = $trace[3]['line'];
                } else {
                    $file = $line = null;
                }
            }
            if ($file !== null) {
                $dir = substr($file, 0, strlen(jf::root()));
                $dir = substr($file, 0, strpos($file, DIRECTORY_SEPARATOR, strlen($dir) + 1));
                $dir = substr($file, 0, strpos($file, DIRECTORY_SEPARATOR, strlen($dir) + 1));
                $filename = substr($file, strlen($dir) + 1);
                echo $dir . "/<strong>{$filename}</strong> :{$line}";
            } else {
                echo "File: Could not determine, probably because of fatal error.";
            }
            echo "\n</td>\n";
            echo "</tr>\n";
        }
        ?>
	<?php 
    }
}
Exemplo n.º 4
0
<?php

header("HTTP/1.1 404 Not Found");
?>
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The request resource <b><?php 
exho(jf::$Request);
?>
</b> not found.</p>
<hr/>
<span style='font-size:smaller;'><?php 
echo \jf\WHOAMI;
?>
</span>
</body></html>
Exemplo n.º 5
0
    function Present()
    {
        ?>
<fieldset class='jFormFrame' id='<?php 
        echo $this->Name();
        ?>
_frame'>
	<?php 
        if ($this->Label) {
            ?>
<legend><?php 
            exho($this->Label);
            ?>
</legend><?php 
        }
        ?>
<form <?php 
        echo $this->DumpClass();
        ?>
 name='<?php 
        echo $this->Name();
        ?>
' id='<?php 
        echo $this->Name();
        ?>
'<?php 
        if ($this->Action) {
            ?>
 action="<?php 
            exho($this->Action);
            ?>
" <?php 
        }
        ?>
 method='post' enctype='multipart/form-data'>
	<?php 
        $this->PresentChildren();
        ?>
</form>
</fieldset>
		<?php 
    }
Exemplo n.º 6
0
    /**
     * Dump ID of the field
     */
    protected function DumpID()
    {
        ?>
	id='<?php 
        exho($this->Name());
        ?>
' <?php 
    }