I agree.
It annoys me that so many permissions are assumed when "is Super Moderator" is set for a usergroup. It does SO much more than "Can Moderate All Forums". It...
Announcement
Collapse
No announcement yet.
User Profile
Collapse
Profile Sidebar
Collapse

Mark Hensler
Senior Member
Last Activity: Mon 25 Oct '10, 8:46am
Joined: Mon 19 Feb '01
-
-
What line is that error on?
Is it on the addslashes() line, or further down?
Leave a comment:
-
If you need to execute it only once. Use SSH, or if you don't have a SSH account, use Telnet.
If you need this to run every X, then throw that into a cron job.
Leave a comment:
-
-
not tested...
PHP Code:$text = preg_replace ("#(.*?)[^>]$#i", "\\\\1<br />\n", $text);
Leave a comment:
-
PHP Code:$result = "SELECT catgroup FROM tutorials WHERE id=32";
mysql_query($result);
extract(mysql_fetch_array($result, MYSQL_ASSOC));
print $catgroup;
Leave a comment:
-
lol....
That was my comment what the line does. It checks the value of $action.
see..
PHP Code:switch ($action) { // what is the value of $action?
Leave a comment:
-
So the adding works, but not the subtracting? hmm... odd. try doing this...
one=(one - 1)
I don't think it should make a difference, but......
Leave a comment:
-
Your updating that record the hard way. Try this..
PHP Code:$query = "UPDATE tutorial_amount SET ";
switch($category) {
case 1: $query .= "one=one+1"; break;
Leave a comment:
-
/me slaps self
Sorry, forgot.
I've answered this question before so I tried to search for those threads. I couldn't find them.
Play with the above code for a while....
Leave a comment:
-
-
-
PHP Code:// HYPERLINKS \[url="http://xxx"\]yyy\[/url\]
$string = preg_replace("#\\[url="(ftp://|https://|http://|mailto:)(.*)"\\](.*)\\[/url\\]#U","<a
Leave a comment:
-
Alright, view() seems to be printing rather than returning the string. We'll have to capture that...
PHP Code:// put in phpinclude
require("$DOCUMENT_ROOT/adserver/config.inc.php3");
Leave a comment:
-
PHP Code:// blah blah blah
if (!mysql_query($query)) {
echo "QUERY ERROR: " . mysql_error() . "\n";
}
Leave a comment:
-
PHP Code:require("$DOCUMENT_ROOT/adserver/config.inc.php3");
require("$DOCUMENT_ROOT/adserver/view.inc.php3");
$showads = eval("return view('468x60','keyword');");
Leave a comment:
-
Why does this script require *.phtml files?
I'm having a hard time understanding that.
Leave a comment:
-
thx, Conscience
Even better would be to use an array. Then he could just....
$number[$category]++;
one liner
Leave a comment:
-
and try using a switch(), it's cleaner..
PHP Code:switch ($category) {
case 1: $one++; break;
case 2: $two++; break;
case 3: $three++; break;
Leave a comment:
No activity results to display
Show More
Leave a comment: