This file contains hidden or 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
| var Application, ApplicationSchema, app, express, gridfs, mongoose; | |
| express = require("express"); | |
| gridfs = require("./gridfs"); | |
| mongoose = require("mongoose"); | |
| mongoose.connect("mongodb://localhost/meuxic"); |
This file contains hidden or 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
| var cookie = { | |
| setItem: function (name, value) { | |
| document.cookie = escape(name) + '=' + escape(value); | |
| }, | |
| getItem: function (name) { | |
| var coos = document.cookie; | |
| coos = coos.split(';'); | |
| for (x in coos) { | |
| var coo = coos[x].split('='); | |
| if (coo[0] == name) { |
This file contains hidden or 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
| var mongoose = require("mongoose"); | |
| var conf = require('../config.json'); | |
| var Schema = mongoose.Schema; | |
| var bcrypt = require('bcrypt'); | |
| var SALT_WORK_FACTOR = 10; | |
| console.log(conf.free_marker); | |
| var UserSchema = new Schema( |
This file contains hidden or 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 | |
| if(!isset($_SESSION)) | |
| session_start(); | |
| ini_set("session.gc_maxlifetime", (24*3600*30) ); | |
| require_once(dirname(__FILE__) . "/functions.php"); | |
| require_once(dirname(__FILE__) . "/config.inc.php"); | |
This file contains hidden or 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 | |
| define('DB_HOST','inmaventa.db.10365283.hostedresource.com'); | |
| define('DB_USER','inmaventa'); | |
| define('DB_PASS','Inm@venta2013'); | |
| define('TB_PREFIX',''); | |
| class db_controller_exception extends Exception{}; | |
| class db_controller{ |
This file contains hidden or 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 writing_time_out(){ | |
| var who = { | |
| user: tu.nombre, | |
| writing: 'no' | |
| } | |
| socket.emit('escribiendo', who); |
This file contains hidden or 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
| //order controller | |
| (function(a,b){ | |
| console.log(a); | |
| var order_listener = function(){ | |
| $("#orden") | |
| .off("change") |
This file contains hidden or 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 | |
| extract($_GET); | |
| include('controlSesion.php'); | |
| require('bd.php'); | |
| include('includes/parametros.php'); | |
| include('funciones/fechas.php'); | |
| if(isset($_GET["filters"])){ |
This file contains hidden or 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
| .clearfix{*zoom:1} | |
| .clearfix:before,.clearfix:after{display:table;content:""} | |
| .clearfix:after{clear:both} | |
| #overr{position:fixed;left:0;top:0;width:100%; height:100%;display:none;} | |
| #confirmation{z-index:100000;position:fixed;width:450px;max-height:400px;background:white;left:50%;margin-left:-255px;top:150px;box-shadow:0 3px 19px black;border-radius:2px;overflow:hidden;overflow-y:auto}#confirmation *{font-family:"Lucida grande",Arial,sans-serif;font-size:13px} | |
| #confirmation .content{word-break:break-all; padding:12px 6px; overflow:auto; max-height:300px;} | |
| #confirmation .buttons{*zoom:1;display:block;border-top:1px solid #ccc}#confirmation .buttons span{display:block;float:left;float:right;border-right:1px solid #ccc;padding:10px 0;height:22px;cursor:pointer;width:49.8%;text-align:center}#confirmation .buttons span:hover{background:#F7F7F7} | |
| #confirmation .buttons span:first-child{border:0} | |
| #confirmation.chocolate{background:#A71729;color:white}#confirmation.chocolate .buttons span:hover{background:#d41d34} |