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
try { | |
$fecha = date('Y-m-d'); | |
$mensajeId = mysql_insert_id(); | |
$path = realpath($_SERVER['DOCUMENT_ROOT'] . DS . '..' . DS . 'adjuntos'); | |
$path = $path . DS . implode(DS, explode('-', $fecha)) . DS . $mensajeId; | |
if (!file_exists($path)) { | |
mkdir($path, 0777, true); | |
} | |
$file = $_FILES['archivo_adjunto']; |
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 | |
/** | |
* Formatter interface. | |
* | |
* A contract to format. | |
* | |
* @category Formatter | |
* @package Formatter | |
* @author Saul Martinez <saul@sharkwebintelligence.com> | |
* @copyright 2012 Shark Web Intelligence |
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 | |
abstract class modBreakingNews | |
{ | |
public function getArticles(&$params) | |
{ | |
$db =& JFactory::getDbo(); | |
$application =& JFactory::getApplication(); | |
$applicationParams = $application->getParams(); | |
$model = JModel::getInstance('Articles', 'ContentModel', array('ignore_request' => true)); |
NewerOlder