function fleaditlater_plugin_action($_, $myUser)
{
    $mysqli = new MysqlEntity();
    if ($_['action'] == 'fleadItLater') {
        if ($myUser == false) {
            exit(_t('P_FLEADITLATER_NOT_CONNECTED_ERROR'));
        }
        if (isset($_['id'])) {
            $id = $mysqli->escape_string($_['id']);
            if (isset($_['state']) && $_['state'] == 'add') {
                $return = $mysqli->customQuery('INSERT INTO `' . MYSQL_PREFIX . 'plugin_feaditlater` (event)VALUES(\'' . $id . '\')');
            } else {
                $return = $mysqli->customQuery('DELETE FROM `' . MYSQL_PREFIX . 'plugin_feaditlater` WHERE event=\'' . $id . '\'');
            }
            if (!$return) {
                echo $mysqli->error;
            }
        }
    }
}
예제 #2
0
파일: Event.class.php 프로젝트: Rorto/Leed
 function __construct($guid = null, $title = null, $description = null, $content = null, $pubdate = null, $link = null, $category = null, $creator = null)
 {
     $this->guid = $guid;
     $this->title = $title;
     $this->creator = $creator;
     $this->content = $content;
     $this->description = $description;
     $this->pubdate = $pubdate;
     $this->link = $link;
     $this->category = $category;
     parent::__construct();
 }
예제 #3
0
파일: Folder.class.php 프로젝트: Rorto/Leed
 function __construct()
 {
     parent::__construct();
 }
function ng_plugin_button(&$event)
{
    $requete = 'SELECT guid,content,link,title FROM `' . MYSQL_PREFIX . 'event` WHERE id = ' . $event->getId();
    /*    
        $query = mysql_query($requete);
        $result = mysql_fetch_array($query);
    */
    $mysql = new MysqlEntity();
    $results = $mysql->customQuery($requete);
    $result = $results->fetch_array();
    if (stristr($result['content'], 'Langue :')) {
        get_content($result['content'], $content);
        complete_content($content);
        echo '[';
        $bsLink = $content['indexers']['binsearch'];
        echo '<a title="Chercher: ' . $result['title'] . '" target="_blank" href="' . $bsLink . '" rel="noreferrer">' . 'BS!' . '</a> ';
        $bsLink = $content['indexers']['nzbindex'];
        echo '<a title="Chercher: ' . $result['title'] . '" target="_blank" href="' . $bsLink . '" rel="noreferrer">' . 'NI!' . '</a> ';
        $bsLink = $content['indexers']['nzbclub'];
        echo '<a title="Chercher: ' . $result['title'] . '" target="_blank" href="' . $bsLink . '" rel="noreferrer">' . 'NC!' . '</a> ';
        echo ']&nbsp;';
    }
}
예제 #5
0
파일: Feed.class.php 프로젝트: Rorto/Leed
 function __construct($name = null, $url = null)
 {
     $this->name = $name;
     $this->url = $url;
     parent::__construct();
 }
예제 #6
0
<?php

$mysqli = new MysqlEntity();
$mysqli->customQuery('DROP TABLE `' . MYSQL_PREFIX . 'plugin_feaditlater`');
예제 #7
0
<?php

$mysqli = new MysqlEntity();
$mysqli->customQuery('

CREATE TABLE IF NOT EXISTS `' . MYSQL_PREFIX . 'plugin_feaditlater` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `event` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

');