This commit is contained in:
2017-06-24 00:58:56 +03:00
commit 315d1fded7
2331 changed files with 296580 additions and 0 deletions
.gitignore.htaccessREADME.md
admin
.htaccessadmin.favicon.icoadmin.phpblocks.phpbrowser.phpdbsettings.phpdocs.phpfields.phpfinder.php
functions
groups.phpindex.phpinit.php
lang
logs.phpmodules.phpnavigation.phprequest.phprubs.phpsettings.phpstart.phpsysblocks.phptemplates.php
templates
blocks
browser
css
dbactions
documents
error.tpl
finder
fonts
groups
images
IconHome.gifNavBg.pngaccordion_off.pngaccordion_on.pngadd.pngalertOpacityOverlay.pngarrow.gif
backgrounds
blanc.gifchevron.gifchosen-sprite.pngchosen-sprite@2x.pngclippy.svgdarkBg.jpgdarkBg.png
fancybox
file.giffolder.giffolder_up.gif
forms
icons
jquery_ui
leftNavBg.pngleftNavSub.pngleft_menu_show.pnglevel.pngloader2.gifloader3.gifloading.gifloginLogo.pnglogosmall.png
mediapool
middlebg.pngnav_level_2.gifnav_level_3.gifnumberTop.pngref.pngsearchSmall.pngsprites.gifsprites_doc.pngtable_level.pngtabsSep.pngtipsy.giftitleBg.pngtopNav.jpgui.totop.png
ui
upload.png
uploader
user.pnguserPic.pngwidgetBg.png
js
login.tpllogin_scripts.tpl
logs
main.tpl
modules
navi
navigation
noperm.tplonlycontent.tplpop.tpl
request
rubs
scripts.tpl
settings
start.tpl
sysblocks
templates
user
user.php
backup
cache
class
fields
.htaccess
checkbox
code
date
doc_from_rub
doc_from_rub_check
doc_from_rub_search
download
drop_down
drop_down_key
flash
image_mega
image_multi
image_multi_new_3inputs
image_single
link
multi_checkbox
multi_line
multi_line_simple
multi_line_slim
multi_list
multi_list_single
multi_list_triple
multi_select
single_line
single_line_numeric
teasers
text_to_image
youtube
functions
inc
index.php
install
lib
Smarty
.htaccessConfig_File.class.phpSmarty.class.phpSmarty_Compiler.class.phpdebug.tpl
internals
plugins
StripTagsSmart
SwiftMailer
classes
Swift.php
Swift
Attachment.php
ByteStream
CharacterReader.php
CharacterReader
CharacterReaderFactory.php
CharacterReaderFactory
CharacterStream.php
CharacterStream
ConfigurableSpool.phpDependencyContainer.phpDependencyException.phpEmbeddedFile.phpEncoder.php
Encoder
Encoding.php
Events
FailoverTransport.phpFileSpool.phpFileStream.phpFilterable.phpImage.phpInputByteStream.phpIoException.phpKeyCache.php
KeyCache
LoadBalancedTransport.phpMailTransport.phpMailer.php
Mailer
MemorySpool.phpMessage.php
Mime
MimePart.phpNullTransport.phpOutputByteStream.php
Plugins
Preferences.phpReplacementFilterFactory.phpRfcComplianceException.phpSendmailTransport.phpSignedMessage.phpSigner.php
Signers
SmtpTransport.phpSpool.phpSpoolTransport.phpStreamFilter.php
StreamFilters
SwiftException.phpTransport.php
Transport
TransportException.phpValidate.php
dependency_maps
mime_types.phppreferences.phpswift_init.phpswift_required.phpswift_required_pear.phpswiftmailer_generate_mimes_config.phpversion.txt
bootstrap
combine
flags
ad.pngae.pngaf.pngag.pngai.pngal.pngam.pngan.pngao.pngar.pngas.pngat.pngau.pngaw.pngax.pngaz.pngba.pngbb.pngbd.pngbe.pngbf.pngbg.pngbh.pngbi.pngbj.pngbm.pngbn.pngbo.pngbr.pngbs.pngbt.pngbv.pngbw.pngby.pngbz.pngca.pngcatalonia.pngcc.pngcd.pngcf.pngcg.pngch.pngci.pngck.pngcl.pngcm.pngcn.pngco.pngcr.pngcs.pngcu.pngcv.pngcx.pngcy.pngcz.pngde.pngdj.pngdk.pngdm.pngdo.pngdz.pngec.pngee.pngeg.pngeh.pngen.pngengland.pnger.pnges.pnget.pngeu.pngfam.pngfi.pngfj.pngfk.pngfm.pngfo.pngfr.pngga.pnggb.pnggd.pngge.pnggf.pnggh.pnggi.pnggl.pnggm.pnggn.pnggp.pnggq.pnggr.pnggs.pnggt.pnggu.pnggw.pnggy.pnghk.pnghm.pnghn.pnghr.pnght.pnghu.pngid.pngie.pngil.pngin.pngio.pngiq.pngir.pngis.pngit.pngjm.pngjo.pngjp.pngke.pngkg.pngkh.pngki.pngkm.pngkn.pngkp.pngkr.pngkw.pngky.pngkz.pngla.pnglb.pnglc.pngli.pnglk.pnglr.pngls.pnglt.pnglu.pnglv.pngly.pngma.pngmc.pngmd.pngme.pngmg.pngmh.pngmk.pngml.pngmm.pngmn.pngmo.pngmp.pngmq.pngmr.pngms.pngmt.pngmu.pngmv.pngmw.pngmx.pngmy.pngmz.pngna.pngnc.pngne.pngnf.pngng.pngni.pngnl.pngno.pngnp.pngnr.pngnu.pngnz.pngom.pngpa.pngpe.pngpf.pngpg.pngph.pngpk.pngpl.pngpm.pngpn.pngpr.pngps.pngpt.pngpw.pngpy.pngqa.pngre.pngro.pngrs.pngru.pngrw.pngsa.pngsb.pngsc.pngscotland.pngsd.pngse.pngsg.pngsh.pngsi.pngsj.pngsk.pngsl.pngsm.pngsn.pngso.pngsp.pngsr.pngst.pngsv.pngsy.pngsz.pngtc.pngtd.pngtf.pngtg.pngth.pngtj.pngtk.pngtl.pngtm.pngtn.pngto.pngtr.pngtt.pngtv.pngtw.pngtz.pngua.pngug.pngum.pnguy.pnguz.pngva.pngvc.pngve.pngvg.pngvi.pngvn.pngvu.pngwales.pngwf.pngws.pngye.pngyt.pngza.pngzm.pngzw.png
kcaptcha
mobile_detect
redactor
ckeditor
.htaccess
adapters
block.jsckeditor.jsconfig.default.jsconfig.jscontents.css
lang
plugins
a11yhelp
about
clipboard
dialogs
codemirror
css
icons
js
lang
plugin.js
theme
colordialog
copyformatting
dialog
div
dialogs
find
dialogs
flash
forms
icons.pngicons_hidpi.png
iframe
image
dialogs
images
link
liststyle
magicline
pagebreak
pastefromword
placeholder
preview
savedocs
scayt
showblocks
smiley
specialchar
table
dialogs
tabletools
templates
wsc
skins
styles.jssysblock.js
codemirror
addon
codemirror_connect.tplcodemirror_editor.tplconfig.jsconfig_css.jsfunctions.jsindex.php
lib
mode
theme
elfinder
css
img
inc
js
sounds
elrte
scripts
translate
license.txt
modules
robots.txt
session
templates
uploads

