aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/LocalFilesEditor/include/plug.inc.php
diff options
context:
space:
mode:
authorpatdenice <patdenice@piwigo.org>2011-04-13 10:36:53 +0000
committerpatdenice <patdenice@piwigo.org>2011-04-13 10:36:53 +0000
commitd2da26e467aec1347ae7c314c4c8279cb4618c34 (patch)
tree62593399f01a303f03608d910a98cce98cc8b664 /plugins/LocalFilesEditor/include/plug.inc.php
parentc01d0c1790613fd73efc3c78d0c12debdfb1cbc7 (diff)
Clean code
git-svn-id: http://piwigo.org/svn/trunk@10348 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--plugins/LocalFilesEditor/include/plug.inc.php25
1 files changed, 25 insertions, 0 deletions
diff --git a/plugins/LocalFilesEditor/include/plug.inc.php b/plugins/LocalFilesEditor/include/plug.inc.php
new file mode 100644
index 000000000..55c4b2dde
--- /dev/null
+++ b/plugins/LocalFilesEditor/include/plug.inc.php
@@ -0,0 +1,25 @@
+<?php
+
+if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
+
+$edited_file = PHPWG_PLUGINS_PATH . "PersonalPlugin/main.inc.php";
+
+if (file_exists($edited_file))
+{
+ $content_file = file_get_contents($edited_file);
+}
+else
+{
+ $content_file = "<?php\n/*
+Plugin Name: " . l10n('locfiledit_onglet_plug') . "
+Version: 1.0
+Description: " . l10n('locfiledit_onglet_plug') . "
+Plugin URI: http://piwigo.org
+Author:
+Author URI:
+*/\n\n\n\n\n?>";
+}
+
+$codemirror_mode = 'application/x-httpd-php';
+
+?> \ No newline at end of file