added on server side

This commit is contained in:
2024-10-26 16:58:21 +02:00
parent 71a12e833a
commit 22b07e7377
5 changed files with 45 additions and 1 deletions

0
_ajax/output.txt Normal file
View File

3
_ajax/test.php Normal file
View File

@@ -0,0 +1,3 @@
<?php
echo "hello";

View File

@@ -52,7 +52,7 @@ switch ($this->get_id()) {
case 'training': case 'training':
//TRAINING TYPE ARRAY //TRAINING TYPE ARRAY
$training_type_query = "SELECT * FROM training_type ORDER BY trt_name ASC;"; $training_type_query = "SELECT * FROM training_type WHERE trt_deleted = 0 ORDER BY trt_name ASC;";
$training_type_assoc_array = $sql->assoc_array($training_type_query); $training_type_assoc_array = $sql->assoc_array($training_type_query);
$smarty->assign("training_type_assoc_array", $training_type_assoc_array); $smarty->assign("training_type_assoc_array", $training_type_assoc_array);
//TRAINING TEMPLATE ARRAY //TRAINING TEMPLATE ARRAY

38
htaccess_backup Normal file
View File

@@ -0,0 +1,38 @@
# HTID:8911349: DO NOT REMOVE OR MODIFY THIS LINE AND THE LINES BELOW
php_value display_errors 1
# DO NOT REMOVE OR MODIFY THIS LINE AND THE LINES ABOVE HTID:8911349:
Options +FollowSymLinks -MultiViews
# Turn mod_rewrite on
RewriteEngine On
RewriteBase /
#RewriteRule ^$ cegled/phpinfo.php [NC,L]
RewriteRule ^$ index.php?page=view [NC,L]
RewriteRule ^_cron\/([0-9a-z_\.\-]*) ./cron/$1 [NC,L]
RewriteRule ^(admin|view|coach|preview|coach_preview|tabor)\/?([0-9a-z_\-]*)\/?([0-9a-z_\-]*)$ ./index.php?page=$1&subpage=$2&id=$3 [NC,L]
# RewriteRule ^index.php(.*)$ cegled/index.php$1 [NC,L]
# RewriteRule (.*) $1 [NC,L]
# RewriteRule ^\/?([a-z_]+)\/?([0-9a-z_\.\?\&\=\-]*)\/?(.*)$ ./index.php?page=$1&subpage=$2&id=$3 [NC,L]
# BEGIN cPanel-generated php ini directives, do not edit
# Manual editing of this file may result in unexpected behavior.
# To make changes to this file, use the cPanel MultiPHP INI Editor (Home >> Software >> MultiPHP INI Editor)
# For more information, read our documentation (https://go.cpanel.net/EA4ModifyINI)
#<IfModule php5_module>
# php_value date.timezone "Europe/Budapest"
#</IfModule>
#<IfModule lsapi_module>
# php_value date.timezone "Europe/Budapest"
#</IfModule>
# END cPanel-generated php ini directives, do not edit
# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php56” package as the default “PHP” programming language.
<IfModule mime_module>
AddHandler application/x-httpd-ea-php56 .php .php5 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit

View File

@@ -16,15 +16,18 @@
<label class="desc" for="ua_password">Jelszó:</label> <label class="desc" for="ua_password">Jelszó:</label>
<div><input type="text" name="ua_password" id="ua_password"></div> <div><input type="text" name="ua_password" id="ua_password"></div>
</div> </div>
<div class="admin_area"> <div class="admin_area">
<label>Jogosultságok:</label> <label>Jogosultságok:</label>
<table id="authorities"> <table id="authorities">
{foreach $a_array as $a} {foreach $a_array as $a}
<tr id="a_{$a->get_a_id()}"> <tr id="a_{$a->get_a_id()}">
<td><label for="authority_{$a->get_a_id()}">{$a->get_a_title()}</label></td> <td><label for="authority_{$a->get_a_id()}">{$a->get_a_title()}</label></td>
<td><input class="authorities" value="{$a->get_a_id()}" type="checkbox" name="authorities[]" id="authority_{$a->get_a_id()}"></td> <td><input class="authorities" value="{$a->get_a_id()}" type="checkbox" name="authorities[]" id="authority_{$a->get_a_id()}"></td>
</tr> </tr>
{/foreach} {/foreach}
</table> </table>
</div> </div>