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 | |
// src/Blogger/BlogBundle/Entity/Comment.php | |
namespace Blogger\BlogBundle\Entity; | |
use Doctrine\ORM\Mapping as ORM; | |
/** | |
* @ORM\Entity(repositoryClass="Blogger\BlogBundle\Entity\Repository\CommentRepository") | |
* @ORM\Table(name="comment") |
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 ImageHelper | |
* | |
* Simple class to manage image load, save and resize | |
* | |
* Usage: | |
* | |
* $image = new ImageHelper; |
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 ImageHelper | |
* | |
* Simple class to manage image load, save and resize | |
* | |
* Usage: | |
* | |
* $image = new ImageHelper; |
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 static function setSort($book) | |
{ | |
$model=BooksSort::model()->findByPk($book->id_book); | |
if ($model===NULL){ | |
$model=new BooksSort; | |
$max=Yii::app()->db->createCommand("SELECT MAX(sort) FROM {$model->tableName()} WHERE app_id={$book->app_id};")->queryScalar(); | |
$model->sort=$book->sort; | |
$model->app_id=$book->app_id; |
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 setupOrder($old,$new) | |
{ | |
$max=Yii::app()->db->createCommand("SELECT MAX(sort) FROM {$this->tableName()} WHERE app_id={$this->app_id};")->queryScalar(); | |
$this->sort=$new; | |
if ($this->validate()){ | |
if ($new>$max) $new=$max; | |
} else { | |
if ($max>=20) $new=20; | |
else $new=$max; |
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
################################################################################# | |
# CVE-XXXXX Wordpress and Drupal XML Blowup Attack DoS# | |
# Author: Nir Goldshlager - Salesforce.com Product Security Team# | |
# This is a Proof of Concept Exploit, Please use responsibly.# | |
################################################################################# | |
#!/usr/bin/env python | |
from __future__ import print_function | |
import threading | |
import time | |
import urllib |
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 | |
$books = array(); | |
$selections = array(); | |
$selections_positions = array(); | |
$view = array(); | |
for ($i=0;$i<1000;$i++){ | |
$books[] = array("id_book"=>$i); | |
} | |
for ($i=0; $i < 5; $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
9785906067012 => imported!!! | |
9785961401837 => imported!!! | |
9785961409406 => imported!!! | |
9785961409703 => imported!!! | |
9785961410488 => imported!!! | |
9785961415131 => imported!!! | |
9785961416282 => imported!!! | |
9785961420036 => imported!!! | |
9785961420043 => imported!!! | |
9785961420067 => imported!!! |
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
9785906067012_cover2.jpg imported! | |
9785961401837_cover1.jpg imported! | |
9785961409406_cover1.jpg imported! | |
9785961409703_cover2.jpg imported! | |
9785961410488_cover2.jpg imported! | |
9785961415131_cover2.jpg imported! | |
9785961416282_cover2.jpg imported! | |
9785961420036_cover2.jpg imported! | |
9785961420043_cover2.jpg imported! | |
9785961420067_cover1.jpg imported! |
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 EverbookAudioImportCommand extends CConsoleCommand | |
{ | |
/** | |
* @var $task EverbookAudioImportTasks | |
*/ | |
private $task; | |
/** | |
* @var $everbook_book EverbookBooks |
OlderNewer