source: trunk/plugins/LocalFilesEditor/include/plug.inc.php @ 10348

Revision 10348, 516 bytes checked in by patdenice, 9 years ago (diff)

Clean code

Line 
1<?php
2
3if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
4
5$edited_file = PHPWG_PLUGINS_PATH . "PersonalPlugin/main.inc.php";
6
7if (file_exists($edited_file))
8{
9  $content_file = file_get_contents($edited_file);
10}
11else
12{
13  $content_file = "<?php\n/*
14Plugin Name: " . l10n('locfiledit_onglet_plug') . "
15Version: 1.0
16Description: " . l10n('locfiledit_onglet_plug') . "
17Plugin URI: http://piwigo.org
18Author:
19Author URI:
20*/\n\n\n\n\n?>";
21}
22
23$codemirror_mode = 'application/x-httpd-php';
24
25?>
Note: See TracBrowser for help on using the repository browser.