This commit is contained in:
Diatrex 2020-04-16 17:27:26 +03:00
commit 0949e86ba6
18 changed files with 130 additions and 26 deletions

69
INSTALL.md Normal file
View File

@ -0,0 +1,69 @@
# Installation
## Server Requirements
- PHP >= 7.2
- XML PHP Extension
- PDO PHP Extension
- cURL PHP Extension
- JSON PHP Extension
- Ctype PHP Extension
- BCMath PHP Extension
- SQLite PHP Extension
- OpenSSL PHP Extension
- Mbstring PHP Extension
- Fileinfo PHP Extension
- Tokenizer PHP Extension
- GD Library (>=2.0) **OR** Imagick PHP extension (>=6.5.7)
### Via Composer
> Do not create an `.env` file just yet - Installer will generate one for you.{.important}
```bash
composer create-project openclassify/openclassify
```
### Host Configuration
When you setup your web host be sure to point the web root to `public` directory. Just as you would a normal Laravel installation.
#### Alternate Directories for cPanel or Virtualmin
In some environments like cPanel or Virtualmin it may be difficult to use the `public` directory as the web root. In these cases we suggest symlinking the `public` directory to `public_html`:
```bash
ln -s public public_html
```
You may also simply rename the `public` directory to `public_html`. Path hints will automatically use the correct path.
### Directory Permissions
After installing, you may need to configure some permissions in order to proceed. Directories within the `storage`, `public/app`, and the `bootstrap/cache` directories should be writable by your web server. If you are using the [Homestead](http://laravel.com/docs/homestead) virtual machine, these permissions should already be set.
## Installing
### Running the Installation Wizard
After downloading and it's dependencies with:
```bash
composer install
```
you will need to install the software in order to get started.
By this time you should be able to visit your site's URL which will
redirect you to the installer: `http://yoursite.com/installer`
### Using the CLI Installer
```bash
php artisan install
```
You will be prompted for details in order to proceed with the installation process.

View File

@ -8,7 +8,7 @@ return [
'new_district' => 'Rrethi i Ri', 'new_district' => 'Rrethi i Ri',
'new_neighborhood' => 'Lagjja e re', 'new_neighborhood' => 'Lagjja e re',
'new_village' => 'Fshati i Ri', 'new_village' => 'Fshati i Ri',
'edit' => "Ndrysho", 'edit' => "Redakto",
'approve' => "Miratoj", 'approve' => "Miratoj",
'decline' => 'Anulo', 'decline' => 'Anulo',
'extend' => 'Shpreh', 'extend' => 'Shpreh',

View File

@ -140,15 +140,15 @@ return [
'send_message' => 'Dërgoni mesazh', 'send_message' => 'Dërgoni mesazh',
'phone_gsm' => 'Nr. Celular ', 'phone_gsm' => 'Nr. Celular ',
'phone_office' => 'Telefoni i zyres', 'phone_office' => 'Telefoni i zyres',
'add_to_favorites' => "Shto te të Preferuarat", 'add_to_favorites' => "Shto te të preferuarat",
'send' => 'Dërgo', 'send' => 'Dërgo',
'search_name' => 'Emri i Kërkimit', 'search_name' => 'Emri i Kërkimit',
'my_favorite_searches' => 'Kërkimet e Preferuara', 'my_favorite_searches' => 'Kërkimet e preferuara',
'search_desc' => 'Ju mund të shtoni dhe menaxhoni zgjedhjet tuaja të preferuara të kërkimit këtu.', 'search_desc' => 'Ju mund të shtoni dhe menaxhoni zgjedhjet tuaja të preferuara të kërkimit këtu.',
'complaint_placeholder' => 'Shkruaj detajet e ankesave këtu.', 'complaint_placeholder' => 'Shkruaj detajet e ankesave këtu.',
'show_details' => 'Trego detajet', 'show_details' => 'Trego detajet',
'ad_actions' => 'Veprimet e reklamave', 'ad_actions' => 'Veprimet e reklamave',
'edit' => 'redaktoj', 'edit' => 'Redakto',
'approve' => 'miratoj', 'approve' => 'miratoj',
'passive' => "pasiv", 'passive' => "pasiv",
'offered_by' => 'Ofrohet nga', 'offered_by' => 'Ofrohet nga',
@ -156,7 +156,7 @@ return [
'click_phone' => 'Trego numrin e telefonit', 'click_phone' => 'Trego numrin e telefonit',
'share' => 'pjesë', 'share' => 'pjesë',
'report' => 'Raporto këtë shpallje', 'report' => 'Raporto këtë shpallje',
'features' => 'Features', 'features' => 'Veçori',
"streetview" => "Pamja e rrugës", "streetview" => "Pamja e rrugës",
'recommended_ads' => 'Reklama të rekomanduara për ju', 'recommended_ads' => 'Reklama të rekomanduara për ju',
'new' => 'I ri', 'new' => 'I ri',
@ -168,7 +168,7 @@ return [
'give_a_call' => 'Bëni një telefonatë', 'give_a_call' => 'Bëni një telefonatë',
'message_sent' => 'Mesazhi u Dergua!', 'message_sent' => 'Mesazhi u Dergua!',
'asap' => 'Mesazhi i dërguar, shitësi do t\'ju kontaktojë po ashtu.', 'asap' => 'Mesazhi i dërguar, shitësi do t\'ju kontaktojë po ashtu.',
'ad_id' => 'Id Id', 'ad_id' => 'Nr. Njoftime',
'contact_with' => 'Kontaktoni me', 'contact_with' => 'Kontaktoni me',
'create_adv' => 'Krijoni shpalljen', 'create_adv' => 'Krijoni shpalljen',
'edit_adv' => 'Ndrysho shpalljen', 'edit_adv' => 'Ndrysho shpalljen',
@ -255,13 +255,13 @@ return [
'name' => 'Reklama me foto' 'name' => 'Reklama me foto'
], ],
'ads_with_video' => [ 'ads_with_video' => [
'name' => 'Reklama me video' 'name' => 'Njoftime me video'
], ],
'yes' => [ 'yes' => [
'name' => 'po' 'name' => 'po'
], ],
"no_location" => "Asnjë vendndodhje nuk është zgjedhur.", "no_location" => "Asnjë vendndodhje nuk është zgjedhur.",
"continue" => 'vazhdoj', "continue" => 'Vazhdoj',
"gallery" => 'Galeri', "gallery" => 'Galeri',
// Pending screen // Pending screen

View File

@ -5,7 +5,7 @@ return [
'name' => 'Ads', 'name' => 'Ads',
'option' => [ 'option' => [
'read' => 'Mund të lexoni reklama?', 'read' => 'Mund të lexoni reklama?',
'write' => 'Mund të krijoni / modifikoni reklama?', 'write' => 'Mund të krijoni / modifikoni njoftime?',
'delete' => 'Mund të fshini reklamat?', 'delete' => 'Mund të fshini reklamat?',
], ],
], ],
@ -37,7 +37,7 @@ return [
'name' => 'Reklama me terren personal', 'name' => 'Reklama me terren personal',
'option' => [ 'option' => [
'read' => 'Mund të lexoni reklama në terren me porosi?', 'read' => 'Mund të lexoni reklama në terren me porosi?',
'write' => 'Mund të krijoni / modifikoni reklama me terren personal?', 'write' => 'Mund të krijoni / modifikoni njoftime me terren personal?',
'delete' => 'Mund të fshini reklamat e fushave me porosi?', 'delete' => 'Mund të fshini reklamat e fushave me porosi?',
], ],
], ],

View File

@ -56,7 +56,6 @@
</h5> </h5>
</div> </div>
<div id="dateContainer" class="collapse show overflow-auto" aria-labelledby="dateHeading" <div id="dateContainer" class="collapse show overflow-auto" aria-labelledby="dateHeading"
data-parent="#filter"
style="max-height: 300px;"> style="max-height: 300px;">
<div class="d-flex flex-column p-3 m-0"> <div class="d-flex flex-column p-3 m-0">
<div class="form-check py-1"> <div class="form-check py-1">
@ -110,7 +109,6 @@
</h5> </h5>
</div> </div>
<div id="mediaContainer" class="collapse show overflow-auto" aria-labelledby="mediaHeading" <div id="mediaContainer" class="collapse show overflow-auto" aria-labelledby="mediaHeading"
data-parent="#filter"
style="max-height: 300px;"> style="max-height: 300px;">
<div class="d-flex p-3 m-0 flex-column"> <div class="d-flex p-3 m-0 flex-column">
<div class="form-check py-1"> <div class="form-check py-1">
@ -153,7 +151,6 @@
</h5> </h5>
</div> </div>
<div id="mapContainer" class="collapse show overflow-auto" aria-labelledby="mapHeading" <div id="mapContainer" class="collapse show overflow-auto" aria-labelledby="mapHeading"
data-parent="#filter"
style="max-height: 300px;"> style="max-height: 300px;">
<div class="row p-3 m-0"> <div class="row p-3 m-0">
<div class="form-check py-1"> <div class="form-check py-1">

View File

@ -3,3 +3,15 @@
// Go! // Go!
})(window, document); })(window, document);
function crud(params, url, type, callback) {
$.ajax({
type: type,
async: false,
data: params,
url: url,
success: function (response) {
callback(response);
},
});
}