@ -0,0 +1,79 @@
<?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* create full directory structure
*
* @param string $dir
*/
// $dir
function smarty_core_create_dir_structure($params, &$smarty)
{
if (!file_exists($params['dir'])) {
$_open_basedir_ini = ini_get('open_basedir');
if (DIRECTORY_SEPARATOR=='/') {
/* unix-style paths */
$_dir = $params['dir'];
$_dir_parts = preg_split('!/+!', $_dir, -1, PREG_SPLIT_NO_EMPTY);
$_new_dir = (substr($_dir, 0, 1)=='/') ? '/' : getcwd().'/';
if($_use_open_basedir = !empty($_open_basedir_ini)) {
$_open_basedirs = explode(':', $_open_basedir_ini);
}
} else {
/* other-style paths */
$_dir = str_replace('\\','/', $params['dir']);
$_dir_parts = preg_split('!/+!', $_dir, -1, PREG_SPLIT_NO_EMPTY);
if (preg_match('!^((//)|([a-zA-Z]:/))!', $_dir, $_root_dir)) {
/* leading "//" for network volume, or "[letter]:/" for full path */
$_new_dir = $_root_dir[1];
/* remove drive-letter from _dir_parts */
if (isset($_root_dir[3])) array_shift($_dir_parts);
} else {
$_new_dir = str_replace('\\', '/', getcwd()).'/';
}
if($_use_open_basedir = !empty($_open_basedir_ini)) {
$_open_basedirs = explode(';', str_replace('\\', '/', $_open_basedir_ini));
}
}
/* all paths use "/" only from here */
foreach ($_dir_parts as $_dir_part) {
$_new_dir .= $_dir_part;
if ($_use_open_basedir) {
// do not attempt to test or make directories outside of open_basedir
$_make_new_dir = false;
foreach ($_open_basedirs as $_open_basedir) {
if (substr($_new_dir, 0, strlen($_open_basedir)) == $_open_basedir) {
$_make_new_dir = true;
break;
}
}
} else {
$_make_new_dir = true;
}
if ($_make_new_dir && !file_exists($_new_dir) && !@mkdir($_new_dir, $smarty->_dir_perms) && !is_dir($_new_dir)) {
$smarty->trigger_error("problem creating directory '" . $_new_dir . "'");
return false;
}
$_new_dir .= '/';
}
}
}
/* vim: set expandtab: */
?>