Don't have permission to access /admin/edituserplug.php OR /admin/editconent.php

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
milehigh

Don't have permission to access /admin/edituserplug.php OR /admin/editconent.php

Post by milehigh »

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.
Last edited by milehigh on Tue Jun 19, 2007 2:29 pm, edited 1 time in total.
Post Reply

Return to “CMSMS Core”