Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
piphone-front
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
La Quadrature du Net
piphone
piphone-front
Commits
e3ac5a29
Commit
e3ac5a29
authored
Nov 23, 2014
by
Mindiell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cache test deletion
parent
a35fe178
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
8 deletions
+2
-8
app/Main.php
app/Main.php
+0
-6
app/config.php.sample
app/config.php.sample
+2
-0
templates/home.html
templates/home.html
+0
-2
No files found.
app/Main.php
View file @
e3ac5a29
...
@@ -6,12 +6,6 @@ class Main extends Controller {
...
@@ -6,12 +6,6 @@ class Main extends Controller {
* Presents campaign information and a random Contact
* Presents campaign information and a random Contact
*/
*/
function
home
(
$f3
,
$args
)
{
function
home
(
$f3
,
$args
)
{
if
(
!
$f3
->
exists
(
'toto'
))
{
$f3
->
set
(
'toto'
,
time
(),
10
);
}
else
{
$f3
->
set
(
'toto'
,
$f3
->
get
(
'toto'
));
}
echo
$f3
->
get
(
'toto'
);
$f3
->
set
(
'campaign'
,
Api
::
get_campaign
());
$f3
->
set
(
'campaign'
,
Api
::
get_campaign
());
$f3
->
set
(
'contact'
,
Api
::
get_contact
());
$f3
->
set
(
'contact'
,
Api
::
get_contact
());
$f3
->
set
(
'block_content'
,
'home.html'
);
$f3
->
set
(
'block_content'
,
'home.html'
);
...
...
app/config.php.sample
View file @
e3ac5a29
<?php
<?php
/* Configuration file for Campaign manager */
/* Configuration file for Campaign manager */
define
(
"CAMPAIGN_ID"
,
"1"
);
define
(
"API_BASE"
,
"http://localhost/restapi/"
);
/* TODO : remove this in production ;) */
/* TODO : remove this in production ;) */
error_reporting
(
E_ALL
|
E_WARNING
);
error_reporting
(
E_ALL
|
E_WARNING
);
...
...
templates/home.html
View file @
e3ac5a29
...
@@ -2,8 +2,6 @@
...
@@ -2,8 +2,6 @@
<h1>
{{ _("PiPhone") }}
</h1>
<h1>
{{ _("PiPhone") }}
</h1>
<h2>
{{ _("Call Contact for free - and make yourself heard") }}
</h2>
<h2>
{{ _("Call Contact for free - and make yourself heard") }}
</h2>
{{ @toto }}
<section>
<section>
<repeat
group=
"{{ @languages }}"
value=
"{{ @language }}"
>
<repeat
group=
"{{ @languages }}"
value=
"{{ @language }}"
>
<a
href=
"/lang/{{ @language.iso }}"
>
{{ @language.name }}
</a>
|
<a
href=
"/lang/{{ @language.iso }}"
>
{{ @language.name }}
</a>
|
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment