Skip to content

Commit 6933ca3

Browse files
committed
Add progect
1 parent 7d22de7 commit 6933ca3

File tree

259 files changed

+69996
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

259 files changed

+69996
-0
lines changed

.htaccess

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
#задаем кодировку сайта
2+
AddDefaultCharset UTF-8
3+
4+
<IfModule mod_rewrite.c>
5+
RewriteEngine On
6+
RewriteBase /
7+
8+
#Removes access to the system folder by users.
9+
#Additionally this will allow you to create a System.php controller,
10+
#previously this would not have been possible.
11+
#'system' can be replaced if you have renamed your system folder.
12+
RewriteCond %{REQUEST_URI} ^system.*
13+
RewriteRule ^(.*)$ /index.php?/$1 [L]
14+
15+
#When your application folder isn't in the system folder
16+
#This snippet prevents user access to the application folder
17+
#Submitted by: Fabdrol
18+
#Rename 'application' to your applications folder name.
19+
RewriteCond %{REQUEST_URI} ^application.*
20+
RewriteRule ^(.*)$ /index.php?/$1 [L]
21+
22+
#Checks to see if the user is attempting to access a valid file,
23+
#such as an image or css document, if this isn't true it sends the
24+
#request to index.php
25+
RewriteCond %{REQUEST_FILENAME} !-f
26+
RewriteCond %{REQUEST_FILENAME} !-d
27+
RewriteRule ^(.*)$ index.php?/$1 [L]
28+
</IfModule>
29+
30+
<IfModule !mod_rewrite.c>
31+
# If we don't have mod_rewrite installed, all 404's
32+
# can be sent to index.php, and everything works as normal.
33+
# Submitted by: ElliotHaughin
34+
35+
ErrorDocument 404 /index.php
36+
</IfModule>

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2018 Aleks Moroz
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# OneSignal-Codeigniter-Push-Notification
2+
3+
[![GitHub issues](https://img.shields.io/github/issues/pomerla/OneSignal-Codeigniter-Push-Notification.svg?style=plastic)](https://github.com/pomerla/Ci3-Jumpstart/issues)
4+
[![GitHub forks](https://img.shields.io/github/forks/pomerla/OneSignal-Codeigniter-Push-Notification.svg?style=plastic)](https://github.com/pomerla/Ci3-Jumpstart/network)
5+
[![GitHub stars](https://img.shields.io/github/stars/pomerla/OneSignal-Codeigniter-Push-Notification.svg?style=plastic)](https://github.com/pomerla/Ci3-Jumpstart/stargazers)
6+
[![GitHub license](https://img.shields.io/github/license/pomerla/OneSignal-Codeigniter-Push-Notification.svg?style=plastic)](https://github.com/pomerla/Ci3-Jumpstart/blob/master/LICENSE)
7+
8+
[![Twitter](https://img.shields.io/twitter/url/https/github.com/pomerla/OneSignal-Codeigniter-Push-Notification.svg?style=social&style=plastic)](https://twitter.com/intent/tweet?text=Wow:&url=https%3A%2F%2Fgithub.com%2Fpomerla%2FOneSignal-Codeigniter-Push-Notification)
9+
[![API](https://img.shields.io/badge/last%20build-February%2019%2C%202018-36ade1.svg)](https://###)
10+
11+
## About the application
12+
OneSignal is a free push notification service for web and mobile apps. This Codeigniter example makes it easy to integrate your website with Push Notifications [OneSignal](https://onesignal.com/)
13+
14+
DEMO - [http://ci3onesignal.codefort.ru/](http://ci3onesignal.codefort.ru/)
15+
16+
[OneSignal](https://onesignal.com) is a free push notification service for web and mobile apps.
17+
18+
This application allows your site's visitors to receive push notifications from you. Send visitors custom notification content, target specific users, and send automatically based on triggers.
19+
20+
21+
## Getting Started
22+
23+
View our [documentation](https://documentation.onesignal.com/docs/web-push-setup) to get started.
24+
25+
This example is implemented on [Codeigniter Version 3.2.0-dev](https://github.com/bcit-ci/CodeIgniter)
26+

application/.htaccess

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<IfModule authz_core_module>
2+
Require all denied
3+
</IfModule>
4+
<IfModule !authz_core_module>
5+
Deny from all
6+
</IfModule>

application/cache/index.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<title>403 Forbidden</title>
5+
</head>
6+
<body>
7+
8+
<p>Directory access is forbidden.</p>
9+
10+
</body>
11+
</html>

application/config/autoload.php

Lines changed: 135 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,135 @@
1+
<?php
2+
defined('BASEPATH') OR exit('No direct script access allowed');
3+
4+
/*
5+
| -------------------------------------------------------------------
6+
| AUTO-LOADER
7+
| -------------------------------------------------------------------
8+
| This file specifies which systems should be loaded by default.
9+
|
10+
| In order to keep the framework as light-weight as possible only the
11+
| absolute minimal resources are loaded by default. For example,
12+
| the database is not connected to automatically since no assumption
13+
| is made regarding whether you intend to use it. This file lets
14+
| you globally define which systems you would like loaded with every
15+
| request.
16+
|
17+
| -------------------------------------------------------------------
18+
| Instructions
19+
| -------------------------------------------------------------------
20+
|
21+
| These are the things you can load automatically:
22+
|
23+
| 1. Packages
24+
| 2. Libraries
25+
| 3. Drivers
26+
| 4. Helper files
27+
| 5. Custom config files
28+
| 6. Language files
29+
| 7. Models
30+
|
31+
*/
32+
33+
/*
34+
| -------------------------------------------------------------------
35+
| Auto-load Packages
36+
| -------------------------------------------------------------------
37+
| Prototype:
38+
|
39+
| $autoload['packages'] = array(APPPATH.'third_party', '/usr/local/shared');
40+
|
41+
*/
42+
$autoload['packages'] = array();
43+
44+
/*
45+
| -------------------------------------------------------------------
46+
| Auto-load Libraries
47+
| -------------------------------------------------------------------
48+
| These are the classes located in system/libraries/ or your
49+
| application/libraries/ directory, with the addition of the
50+
| 'database' library, which is somewhat of a special case.
51+
|
52+
| Prototype:
53+
|
54+
| $autoload['libraries'] = array('database', 'email', 'session');
55+
|
56+
| You can also supply an alternative library name to be assigned
57+
| in the controller:
58+
|
59+
| $autoload['libraries'] = array('user_agent' => 'ua');
60+
*/
61+
$autoload['libraries'] = array('session');
62+
63+
/*
64+
| -------------------------------------------------------------------
65+
| Auto-load Drivers
66+
| -------------------------------------------------------------------
67+
| These classes are located in system/libraries/ or in your
68+
| application/libraries/ directory, but are also placed inside their
69+
| own subdirectory and they extend the CI_Driver_Library class. They
70+
| offer multiple interchangeable driver options.
71+
|
72+
| Prototype:
73+
|
74+
| $autoload['drivers'] = array('cache');
75+
|
76+
| You can also supply an alternative property name to be assigned in
77+
| the controller:
78+
|
79+
| $autoload['drivers'] = array('cache' => 'cch');
80+
|
81+
*/
82+
$autoload['drivers'] = array();
83+
84+
/*
85+
| -------------------------------------------------------------------
86+
| Auto-load Helper Files
87+
| -------------------------------------------------------------------
88+
| Prototype:
89+
|
90+
| $autoload['helper'] = array('url', 'file');
91+
*/
92+
$autoload['helper'] = array('url');
93+
94+
/*
95+
| -------------------------------------------------------------------
96+
| Auto-load Config files
97+
| -------------------------------------------------------------------
98+
| Prototype:
99+
|
100+
| $autoload['config'] = array('config1', 'config2');
101+
|
102+
| NOTE: This item is intended for use ONLY if you have created custom
103+
| config files. Otherwise, leave it blank.
104+
|
105+
*/
106+
$autoload['config'] = array();
107+
108+
/*
109+
| -------------------------------------------------------------------
110+
| Auto-load Language files
111+
| -------------------------------------------------------------------
112+
| Prototype:
113+
|
114+
| $autoload['language'] = array('lang1', 'lang2');
115+
|
116+
| NOTE: Do not include the "_lang" part of your file. For example
117+
| "codeigniter_lang.php" would be referenced as array('codeigniter');
118+
|
119+
*/
120+
$autoload['language'] = array();
121+
122+
/*
123+
| -------------------------------------------------------------------
124+
| Auto-load Models
125+
| -------------------------------------------------------------------
126+
| Prototype:
127+
|
128+
| $autoload['model'] = array('first_model', 'second_model');
129+
|
130+
| You can also supply an alternative model name to be assigned
131+
| in the controller:
132+
|
133+
| $autoload['model'] = array('first_model' => 'first');
134+
*/
135+
$autoload['model'] = array();

0 commit comments

Comments
 (0)