View File

@ -2,7 +2,7 @@
return [ return [
'title' => 'Burime të dobishme', 'title' => 'Burime të dobishme',
'description' => 'Gjeni ndihmë dhe zbuloni tipare me këto burime të dobishme.', 'description' => 'Gjeni ndihmë dhe zbuloni veçorit me këto burime të dobishme.',
'documentation_link' => 'Dokumentacioni i OpenClassify', 'documentation_link' => 'Dokumentacioni i OpenClassify',
'documentation_description' => 'Gjeni dokumentacionin për OpenClassify, zhvillimin e shtesave dhe përdorimin e shtesave gjithashtu.', 'documentation_description' => 'Gjeni dokumentacionin për OpenClassify, zhvillimin e shtesave dhe përdorimin e shtesave gjithashtu.',
'slack_link' => 'Skuadër e ngathët', 'slack_link' => 'Skuadër e ngathët',

View File

@ -29,5 +29,7 @@ return [
'empty_password_sms_message' => 'نظرًا لمشاكل الأمان ، قمنا بتغيير كلمة المرور الخاصة بك! كلمة المرور الجديدة:', 'empty_password_sms_message' => 'نظرًا لمشاكل الأمان ، قمنا بتغيير كلمة المرور الخاصة بك! كلمة المرور الجديدة:',
// Forgot Password // Forgot Password
'email_phone_not_found' => 'البريد الإلكتروني ، رقم الهاتف غير صحيح!' 'email_phone_not_found' => 'البريد الإلكتروني ، رقم الهاتف غير صحيح!',
'disable_account' => 'Do you want to close your account? This operation cannot be undone.',
]; ];

View File

@ -30,5 +30,7 @@ return [
'empty_password_sms_message' => 'Aus Sicherheitsgründen haben wir Ihr Passwort geändert! Dein neues Passwort ist:', 'empty_password_sms_message' => 'Aus Sicherheitsgründen haben wir Ihr Passwort geändert! Dein neues Passwort ist:',
// Forgot Password // Forgot Password
'email_phone_not_found' => 'Die E-Mail, Telefonnummer ist nicht korrekt!' 'email_phone_not_found' => 'Die E-Mail, Telefonnummer ist nicht korrekt!',
'disable_account' => 'Do you want to close your account? This operation cannot be undone.',
]; ];

