예제 #1
0
파일: test.php 프로젝트: E89son/LieisonCMS
<?php

include '../../../../Conf/Include.php';
set_dependencies(array("LogsController"));
$dir = FunctionsController::GetRootUrl("task");
echo $dir . "<br>";
if ($dir) {
    echo "existe";
} else {
    echo "no existe";
}
$log = new LogsController("../../task/");
$log->SetLog("prueba");
$log->CloseLog();
예제 #2
0
														<label class="control-label">Nueva Contraseña</label>
                                                                                                                <input name="txt_new_pass"  id="txt_new_pass" type="password" class="form-control"/>
													</div>
													<div class="form-group">
														<label class="control-label">Repetir Nueva Contraseña</label>
                                                                                                                <input name="txt_new_pass2"  id="txt_new_pass2" type="password" class="form-control" onkeyup="comparar();"/>
													</div>
                                                                                                    <div class="margin-top-10" id="cmd_password">
                                                                                                        <input type="submit" name="password_enviar"   value="Cambiar Contraseña" class="btn green-haze" />
													</div>
												</form>
											</div>
											<!-- END CHANGE PASSWORD TAB -->
											<!-- PRIVACY SETTINGS TAB -->
                                                                                         <?php 
$contrato = $user_controller->find_contract(FunctionsController::GetRootUrl("admin/files/manifiest"));
?>
                                                                                        
											<div class="tab-pane" id="tab_1_4">
                                                                                            <label>Tus Contratos</label>
													<table class="table table-light table-hover">
													
                                                                                                            <?php 
if (count($contrato) == 0) {
    echo "<tr><td>No Exiten contratos </td></tr>";
}
foreach ($contrato as $k => $v) {
    echo "<tr>";
    echo "<td>" . $v['nombre'] . "</td>";
    if ($v['aceptado'] != 0) {
        echo "<td><label class='uniform-inline'>Contrato Aceptado</td>";
예제 #3
0
 public function InstallController($controller_name, $path = null)
 {
     $path_controller = FunctionsController::GetRootUrl("Controllers", true);
     $clean = str_replace("../", "", $path);
     $clean = str_replace("/", "", $clean);
     $dest_c = FunctionsController::GetRootUrl("admin/" . $clean);
     $dest_c .= "{$controller_name}";
     if (file_exists($path_controller)) {
         if (file_exists($path)) {
             if (@rename($dest_c, $path_controller . "{$controller_name}")) {
                 return true;
             } else {
                 return false;
             }
         }
     }
 }