コード例 #1
0
ファイル: class-salon.php プロジェクト: rafabrutaldrums/siclo
 public function crear($ubicacion = false)
 {
     if (!$ubicacion) {
         return;
     }
     $nuevo = crear('salon');
     if ($nuevo) {
         update_post_meta($nuevo, 'ubicacion', $ubicacion);
     }
 }
コード例 #2
0
ファイル: image.php プロジェクト: fercab24/Tesis
        $fullname = explode(" ", $fullname);
        $string = $fullname[0] . "\n" . $fullname[1];
        //Elegimos el prediseño de la imagen
        if ($evento == "3") {
            $imagepath = "images/ok.png";
        } else {
            if ($evento == "4") {
                $imagepath = "images/NotOk.png";
            } else {
                $imagepath = "images/warning.png";
                $string = "Usuario No\nRegistrado";
            }
        }
        //$string = $nombre." ".$evento." ".$aparato;
        echo $string;
        //Creamos la imagen y añadimos el texto
        $image1 = @imagecreatefrompng($imagepath) or die('No se puede Iniciar el nuevo flujo a la imagen GD');
        $color_texto = imagecolorallocate($image1, 0, 0, 0);
        imagettftext($image1, 25, 0, 60, 60, $color_texto, "/usr/share/fonts/truetype/dejavu/DejaVuSansMono.ttf", $string);
        imagepng($image1, "images/" . $aparato . ".png");
        imagedestroy($image1);
    }
    // Liberar resultados
    mysql_free_result($result);
    // Cerrar la conexión
    mysql_close($link);
}
crear();
//Refresh de la pagina automatico
//$url1=$_SERVER['REQUEST_URI'];
//header("Refresh: 1; URL=$url1");
コード例 #3
0
 public function crear()
 {
     return crear('ubicacion');
 }
コード例 #4
0
ファイル: index.php プロジェクト: salvacam/todo_list
    } else {
        if ($id == 'Active' || $id == 'Completed') {
            echo borrarEstado($id);
        } else {
            echo borrar($id);
        }
    }
});
Nanite::post('/new', function () {
    header("Content-Type: application/json");
    $objDatos = json_decode(file_get_contents("php://input"));
    $texto = '';
    if (isset($objDatos->texto)) {
        $texto = $objDatos->texto;
    }
    echo crear($texto);
});
Nanite::post('/update/([0-9]+)', function ($id) {
    header("Content-Type: application/json");
    $objDatos = json_decode(file_get_contents("php://input"));
    $texto = '';
    if (isset($objDatos->texto)) {
        $texto = $objDatos->texto;
    }
    $estado = '';
    if (isset($objDatos->estado)) {
        $estado = $objDatos->estado;
    }
    echo modificar($id, $texto, $estado);
});
if (!Nanite::$routeProccessed) {
コード例 #5
0
ファイル: class-clase.php プロジェクト: rafabrutaldrums/siclo
 public function crear($salon = false, $instructor = false, $fecha = false, $tipo = '')
 {
     if (!$salon || !$instructor || !$fecha) {
         return;
     }
     $nuevo = crear('clase', false, $fecha);
     if ($nuevo) {
         $this->ID = $nuevo;
         update_post_meta($nuevo, 'salon', $salon);
         update_post_meta($nuevo, 'instructor', $instructor);
         update_post_meta($nuevo, 'tipo', $tipo);
         update_post_meta($nuevo, 'timestamp', current_time('timestamp'));
     }
 }
コード例 #6
0
ファイル: crearImage.php プロジェクト: fercab24/Tesis
<?php

function crear($fullname, $aparato, $evento)
{
    //Manipulamos para poner el nombre y debajo el apellido
    $fullname = explode(" ", $fullname);
    $string = $fullname[0] . "\n" . $fullname[1];
    //echo "va";
    //Elegimos el prediseño de la imagen
    if ($evento == "3") {
        echo "entro";
        $imagepath = "images/ok.png";
    } else {
        if ($evento == "4") {
            $imagepath = "images/NotOk.png";
        } else {
            $imagepath = "images/warning.png";
            $string = "Usuario No\nRegistrado";
        }
    }
    //$string = $nombre." ".$evento." ".$aparato;
    //echo $string;
    //Creamos la imagen y añadimos el texto
    $image1 = @imagecreatefrompng($imagepath) or die('No se puede Iniciar el nuevo flujo a la imagen GD');
    $color_texto = imagecolorallocate($image1, 0, 0, 0);
    imagettftext($image1, 25, 0, 60, 60, $color_texto, "/usr/share/fonts/truetype/dejavu/DejaVuSansMono.ttf", $string);
    imagepng($image1, "images/" . $aparato . ".png");
    imagedestroy($image1);
}
crear("Juani Cardinalli", "544953454", "4");
コード例 #7
0
ファイル: functions.php プロジェクト: rafabrutaldrums/siclo
 function procesar_invitado($data = false, $paquete = false, $id_comprador = false)
 {
     global $current_user;
     if (!$data || !$paquete) {
         return;
     }
     if (!$id_comprador) {
         $id_comprador = $current_user->ID;
     }
     $new_cron = crear('cron_gift_card', $id_comprador, $data['fecha']);
     if ($new_cron) {
         update_post_meta($new_cron, '_data', $data['data']);
         update_post_meta($new_cron, '_paquete', $paquete);
     }
 }
コード例 #8
0
ファイル: ajax.php プロジェクト: rafabrutaldrums/siclo
 function actualizar_faqs($data = false)
 {
     global $admin;
     if (!$admin->permisos('Gafa')) {
         return;
     }
     if (!$data) {
         return;
     }
     foreach ($data as $d) {
         if (!$d['id']) {
             $d['id'] = crear('faq');
         }
         actualizar_nombre($d['id'], $d['titulo']);
         actualizar_contenido($d['id'], $d['texto']);
     }
 }