Skip to content

Commit

Permalink
* First release : enjoy !
Browse files Browse the repository at this point in the history
  • Loading branch information
SedLex committed Jul 29, 2014
1 parent 025ed4e commit 4a47f28
Show file tree
Hide file tree
Showing 148 changed files with 24,824 additions and 0 deletions.
1,666 changes: 1,666 additions & 0 deletions core.class.php

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions core.nfo
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
5b5e6076511a221de1da7a502d5e06093640a7d8#20140729093932
61 changes: 61 additions & 0 deletions core.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
<?php
/**
* Core SedLex Plugin Bootstrap
* VersionInclude : 4.0
*/

/* Prevent direct access to this file */
if (!defined('ABSPATH')) {
exit("Sorry, you are not allowed to access this file directly.");
}

$url = "" ;

if (!class_exists('pluginSedLex')) {
$folders = scandir(WP_PLUGIN_DIR) ;
$date = 0 ;
foreach ($folders as $f) {
if ($f != "." && $f != "..") {
if (is_dir(WP_PLUGIN_DIR."/".$f)) {
if (is_file(WP_PLUGIN_DIR."/".$f."/core.nfo")) {
if (is_file(WP_PLUGIN_DIR."/".$f."/core.class.php")) {
$info = explode("#",file_get_contents(WP_PLUGIN_DIR."/".$f."/core.nfo")) ;
// We get the max (< 0 if str1 is less than str2)
if (strcmp($date, $info[1])<0) {
$date = $info[1] ;
$url = WP_PLUGIN_DIR."/".$f."/" ;
}
}
}
}
}
}

$files = array() ;

$files[] = $url.'core.php' ;

$files[] = $url.'core.class.php' ;
$files[] = $url.'core/admin_table.class.php';
$files[] = $url.'core/tabs.class.php' ;
$files[] = $url.'core/box.class.php' ;
$files[] = $url.'core/browser.class.php' ;
$files[] = $url.'core/debug.class.php' ;
$files[] = $url.'core/feedback.class.php' ;
$files[] = $url.'core/otherplugins.class.php' ;
$files[] = $url.'core/parameters.class.php' ;
$files[] = $url.'core/popup.class.php' ;
$files[] = $url.'core/progress_bar.class.php';
$files[] = $url.'core/translation.class.php';
$files[] = $url.'core/text_diff.class.php' ;
$files[] = $url.'core/tree.class.php';
$files[] = $url.'core/utils.class.php' ;

foreach ($files as $f) {
if (file_exists($f)) {
require_once($f) ;
}
}
}

?>
Loading

0 comments on commit 4a47f28

Please sign in to comment.