View File

@ -29,5 +29,7 @@ return [
'empty_password_sms_message' => 'Due to security issues, we changed your password! Your new password is:', 'empty_password_sms_message' => 'Due to security issues, we changed your password! Your new password is:',
// Forgot Password // Forgot Password
'email_phone_not_found' => 'The E-mail, Phone Number is not correct!' 'email_phone_not_found' => 'The E-mail, Phone Number is not correct!',
'disable_account' => 'Do you want to close your account? This operation cannot be undone.',
]; ];

View File

@ -32,5 +32,7 @@ return [
'empty_password_sms_message' => 'Из-за проблем безопасности мы изменили ваш пароль! Ваш новый пароль:', 'empty_password_sms_message' => 'Из-за проблем безопасности мы изменили ваш пароль! Ваш новый пароль:',
// Forgot Password // Forgot Password
'email_phone_not_found' => 'E-mail, номер телефона неверен!' 'email_phone_not_found' => 'E-mail, номер телефона неверен!',
'disable_account' => 'Do you want to close your account? This operation cannot be undone.',
]; ];

View File

@ -9,7 +9,7 @@ return [
'delete' => 'Fshini', 'delete' => 'Fshini',
'extend' => 'Shpreh', 'extend' => 'Shpreh',
'extend_all' => 'Zgjeroni të gjitha', 'extend_all' => 'Zgjeroni të gjitha',
'edit' => 'Ndrysho', 'edit' => 'Redakto',
'go_profile' => 'Shkoni në Detajin e Profilit', 'go_profile' => 'Shkoni në Detajin e Profilit',
'go_user' => 'Shkoni te Detajet e përdoruesit', 'go_user' => 'Shkoni te Detajet e përdoruesit',
]; ];

