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
$database_host = "<host>" | |
$database_name = "<database>" | |
$output_file = "<output_file>" | |
$user = "<username>" | |
$password = "<password>" | |
[system.reflection.assembly]::loadWithPartialName('Microsoft.SqlServer.SMO') | |
$server = new-object "Microsoft.SqlServer.Management.Smo.Server" $database_host | |
$server.connectionContext.loginSecure = $false |
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
$database_host = "<host>" | |
$database_name = "<database>" | |
$output_file = "<output_file>" | |
$user = "<username>" | |
$password = "<password>" | |
[system.reflection.assembly]::loadWithPartialName('Microsoft.SqlServer.SMO') | |
$server = new-object "Microsoft.SqlServer.Management.Smo.Server" $database_host | |
$server.connectionContext.loginSecure = $false | |
$server.connectionContext.set_Login($user) |
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
package com.braincoretechnology.rules.util; | |
import java.util.Calendar; | |
import java.util.Date; | |
import java.util.GregorianCalendar; | |
public class DateUtil | |
{ | |
public static Date resolvePrimeiroUltimo(Date data, boolean isPrimeiro) | |
{ |
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
/* | |
* Bloqueia o Formulario | |
*/ | |
HTMLFormElement.prototype.lockForm = function() | |
{ | |
var elmnts = this.elements; | |
armazenaEstadoFormulario(this); | |
for(i=0; i<elmnts.length; i++) | |
habilitaItemForm(elmnts[i], false); |
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
/** | |
* Desbloqueia o Formulario | |
*/ | |
HTMLFormElement.prototype.unlockForm = function() | |
{ | |
var elmnts = this.elements; | |
var store = buildStoreForm(this, false); | |
for(i=0; i<elmnts.length; i++) | |
habilitaItemForm(elmnts[i], !store[i]); |
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
/** | |
* Retorna estado do Formulario | |
*/ | |
HTMLFormElement.prototype.isLocked = function() | |
{ | |
var store = buildStoreForm(this, false); | |
if(store.length>0) | |
return store['locked']; |
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 | |
$action = $_REQUEST["acao"]; | |
if($action=="upload-logo") | |
{ | |
processaLogo(); | |
} | |
function processaLogo() | |
{ |
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
<form method="post" action="centro.php" enctype="multipart/form-data"> | |
<input type="hidden" name="acao" value="upload-logo"> | |
<input type="file" name="logo"> | |
<input type="submit" value="Enviar"> | |
</form> |
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 | |
$action = $_REQUEST["acao"]; | |
if($action=="upload-logo") | |
{ | |
processaLogo(); | |
} | |
?> |
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 | |
function processaLogo() | |
{ | |
$logo = processaUploadLogo($_FILES["logo"]); | |
if(!$logo) | |
{ | |
header("location: index.php?retorno=upload-invalido"); | |
return; | |
} |
OlderNewer