Improves uploader
This commit is contained in:
parent
93169c8ffe
commit
8a24ac90e5
19
install.php
19
install.php
|
@ -282,6 +282,14 @@ function install($adminPassword, $email, $timezoneOffset)
|
||||||
'status'=>'published',
|
'status'=>'published',
|
||||||
'date'=>$currentDate,
|
'date'=>$currentDate,
|
||||||
'position'=>0
|
'position'=>0
|
||||||
|
),
|
||||||
|
'about'=>array(
|
||||||
|
'description'=>$Language->get('About your site or yourself'),
|
||||||
|
'username'=>'admin',
|
||||||
|
'tags'=>array(),
|
||||||
|
'status'=>'published',
|
||||||
|
'date'=>$currentDate,
|
||||||
|
'position'=>1
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -290,7 +298,7 @@ function install($adminPassword, $email, $timezoneOffset)
|
||||||
// File posts.php
|
// File posts.php
|
||||||
$data = array(
|
$data = array(
|
||||||
$firstPostSlug=>array(
|
$firstPostSlug=>array(
|
||||||
'description'=>'Welcome to Bludit',
|
'description'=>$Language->get('Welcome to Bludit'),
|
||||||
'username'=>'admin',
|
'username'=>'admin',
|
||||||
'status'=>'published',
|
'status'=>'published',
|
||||||
'tags'=>array('bludit'=>'Bludit','cms'=>'CMS','flat-files'=>'Flat files'),
|
'tags'=>array('bludit'=>'Bludit','cms'=>'CMS','flat-files'=>'Flat files'),
|
||||||
|
@ -394,7 +402,7 @@ function install($adminPassword, $email, $timezoneOffset)
|
||||||
array(
|
array(
|
||||||
'position'=>0,
|
'position'=>0,
|
||||||
'label'=>$Language->get('About'),
|
'label'=>$Language->get('About'),
|
||||||
'text'=>$Language->get('this-is-a-brief-description-of-yourself-our-your-blog')
|
'text'=>$Language->get('this-is-a-brief-description-of-yourself-our-your-site')
|
||||||
),
|
),
|
||||||
JSON_PRETTY_PRINT),
|
JSON_PRETTY_PRINT),
|
||||||
LOCK_EX
|
LOCK_EX
|
||||||
|
@ -427,13 +435,16 @@ function install($adminPassword, $email, $timezoneOffset)
|
||||||
|
|
||||||
// File index.txt for error page
|
// File index.txt for error page
|
||||||
$data = 'Title: '.$Language->get('Error').'
|
$data = 'Title: '.$Language->get('Error').'
|
||||||
Content: '.$Language->get('The page has not been found');
|
Content: '.$Language->get('The page has not been found');
|
||||||
|
|
||||||
file_put_contents(PATH_PAGES.'error'.DS.'index.txt', $data, LOCK_EX);
|
file_put_contents(PATH_PAGES.'error'.DS.'index.txt', $data, LOCK_EX);
|
||||||
|
|
||||||
// File index.txt for about page
|
// File index.txt for about page
|
||||||
$data = 'Title: '.$Language->get('About').'
|
$data = 'Title: '.$Language->get('About').'
|
||||||
Content: ';
|
Content:
|
||||||
|
'.$Language->get('the-about-page-is-very-important').'
|
||||||
|
|
||||||
|
'.$Language->get('change-this-pages-content-on-the-admin-panel');
|
||||||
|
|
||||||
file_put_contents(PATH_PAGES.'about'.DS.'index.txt', $data, LOCK_EX);
|
file_put_contents(PATH_PAGES.'about'.DS.'index.txt', $data, LOCK_EX);
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,10 @@
|
||||||
header('Content-Type: application/json');
|
header('Content-Type: application/json');
|
||||||
|
|
||||||
// Type
|
// Type
|
||||||
$type = Sanitize::html($_POST['type']);
|
$type = 'other';
|
||||||
|
if(!empty($_POST['type'])) {
|
||||||
|
$type = Sanitize::html($_POST['type']);
|
||||||
|
}
|
||||||
|
|
||||||
// Source
|
// Source
|
||||||
$source = $_FILES['files']['tmp_name'][0];
|
$source = $_FILES['files']['tmp_name'][0];
|
||||||
|
|
|
@ -208,6 +208,10 @@
|
||||||
"date-format": "Date format",
|
"date-format": "Date format",
|
||||||
"time-format": "Time format",
|
"time-format": "Time format",
|
||||||
"chat-with-developers-and-users-on-gitter":"Chat with developers and users on [Gitter](https://gitter.im/dignajar/bludit)",
|
"chat-with-developers-and-users-on-gitter":"Chat with developers and users on [Gitter](https://gitter.im/dignajar/bludit)",
|
||||||
"this-is-a-brief-description-of-yourself-our-your-blog":"This is a brief description of yourself or your blog, to change this text go to the admin panel, settings, plugins, and configure the plugin about.",
|
"this-is-a-brief-description-of-yourself-our-your-site":"This is a brief description of yourself or your site, to change this text go to the admin panel, settings, plugins, and configure the plugin about.",
|
||||||
"profile-picture": "Profile picture"
|
"profile-picture": "Profile picture",
|
||||||
|
"the-about-page-is-very-important": "The about page is an important and powerful tool for potential clients and partners. For those who wonder who is behind the website, your About page is the first source of information.",
|
||||||
|
"change-this-pages-content-on-the-admin-panel": "Change this page's content on the admin panel, manage, pages and click on the about page.",
|
||||||
|
"about-your-site-or-yourself": "About your site or yourself",
|
||||||
|
"welcome-to-bludit": "Welcome to Bludit"
|
||||||
}
|
}
|
Loading…
Reference in New Issue