View File

@ -117,7 +117,7 @@ return [
'name' => 'Krijoj' 'name' => 'Krijoj'
], ],
'edit' => [ 'edit' => [
'name' => 'Ndrysho' 'name' => 'Redakto'
], ],
'delete' => [ 'delete' => [
'name' => 'Fshini' 'name' => 'Fshini'
@ -235,7 +235,7 @@ return [
'message_title' => 'Titulli i mesazhit', 'message_title' => 'Titulli i mesazhit',
'owner_name' => 'mesazh', 'owner_name' => 'mesazh',
'favorites' => "Favoritet", 'favorites' => "Të preferuarat",
'fav_advs' => 'Shpalljet e preferuara', 'fav_advs' => 'Shpalljet e preferuara',
'fav_sellers' => "Fav Shitësit", 'fav_sellers' => "Fav Shitësit",
'fav_searches' => "Kërkimet e Fav", 'fav_searches' => "Kërkimet e Fav",
@ -298,7 +298,7 @@ return [
'name' => 'Në pritje të miratimit të pagesës', 'name' => 'Në pritje të miratimit të pagesës',
], ],
'paid' => [ 'paid' => [
'name' => 'i paguar', 'name' => 'I paguar',
], ],
'cancelled' => [ 'cancelled' => [
'name' => 'anuluar', 'name' => 'anuluar',

View File

@ -9,7 +9,7 @@ return [
"login_error" => "Identifikim ose fjalëkalim i pasaktë.", "login_error" => "Identifikim ose fjalëkalim i pasaktë.",
"login_noMail_old_user" => "Adresa e postës elektronike që keni futur nuk u gjet.", "login_noMail_old_user" => "Adresa e postës elektronike që keni futur nuk u gjet.",
"login_noMail_old_user2" => "Ju lutemi kontrolloni adresën e postës elektronike dhe provoni përsëri.", "login_noMail_old_user2" => "Ju lutemi kontrolloni adresën e postës elektronike dhe provoni përsëri.",
"login_noMail_old_user3" => "Nëse problemi vazhdon, ju lutemi kontaktoni në 'info@openclassify.com'.", "login_noMail_old_user3" => "Nëse problemi vazhdon, ju lutemi kontaktoni në 'info@tregtaret.com'.",
"login_info_old_user" => "Një fjalëkalim i ri është dërguar në adresën tuaj të postës elektronike.", "login_info_old_user" => "Një fjalëkalim i ri është dërguar në adresën tuaj të postës elektronike.",
"success" => "Sukses", "success" => "Sukses",
"notified_new_updates" => "Dua të njoftohem për azhurnimet e reja", "notified_new_updates" => "Dua të njoftohem për azhurnimet e reja",
@ -29,5 +29,7 @@ return [
'empty_password_sms_message' => 'Për shkak të çështjeve të sigurisë, ne ndryshuam fjalëkalimin tuaj! Fjalëkalimi juaj i ri është:', 'empty_password_sms_message' => 'Për shkak të çështjeve të sigurisë, ne ndryshuam fjalëkalimin tuaj! Fjalëkalimi juaj i ri është:',
// Forgot Password // Forgot Password
'email_phone_not_found' => 'E-maili, numri i telefonit nuk është i saktë!' 'email_phone_not_found' => 'E-maili, numri i telefonit nuk është i saktë!',
'disable_account' => 'Do you want to close your account? This operation cannot be undone.',
]; ];

View File

@ -29,5 +29,7 @@ return [
'empty_password_sms_message' => 'Güvenlik sorunları nedeniyle şifrenizi değiştirdik! Yeni parolanız:', 'empty_password_sms_message' => 'Güvenlik sorunları nedeniyle şifrenizi değiştirdik! Yeni parolanız:',
// Forgot Password // Forgot Password
'email_phone_not_found' => 'E-posta, Telefon Numarası doğru değil!' 'email_phone_not_found' => 'E-posta, Telefon Numarası doğru değil!',
'disable_account' => 'Hesabınızı kapatmak istiyor musunuz? Bu işlem geri alınamaz.',
]; ];

View File

@ -26,6 +26,10 @@
</div> </div>
</nav> </nav>
<div class="bg-dark p-2 mt-2 rounded"> <div class="bg-dark p-2 mt-2 rounded">
<a href="/advs/create_adv" class="btn btn-success">
<i class="fas fa-plus-circle"></i>
{{ trans("theme::button.post_ad.name") }}
</a>
<a href="{{ url_route("advs::extendAll") }}" class="btn btn-primary"> <a href="{{ url_route("advs::extendAll") }}" class="btn btn-primary">
{{ trans('visiosoft.module.profile::button.extend_all') }} {{ trans('visiosoft.module.profile::button.extend_all') }}
</a> </a>

View File

@ -86,6 +86,15 @@
{{ userForm.actions|raw }} {{ userForm.actions|raw }}
</div> </div>
{{ userForm.close()|raw }} {{ userForm.close()|raw }}
<div class="col-12">
<label class="text-muted">
{{ trans('visiosoft.module.profile::message.disable_account') }}
</label>
<button type="button" class="btn btn-danger float-right"
onclick="window.location.href='/profile/closeAccount'">{{ trans("visiosoft.module.profile::field.disable_account.name") }}</button>
</div>
</div> </div>
</div> </div>

View File

@ -79,7 +79,7 @@ class MyProfileController extends PublicController
$country = CountryModel::all(); $country = CountryModel::all();
return $this->view->make('visiosoft.module.profile::profile.detail', return $this->view->make('visiosoft.module.profile::profile.detail',
compact('user','country', 'form', 'advs_count')); compact('user', 'country', 'form', 'advs_count'));
} }
@ -306,6 +306,7 @@ class MyProfileController extends PublicController
{ {
UsersUsersEntryModel::query()->find(Auth::id())->update(['enabled' => 0]); UsersUsersEntryModel::query()->find(Auth::id())->update(['enabled' => 0]);
Auth::logout();
return redirect('/'); return redirect('/');
} }