Exemplo n.º 1
0
if (isset($error) && $error) {
    ?>
		<div class="alert alert-error">
			<strong>Error</strong>
			<p><?php 
    print nl2br(securedString($MESSAGE));
    ?>
</p>
		</div>
		<?php 
} elseif (isset($error) && !$error) {
    ?>
		<div class="alert alert-success">
			<strong>Success</strong>
			<p><?php 
    print nl2br(securedString($MESSAGE));
    ?>
</p>
		</div>
		<?php 
}
?>
		<input type="file" name="file" id="file">
		<div class="form-actions">
			<button type="submit" class="btn btn-primary"><i class="icon-upload icon-white"></i>&nbsp;Upload</button>
		</div>
		</form>
	</div>
</body>
</html>
Exemplo n.º 2
0
		<table class="table">
			<thead>
				<th>Session</th>
				<th>Status</th>
				<th>Actions</th>
			</thead>
			<tbody>
<?php 
foreach (list_sessions() as $sessid) {
    //~ var_dump($sessid);
    $john = new johnSession($sessid);
    //~ var_dump($john);
    print '<tr>';
    print '<td>' . $john->session_name . '</td>';
    print '<td id="status_' . $sessid . '">';
    print securedString($john->status());
    print '</td>';
    print '<td id=buttons_' . $sessid . '>';
    if ($john->isRunning()) {
        print '&nbsp;<button id="stop_' . $sessid . '" type="button" class="btn btn-danger btn-small" data-loading-text="..."><i class="icon-stop icon-white"></i> Stop</button>';
    } elseif (!$john->isFinished()) {
        print '&nbsp;<button id="start_' . $sessid . '" type="button" class="btn btn-success btn-small" data-loading-text="..."><i class="icon-play icon-white"></i> Resume</button>';
    }
    print '&nbsp;<button id="update_' . $sessid . '" type="button" class="btn btn-small" data-loading-text="..."';
    if (!$john->isRunning()) {
        print ' style="display: none"';
    }
    print '><i class="icon-refresh"></i> Update</button>';
    //~ print '&nbsp;<a data-remote="'.$_SERVER['SCRIPT_NAME'].'?json=0&action=show&sessionid='.$sessid.'" data-target="#showRes" role="button" class="btn btn-small" data-toggle="modal"><i class="icon-list"></i> Results</a>';
    print '&nbsp;<a href="report.php?sessID=' . $sessid . '" role="button" class="btn btn-small"><i class="icon-list"></i> Results</a>';
    if (!$john->isRunning()) {
Exemplo n.º 3
0
    print '<td>' . securedString($data['pass']) . '</td>';
    print '</tr>';
}
?>
				</tbody>    
			</table>
					  
		  </div>
		  <div class="tab-pane" id="output">
			<?php 
print nl2br(securedString($john->printOut()));
?>
		  </div>
		  <div class="tab-pane" id="error">
			<?php 
print nl2br(securedString($john->printErr()));
?>
		  </div>
		</div>
		<script>
		$('#myTab a').click(function(e) {
			e.preventDefault();
			$(this).tab('show');
		});
		</script>		
	</div>
	<div class="row">
		&nbsp;
		&nbsp;
		&nbsp;
	</div>