replace split with explode
This commit is contained in:
parent
438a3ecb04
commit
a5680acbe8
|
@ -1097,7 +1097,7 @@ class Pref_Feeds extends Handler_Protected {
|
||||||
|
|
||||||
function remove() {
|
function remove() {
|
||||||
|
|
||||||
$ids = split(",", db_escape_string($this->link, $_REQUEST["ids"]));
|
$ids = explode(",", db_escape_string($this->link, $_REQUEST["ids"]));
|
||||||
|
|
||||||
foreach ($ids as $id) {
|
foreach ($ids as $id) {
|
||||||
Pref_Feeds::remove_feed($this->link, $id, $_SESSION["uid"]);
|
Pref_Feeds::remove_feed($this->link, $id, $_SESSION["uid"]);
|
||||||
|
@ -1114,7 +1114,7 @@ class Pref_Feeds extends Handler_Protected {
|
||||||
function rescore() {
|
function rescore() {
|
||||||
require_once "rssfuncs.php";
|
require_once "rssfuncs.php";
|
||||||
|
|
||||||
$ids = split(",", db_escape_string($this->link, $_REQUEST["ids"]));
|
$ids = explode(",", db_escape_string($this->link, $_REQUEST["ids"]));
|
||||||
|
|
||||||
foreach ($ids as $id) {
|
foreach ($ids as $id) {
|
||||||
|
|
||||||
|
@ -1220,7 +1220,7 @@ class Pref_Feeds extends Handler_Protected {
|
||||||
}
|
}
|
||||||
|
|
||||||
function categorize() {
|
function categorize() {
|
||||||
$ids = split(",", db_escape_string($this->link, $_REQUEST["ids"]));
|
$ids = explode(",", db_escape_string($this->link, $_REQUEST["ids"]));
|
||||||
|
|
||||||
$cat_id = db_escape_string($this->link, $_REQUEST["cat_id"]);
|
$cat_id = db_escape_string($this->link, $_REQUEST["cat_id"]);
|
||||||
|
|
||||||
|
@ -1244,7 +1244,7 @@ class Pref_Feeds extends Handler_Protected {
|
||||||
}
|
}
|
||||||
|
|
||||||
function removeCat() {
|
function removeCat() {
|
||||||
$ids = split(",", db_escape_string($this->link, $_REQUEST["ids"]));
|
$ids = explode(",", db_escape_string($this->link, $_REQUEST["ids"]));
|
||||||
foreach ($ids as $id) {
|
foreach ($ids as $id) {
|
||||||
$this->remove_feed_category($this->link, $id, $_SESSION["uid"]);
|
$this->remove_feed_category($this->link, $id, $_SESSION["uid"]);
|
||||||
}
|
}
|
||||||
|
|
|
@ -482,7 +482,7 @@ class Pref_Filters extends Handler_Protected {
|
||||||
|
|
||||||
function remove() {
|
function remove() {
|
||||||
|
|
||||||
$ids = split(",", db_escape_string($this->link, $_REQUEST["ids"]));
|
$ids = explode(",", db_escape_string($this->link, $_REQUEST["ids"]));
|
||||||
|
|
||||||
foreach ($ids as $id) {
|
foreach ($ids as $id) {
|
||||||
db_query($this->link, "DELETE FROM ttrss_filters2 WHERE id = '$id' AND owner_uid = ". $_SESSION["uid"]);
|
db_query($this->link, "DELETE FROM ttrss_filters2 WHERE id = '$id' AND owner_uid = ". $_SESSION["uid"]);
|
||||||
|
|
|
@ -119,7 +119,7 @@ class Pref_Labels extends Handler_Protected {
|
||||||
|
|
||||||
function colorset() {
|
function colorset() {
|
||||||
$kind = db_escape_string($this->link, $_REQUEST["kind"]);
|
$kind = db_escape_string($this->link, $_REQUEST["kind"]);
|
||||||
$ids = split(',', db_escape_string($this->link, $_REQUEST["ids"]));
|
$ids = explode(',', db_escape_string($this->link, $_REQUEST["ids"]));
|
||||||
$color = db_escape_string($this->link, $_REQUEST["color"]);
|
$color = db_escape_string($this->link, $_REQUEST["color"]);
|
||||||
$fg = db_escape_string($this->link, $_REQUEST["fg"]);
|
$fg = db_escape_string($this->link, $_REQUEST["fg"]);
|
||||||
$bg = db_escape_string($this->link, $_REQUEST["bg"]);
|
$bg = db_escape_string($this->link, $_REQUEST["bg"]);
|
||||||
|
@ -149,7 +149,7 @@ class Pref_Labels extends Handler_Protected {
|
||||||
}
|
}
|
||||||
|
|
||||||
function colorreset() {
|
function colorreset() {
|
||||||
$ids = split(',', db_escape_string($this->link, $_REQUEST["ids"]));
|
$ids = explode(',', db_escape_string($this->link, $_REQUEST["ids"]));
|
||||||
|
|
||||||
foreach ($ids as $id) {
|
foreach ($ids as $id) {
|
||||||
db_query($this->link, "UPDATE ttrss_labels2 SET
|
db_query($this->link, "UPDATE ttrss_labels2 SET
|
||||||
|
@ -213,7 +213,7 @@ class Pref_Labels extends Handler_Protected {
|
||||||
|
|
||||||
function remove() {
|
function remove() {
|
||||||
|
|
||||||
$ids = split(",", db_escape_string($this->link, $_REQUEST["ids"]));
|
$ids = explode(",", db_escape_string($this->link, $_REQUEST["ids"]));
|
||||||
|
|
||||||
foreach ($ids as $id) {
|
foreach ($ids as $id) {
|
||||||
label_remove($this->link, $id, $_SESSION["uid"]);
|
label_remove($this->link, $id, $_SESSION["uid"]);
|
||||||
|
|
|
@ -202,7 +202,7 @@ class Pref_Users extends Handler_Protected {
|
||||||
}
|
}
|
||||||
|
|
||||||
function remove() {
|
function remove() {
|
||||||
$ids = split(",", db_escape_string($this->link, $_REQUEST["ids"]));
|
$ids = explode(",", db_escape_string($this->link, $_REQUEST["ids"]));
|
||||||
|
|
||||||
foreach ($ids as $id) {
|
foreach ($ids as $id) {
|
||||||
if ($id != $_SESSION["uid"] && $id != 1) {
|
if ($id != $_SESSION["uid"] && $id != 1) {
|
||||||
|
@ -367,7 +367,7 @@ class Pref_Users extends Handler_Protected {
|
||||||
|
|
||||||
if ($user_search) {
|
if ($user_search) {
|
||||||
|
|
||||||
$user_search = split(" ", $user_search);
|
$user_search = explode(" ", $user_search);
|
||||||
$tokens = array();
|
$tokens = array();
|
||||||
|
|
||||||
foreach ($user_search as $token) {
|
foreach ($user_search as $token) {
|
||||||
|
|
Loading…
Reference in New Issue