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(app){ | |
var connect; | |
app.db = {}; | |
var Database = app.db; | |
Database.initialize = function(){ | |
db = window.sqlitePlugin.openDatabase({name: "DB.db", location: 2}); | |
} | |
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
#asdf7890 | |
INSERT INTO `a_utenti` (`id`, `id_a_utenti_cat`, `nome`, `cognome`, `email`, `password`, `data_iscrizione`, `attivo`, `bannato`, `data_nascita`, `indirizzo`, `citta`, `provincia`, `regione`, `paese`, `cap`, `cf`, `piva`) VALUES | |
(1, 2, 'Marco', 'Iacovitti', '[email protected]', '1a06a208db9096ebd4fa6838879e1bf2', 1318903622, 1, 0, 0, '', '', '', '', '', '', '', ''), | |
(1, 2, '{ProjectName}', 'admin', '{ProjectName@ProjectName}', '{here_the_password_hash} ', 1318903622, 1, 0, 0, '', '', '', '', '', '', '', ''); |
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 sendPost($URL,$postData){ | |
$useragent = $_SERVER['HTTP_USER_AGENT']; | |
$enCRYPTING = $this->enCrypt(serialize($postData),$this->PRIVATE_KEY); | |
$postData_EnCrypt['request'] = $enCRYPTING; | |
$ch = curl_init(); | |
curl_setopt($ch, CURLOPT_URL,$URL); | |
curl_setopt($ch, CURLOPT_POST, 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
//Gabriele - Adding Global Function for correct Images Visibility | |
function getFullImageUrlForPopUp($path) | |
{ | |
/* | |
* This is a bug fix | |
* as some of the images | |
* uploaded in this sitem | |
* was cutting the extension name | |
* like some .jpeg images are display | |
* in the source field without extension |
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
git rm -r --cached /src/EML/CmsBundle/Resources/config/routing.yml | |
git rm -r --cached /src/EML/CmsBundle/Resources/views/ | |
git commit -m 'Remove the now ignored directory "some-directory"' | |
git push origin master |
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 Importcsv extends Routing | |
{ | |
var $csvPath; | |
var $csvPathFrom; | |
var $csvPathTo; | |
var $tablesDone=array(); | |
var $linesDone=array(); |
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 mergeFiles() | |
{ | |
//Merge of files | |
foreach ($this->files_to_merge AS $T) | |
{ | |
exec("> ".$this->csvPathTo.$T['dest']); | |
$count=0; | |
foreach ($T['source'] AS $Source) |
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] | |
;;;;;;;;;;;;;;;;;;; | |
; About php.ini ; | |
;;;;;;;;;;;;;;;;;;; | |
; PHP's initialization file, generally called php.ini, is responsible for | |
; configuring many of the aspects of PHP's behavior. | |
; PHP attempts to find and load this configuration from a number of locations. | |
; The following is a summary of its search order: |
NewerOlder