Example #1
0
<?php

include "header.php";
?>

<h1><?php 
echo $titulo;
?>
</h1>
<h2><?php 
echo output_msg($type = null);
?>
</h2>

<div id="login" class="bg">
    <?php 
echo form_open('trocasenha/alterar', array('id' => 'form_obj'));
?>
        <fieldset>
            <legend>Altarar senha</legend>
            <!--label for="email"><span>Confirme o email</span><input type='text' name='email' id="email" value="<?php 
echo $this->validation->email;
?>
" /><?php 
echo $this->validation->email_error;
?>
</label-->
            <label for="senha"><span>Nova senha</span><input type='password' name='senha' id="senha" value="" /><?php 
echo $this->validation->senha_error;
?>
</label>
Example #2
0
	</head>
	<body>
		<div id="main">
		<?php 
include_layout_template('header.php');
?>
		<h3>Upload Images</h3><hr/>
			<div id="contents">
				<div class="left">
					<?php 
include "menu.php";
?>
				</div>
				<div class="right">
                <?php 
echo output_msg($message);
?>
				<form action="upload_images.php" enctype="multipart/form-data" method="POST">
					<input type="hidden" name="MAX_FILE_SIZE" value="<?php 
echo $max_file_size;
?>
"
					<p>Select File:<input type="file" name="file_upload" /></p>
					<p>Caption:<input type="text" name="caption"/></p>
					<p>Category:<select name="cat">
					<?php 
while ($cat = $database->fetch_array($obj)) {
    ?>
						<option value="<?php 
    echo $cat[0];
    ?>
Example #3
0
function purge_torrent($torrent_hash)
{
    output_msg(run("rtcontrol -q --cull --yes hash={$torrent_hash}"));
}
 private static function CheckPythonLibrary($lib, $minVersion)
 {
     $command = "/usr/lib/airtime/airtime_virtualenv/bin/pip freeze | grep {$lib}";
     exec($command, $output, $result);
     $status = AirtimeCheck::CHECK_FAILED;
     if (count($output[0]) > 0) {
         $key_value = explode("==", $output[0]);
         $version = trim($key_value[1]);
         if (self::isMinVersionSatisfied($minVersion, $version)) {
             $status = $version;
         } else {
             output_msg("Minimum require version for \"{$lib}\" is {$minVersion}. Your version: {$version}");
             self::$check_system_ok = false;
         }
     } else {
         self::$check_system_ok = false;
     }
     return $status;
 }