Don't have permission to access /admin/edituserplug.php OR /admin/editconent.php
Posted: Tue Jun 19, 2007 2:24 pm
I'm trying to add a simple db insert. I've tried using {php} {/php} and adding it directly to the "edit content" box.
Using this I get the permission denied to editcontent.php.
I tried adding it as a user defined tag and I get permission denied to edituserplugin.php.
It will let me save normally UNTIL I add the SQL insert statement.
So if I add:
$con = mysql_connect("******","******","******");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("dbName", $con);
I can save the file.
If I add:
$con = mysql_connect("******","******","******");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("dbName", $con);
mysql_query("INSERT INTO tableName (field1, field2, field3)
VALUES ('Peter', 'Griffin', '35')");
I get the permission denied errors.
I've used the EXACT SAME sql statement on a different cmsms install and it works fine. (v1.06 for both)
I've updated my config.php $config['use_smarty_php_tags'] = true;
I've tried chmodding to 777 and 755 (read that in another post)
The installation it WORKS on is a Windows Server. The installation it DOES NOT work on a Linux Server.
Using this I get the permission denied to editcontent.php.
I tried adding it as a user defined tag and I get permission denied to edituserplugin.php.
It will let me save normally UNTIL I add the SQL insert statement.
So if I add:
$con = mysql_connect("******","******","******");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("dbName", $con);
I can save the file.
If I add:
$con = mysql_connect("******","******","******");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("dbName", $con);
mysql_query("INSERT INTO tableName (field1, field2, field3)
VALUES ('Peter', 'Griffin', '35')");
I get the permission denied errors.
I've used the EXACT SAME sql statement on a different cmsms install and it works fine. (v1.06 for both)
I've updated my config.php $config['use_smarty_php_tags'] = true;
I've tried chmodding to 777 and 755 (read that in another post)
The installation it WORKS on is a Windows Server. The installation it DOES NOT work on a Linux Server.