Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
V
VMSone
Manage
Activity
Members
Labels
Plan
Issues
1
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Designerscripte
VMSone
Commits
08bc4296
Commit
08bc4296
authored
1 year ago
by
Henoch Einbier
Committed by
Joel Kuder
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
PHP8 compability
parent
0207dd9d
Branches
Branches containing commit
Tags
Tags containing commit
2 merge requests
!46
Release 3.0
,
!44
PHP8 compability
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
adminforce/index.php
+1
-1
1 addition, 1 deletion
adminforce/index.php
content/intern/mediadaten.php
+6
-6
6 additions, 6 deletions
content/intern/mediadaten.php
index.php
+2
-2
2 additions, 2 deletions
index.php
with
9 additions
and
9 deletions
adminforce/index.php
+
1
−
1
View file @
08bc4296
...
...
@@ -9,7 +9,7 @@ if (!isset($_GET['content']) || empty ($_GET['content'])) $_GET['content'] = '/s
}
if
(
isset
(
$_GET
[
'content'
])
&&
!
empty
(
$_GET
[
'content'
]))
{
if
(
strpos
(
$_GET
[
'content'
],
'../'
)
!==
false
)
die
(
'Zugriffsverletzung !'
);
if
(
$_GET
[
'content'
]
{
0
}
!=
'/'
)
$_GET
[
'content'
]
=
'/'
.
$_GET
[
'content'
];
if
(
$_GET
[
'content'
]
[
0
]
!=
'/'
)
$_GET
[
'content'
]
=
'/'
.
$_GET
[
'content'
];
}
...
...
This diff is collapsed.
Click to expand it.
content/intern/mediadaten.php
+
6
−
6
View file @
08bc4296
...
...
@@ -21,7 +21,7 @@ $fc_wert = $fc_wert + ($count['verdienst']*$count['menge']);
$heute
=
strtotime
(
""
.
date
(
"m"
)
.
"/"
.
date
(
"d"
)
.
"/"
.
date
(
"Y"
)
.
""
);
// Format mm.tt.yyyy
$seitenstart
=
strtotime
(
"04/02/2005"
);
// Format mm.tt.yyyy
$tage
=
(
$heute
-
$seitenstart
)
/
86400
;
$tage
=
fdiv
(
(
$heute
-
$seitenstart
)
,
86400
)
;
if
(
$tage
<=
1
)
$tage
=
1
;
head
(
"Mediadaten - "
.
$system
[
'seitenname'
]);
?>
...
...
@@ -36,7 +36,7 @@ head("Mediadaten - ".$system['seitenname']);?>
</tr>
<tr
class=
"tabellenbody_0"
>
<td
width=
"50%"
>
Guthaben Ø pro User
</td>
<td
width=
"50%"
>
<?php
echo
@
number_format
(
$kontostats
[
'kd_kontostand'
]
/
$kontostats
[
'kd_uid'
],
2
,
","
,
"."
);
?>
<?php
echo
$system
[
'waehrung'
];
?>
</td>
<td
width=
"50%"
>
<?php
echo
@
number_format
(
fdiv
(
$kontostats
[
'kd_kontostand'
]
,
$kontostats
[
'kd_uid'
]
)
,
2
,
","
,
"."
);
?>
<?php
echo
$system
[
'waehrung'
];
?>
</td>
</tr>
<tr
class=
"tabellenbody_1"
>
<td
width=
"50%"
>
Angemeldete User
</td>
...
...
@@ -44,7 +44,7 @@ head("Mediadaten - ".$system['seitenname']);?>
</tr>
<tr
class=
"tabellenbody_0"
>
<td
width=
"50%"
>
Anmeldungen pro Tag
</td>
<td
width=
"50%"
>
<?php
echo
@
number_format
(
$kontostats
[
'kd_uid'
]
/
$tage
,
2
,
","
,
"."
);
?>
</td>
<td
width=
"50%"
>
<?php
echo
@
number_format
(
fdiv
(
$kontostats
[
'kd_uid'
]
,
$tage
)
,
2
,
","
,
"."
);
?>
</td>
</tr>
</table>
<?php
foot
();
...
...
@@ -60,7 +60,7 @@ head("Mediadaten - Diverses");?>
</tr>
<tr
class=
"tabellenbody_0"
>
<td
width=
"50%"
>
Ø Verdienst pro Klick
</td>
<td
width=
"50%"
>
<?php
echo
@
number_format
(
$kontostats
[
'kd_kv'
]
/
$kontostats
[
'kd_klicks'
],
2
,
","
,
"."
);
?>
<?php
echo
$system
[
'waehrung'
];
?>
</td>
<td
width=
"50%"
>
<?php
echo
@
number_format
(
fdiv
(
$kontostats
[
'kd_kv'
]
,
$kontostats
[
'kd_klicks'
]
)
,
2
,
","
,
"."
);
?>
<?php
echo
$system
[
'waehrung'
];
?>
</td>
</tr>
<tr
class=
"tabellenbody_1"
>
<td
width=
"50%"
>
Bettelaufrufe alle User
</td>
...
...
@@ -72,7 +72,7 @@ head("Mediadaten - Diverses");?>
</tr>
<tr
class=
"tabellenbody_1"
>
<td
width=
"50%"
>
Ø Verdienst pro Aufruf
</td>
<td
width=
"50%"
>
<?php
echo
@
number_format
(
$kontostats
[
'kd_bv'
]
/
$kontostats
[
'kd_angebettelt'
],
2
,
","
,
"."
);
?>
<?php
echo
$system
[
'waehrung'
];
?>
</td>
<td
width=
"50%"
>
<?php
echo
@
number_format
(
fdiv
(
$kontostats
[
'kd_bv'
]
,
$kontostats
[
'kd_angebettelt'
]
)
,
2
,
","
,
"."
);
?>
<?php
echo
$system
[
'waehrung'
];
?>
</td>
</tr>
<tr
class=
"tabellenbody_0"
>
<td
width=
"50%"
>
Refverdienste für alle Werber
</td>
...
...
@@ -95,4 +95,4 @@ head("Mediadaten - Werbung");?>
<td
width=
"50%"
>
<?php
echo
@
number_format
(
$fc_wert
,
2
,
","
,
"."
);
?>
<?php
echo
$system
[
'waehrung'
];
?>
</td>
</tr>
</table>
<?php
foot
();
?>
\ No newline at end of file
<?php
foot
();
?>
This diff is collapsed.
Click to expand it.
index.php
+
2
−
2
View file @
08bc4296
<?php
if
(
isset
(
$_GET
[
'content'
])
&&
!
empty
(
$_GET
[
'content'
]))
{
if
(
strpos
(
$_GET
[
'content'
],
'../'
)
!==
false
)
die
(
'Zugriffsverletzung !'
);
if
(
$_GET
[
'content'
]
{
0
}
!=
'/'
)
$_GET
[
'content'
]
=
'/'
.
$_GET
[
'content'
];
if
(
$_GET
[
'content'
]
[
0
]
!=
'/'
)
$_GET
[
'content'
]
=
'/'
.
$_GET
[
'content'
];
}
if
(
!
isset
(
$_GET
[
'content'
])
||
empty
(
$_GET
[
'content'
]))
$_GET
[
'content'
]
=
'/intern/startseite'
;
if
(
!
file_exists
(
'content'
.
$_GET
[
'content'
]
.
'.php'
))
$_GET
[
'content'
]
=
'/error/keine_seite'
;
...
...
@@ -96,4 +96,4 @@ if ($_GET['content'] == '/betteln') require_once ('lib/texte/alt_bettelseitenpop
</body>
</html>
<?php
if
(
$system
[
'gzip_rate'
]
>
0
)
ob_end_flush
();
\ No newline at end of file
if
(
$system
[
'gzip_rate'
]
>
0
)
ob_end_flush
();
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment