This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
public function getDepartamentos() { | |
$sql = 'SELECT id, nome, descricao FROM departamento'; | |
if ( $this->pesq != NULL && $this->pesq != 'off' ) { | |
$sql .= " WHERE nome ILIKE '%:pesq%'"; //OR descricao ILIKE '%:pesq%'"; | |
} | |
// There will always be a default ord, even if no one was provided. | |
$sql .= " ORDER BY {$this->ord}"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
header( 'Content-Type: text/html; charset=utf-8' ); | |
require_once 'inc/init.php'; | |
//////////////////////////////////////////////////////////////////// | |
/// VARIÁVEIS PADRÃO PARA EXECUÇÃO DAS AÇÕES /////////////////////// | |
$menu = Util::getVar( 'm', Util::REQUEST ); | |
$acao = Util::getVar( 'acao', Util::REQUEST ); | |
$id = Util::getVar( 'id', Util::REQUEST ); | |
$url = "?m={$menu}"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class GalleryUp { | |
/** | |
* | |
* @var PDO Uma conexão estática com PDO (singleton). | |
*/ | |
private $db; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# gsettings list-recursively org.gnome.system.proxy | |
# Change de ip address and port number accordingly. | |
function myProxyOn() { | |
gsettings set org.gnome.system.proxy mode 'manual' # ' manual / nome / automatic ' | |
gsettings set org.gnome.system.proxy.http host '10.0.0.1' | |
gsettings set org.gnome.system.proxy.http port 8080 | |
gsettings set org.gnome.system.proxy.https host '10.0.0.1' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.onload = function() { | |
var value = getParam( 'detalhes' ); | |
if ( getParam( 'tipo' ) == 'casa' ) { | |
out ( getParam( 'tipo' ) ); | |
} | |
} | |
var out = console.log; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function __autoload( $class_name ) { | |
if ( file_exists( 'model/class.' . $class_name . '.inc.php' ) ) { | |
include 'model/class.' . $class_name . '.inc.php'; | |
} | |
if ( file_exists( 'dao/dao.' . $class_name . '.inc.php' ) ) { | |
include( 'dao/dao.' . $class_name . '.inc.php' ); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
background yes | |
#font Sans:size=8 | |
xftfont Dejavu Sans:size=9 | |
use_xft yes | |
xftalpha 0.1 | |
update_interval 5.0 | |
total_run_times 0 | |
own_window yes | |
#own_window_dekstop |