*/
?>


<?php 
include "conntube.php";
$action = $_POST['action'];
switch ($action) {
    case 'updatelog':
        updatelog();
        break;
    case 'deletelog':
        deletelog();
        break;
    case 'changelog':
        changelog();
        break;
        echo 'Thats the best part of it!!';
        break;
}
?>

<?php 
function updatelog()
{
    $actiontype = $_POST['actiontype'];
    //$takenby 	= 	$_POST['takenby'];
    //$takenon 	= 	$_POST['takenon'];
    $takenby = isset($_POST['takenby']) ? $_POST['takenby'] : '';
    $takenon = isset($_POST['takenon']) ? $_POST['takenon'] : '';
    //	$entity 	= 	$_POST['entity'];
Exemple #2
0
<?php

$auth = array('2', '3');
require '../../includes/config.include.php';
//Get general include
require '../../includes/header.include.php';
//Get general header include
require '../../includes/orbis.include.php';
//Orbis Framework
if (isset($_POST['motdupdate'])) {
    $motdcontent = $_POST['motd'];
    $motdquery = $db->prepare("UPDATE settings SET site_motd = '{$motdcontent}' WHERE id = '1'");
    $motdquery->execute();
    $notification = notification('Successfully Updated MOTD. <br><a href="' . $protocol . $_SERVER['HTTP_HOST'] . $basepath . '/dash/group/1/">Click to view as a Staff Worker!</a>', 'success');
    changelog('', 'The server MOTD was updated.', 'settings');
}
$currentuser = $_SESSION['staff_id'];
$quser = "******";
$resultuser = $db->query($quser);
while ($rowresult = $resultuser->fetch(PDO::FETCH_ASSOC)) {
    ?>
<!-- DASHBOARD PAGE START -->

            <!-- Main Container -->
            <main id="main-container">
                <!-- Page Header -->
	                    <?php 
    if ($rowresult['staff_background']) {
        $staffbackground = "url('../../get/image.php?file=" . $rowresult['staff_background'] . "');";
    } else {
        $staffbackground = "url('../../assets/img/photos/photo8@2x.jpg');";
		</div>
		<div class="row">
		  <div class="col-xs-3"><span class="label label-default">Latest Version:</span></div>
		  <div class="col-xs-9"><span class="label label-primary"><?php 
    echo $latest_version;
    ?>
</span></div>
		</div>

		<div class="row">
		<div class="col-xs-12">
		<br/>
		<small>Changelogs:</small>
			<div class="panel-group" id="changelog_accordion" style="margin-top:10px;">
			  <?php 
    $change_logs = changelog();
    foreach ($change_logs as $logs) {
        if ($logs['version'] >= $version) {
            ?>
			  		<div class="panel panel-default">
	                    <div class="panel-heading">
	                    <a data-toggle="collapse" data-parent="#changelog_accordion" href="#release_<?php 
            echo str_replace('.', '', $logs['version']);
            ?>
">
	                      <h4 class="panel-title">
	                          v<?php 
            echo $logs['version'];
            ?>
	                      </h4>
	                    </a>  
                                        <td><strong>Authorize.Net - Notify user</strong></td>
                                        <td>Enable to send an email notification to user on book request payed with Authorize.Net.</td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </section>
                
                <section id="changelog">
                    <h2>Changelog</h2>
                    
                    <p>
                        The payment add-on is updated periodically, with new features and fixes for bugs.
                    </p>
                    
                    <a href="javascript:toggle('changelog', 'hide')" class="toggle-all hide">
                        <span class="label">Close all</span>
                        <span class="icon"></span>
                    </a>
                    <a href="javascript:toggle('changelog', 'display')" class="toggle-all display">
                        <span class="label">Open all</span>
                        <span class="icon"></span>
                    </a>
                    <br class="clear" />

                    <?php 
echo changelog('https://pinpoint.world/wordpress/changelog/pinpoint-booking-system-wordpress-plugin-add-on-authorize-net.json');
?>
                </section>
            </div>
                                        <td><strong>2Checkout - Notify user</strong></td>
                                        <td>Enable to send an email notification to user on book request payed with 2Checkout.</td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </section>
                
                <section id="changelog">
                    <h2>Changelog</h2>
                    
                    <p>
                        The payment add-on is updated periodically, with new features and fixes for bugs.
                    </p>
                    
                    <a href="javascript:toggle('changelog', 'hide')" class="toggle-all hide">
                        <span class="label">Close all</span>
                        <span class="icon"></span>
                    </a>
                    <a href="javascript:toggle('changelog', 'display')" class="toggle-all display">
                        <span class="label">Open all</span>
                        <span class="icon"></span>
                    </a>
                    <br class="clear" />
                    
                    <?php 
echo changelog('https://pinpoint.world/wordpress/changelog/pinpoint-booking-system-wordpress-plugin-add-on-2checkout.json');
?>
                </section>
            </div>
                        <span class="icon"></span>
                    </a>
                    <a href="javascript:toggle('changelog-pro', 'display')" class="toggle-all display">
                        <span class="label">Open all</span>
                        <span class="icon"></span>
                    </a>
                    <br class="clear" />
                    
                    <?php 
echo changelog('https://pinpoint.world/wordpress/changelog/pinpoint-booking-system-wordpress-plugin-pro.json', 'pro');
?>
                </section>
                
                <section id="changelog-free">
                    <h3>Free version changelog</h3>
                    
                    <a href="javascript:toggle('changelog-free', 'hide')" class="toggle-all hide">
                        <span class="label">Close all</span>
                        <span class="icon"></span>
                    </a>
                    <a href="javascript:toggle('changelog-free', 'display')" class="toggle-all display">
                        <span class="label">Open all</span>
                        <span class="icon"></span>
                    </a>
                    <br class="clear" />
                    
                    <?php 
echo changelog('https://pinpoint.world/wordpress/changelog/pinpoint-booking-system-wordpress-plugin-free.json', 'free');
?>
                </section>
            </div>
Exemple #7
0
     if (empty($_FILES["avatar"]["tmp_name"])) {
         $avatar_name = $clientrow['client_avatar'];
     } else {
         move_uploaded_file($_FILES['avatar']['tmp_name'], $datapath . $avatar_name);
     }
     $background_name = 'image_' . date('Y-m-d-H-i-s') . '_' . uniqid() . '.jpg';
     if (empty($_FILES["background"]["tmp_name"])) {
         $background_name = $clientrow['client_backdrop'];
     } else {
         move_uploaded_file($_FILES['background']['tmp_name'], $datapath . $background_name);
     }
     $updateclient = "UPDATE clients SET client_name = '{$newclientname}', client_dob = '{$newclientdob}', client_bio = '{$newclientbio}', client_address = '{$newclientaddress}', client_phone = '{$newclientphone}', client_avatar = '{$avatar_name}', client_backdrop = '{$background_name}', client_updated = '{$newclientupdate}' WHERE client_id = '{$getclient}'";
     $result = mysql_query($updateclient) or die(mysql_error());
     $thisground = $clientrow['client_group'];
     $gengroup = mysql_query("UPDATE groups SET group_name = '{$newclientname}' WHERE group_id = '{$thisground}'") or die(mysql_error());
     changelog($getclient, 'Updated clients data successfully.', 'client');
     $_SESSION['allow_nofity'] = true;
     //Set this to allow a notification in a bit
     $page = '../client/?u=' . $getclient . '&n=1';
     header('Location: ' . $page);
     exit;
 }
 if (isset($_GET['n'])) {
     $notify = $_GET['n'];
     if ($notify == '1') {
         if ($_SESSION['allow_nofity'] == true) {
             $notification = notification('Updated information for ' . $clientrow['client_name'] . ' successfully.', 'success');
             $_SESSION['allow_nofity'] = false;
         }
     }
 }
    ?>
							<?php 
    echo '<span class="label label-important"> ( nicht validiert ) </span><br/>siehe Optionen / Info';
    ?>
                            <?php 
}
?>
							
								<?php 
JHtml::_('behavior.modal');
?>
								</br>
								<div style="display:none;">
								<div id="eiko-changelog">
									<?php 
echo changelog(JPATH_COMPONENT_ADMINISTRATOR . '/CHANGELOG.php');
?>
								</div>
								</div>
						<a href="#eiko-changelog" class="modal"><?php 
echo 'Changelog';
?>
</a>

                            </dd>
							<hr>
							<dt>Release-Datum:</dt>
							<dd><?php 
echo $params['creationDate'];
?>
</dd>
    $time = time();
    $dep_id = $_SESSION['depmodify'];
    $avatar_name = 'image_' . date('Y-m-d-H-i-s') . '_' . uniqid() . '.jpg';
    if (empty($_FILES["dep-avatar"]["tmp_name"])) {
        $avatar_name = orbislookup($dep_id, 'dep_id', 'departments', 'dep_avatar');
    } else {
        move_uploaded_file($_FILES['dep-avatar']['tmp_name'], $datapath . $avatar_name);
    }
    $SQL = "UPDATE departments SET dep_avatar = '{$avatar_name}', dep_name = '{$name}', dep_desc = '{$desc}', dep_style = '{$style}', dep_updated = '{$time}' WHERE dep_id = '{$dep_id}'";
    $result = mysql_query($SQL) or die(mysql_error());
    changelog('', 'Updated ' . $name . ' department data successfully.', 'department');
    header('Location: departments.php');
}
if (isset($_POST['deletedep'])) {
    $dep_id = $_SESSION['depmodify'];
    changelog('', 'Deleted ' . $name . ' department data successfully.', 'department');
    $deletegroup = mysql_query("DELETE FROM departments WHERE dep_id = '{$dep_id}'") or die(mysql_error());
    header('Location: departments.php');
}
if (isset($_GET['department'])) {
    if ($_GET['department'] == '1') {
        header('Location: departments.php');
    }
    $_SESSION['depmodify'] = $_GET['department'];
    $deptoedit = $_GET['department'];
    require '../../includes/header.include.php';
    //Get general header include
    ?>


				 <!-- Main Container -->