mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 20:45:55 +00:00
remove $link
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
<?php
|
||||
class Mail extends Plugin {
|
||||
|
||||
private $link;
|
||||
private $host;
|
||||
|
||||
function about() {
|
||||
@@ -11,7 +10,6 @@ class Mail extends Plugin {
|
||||
}
|
||||
|
||||
function init($host) {
|
||||
$this->link = $host->get_link();
|
||||
$this->host = $host;
|
||||
|
||||
$host->add_hook($host::HOOK_ARTICLE_BUTTON, $this);
|
||||
@@ -30,13 +28,13 @@ class Mail extends Plugin {
|
||||
|
||||
function emailArticle() {
|
||||
|
||||
$param = db_escape_string($this->link, $_REQUEST['param']);
|
||||
$param = db_escape_string( $_REQUEST['param']);
|
||||
|
||||
print "<input dojoType=\"dijit.form.TextBox\" style=\"display : none\" name=\"op\" value=\"pluginhandler\">";
|
||||
print "<input dojoType=\"dijit.form.TextBox\" style=\"display : none\" name=\"plugin\" value=\"mail\">";
|
||||
print "<input dojoType=\"dijit.form.TextBox\" style=\"display : none\" name=\"method\" value=\"sendEmail\">";
|
||||
|
||||
$result = db_query($this->link, "SELECT email, full_name FROM ttrss_users WHERE
|
||||
$result = db_query( "SELECT email, full_name FROM ttrss_users WHERE
|
||||
id = " . $_SESSION["uid"]);
|
||||
|
||||
$user_email = htmlspecialchars(db_fetch_result($result, 0, "email"));
|
||||
@@ -58,7 +56,7 @@ class Mail extends Plugin {
|
||||
$tpl->setVariable('USER_EMAIL', $user_email, true);
|
||||
$tpl->setVariable('TTRSS_HOST', $_SERVER["HTTP_HOST"], true);
|
||||
|
||||
$result = db_query($this->link, "SELECT link, content, title
|
||||
$result = db_query( "SELECT link, content, title
|
||||
FROM ttrss_user_entries, ttrss_entries WHERE id = ref_id AND
|
||||
id IN ($param) AND owner_uid = " . $_SESSION["uid"]);
|
||||
|
||||
@@ -149,7 +147,7 @@ class Mail extends Plugin {
|
||||
if (!$rc) {
|
||||
$reply['error'] = $mail->ErrorInfo;
|
||||
} else {
|
||||
save_email_address($this->link, db_escape_string($this->link, $destination));
|
||||
save_email_address( db_escape_string($destination));
|
||||
$reply['message'] = "UPDATE_COUNTERS";
|
||||
}
|
||||
|
||||
@@ -157,7 +155,7 @@ class Mail extends Plugin {
|
||||
}
|
||||
|
||||
function completeEmails() {
|
||||
$search = db_escape_string($this->link, $_REQUEST["search"]);
|
||||
$search = db_escape_string( $_REQUEST["search"]);
|
||||
|
||||
print "<ul>";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user