| Server IP : 37.9.174.138 / Your IP : 216.73.216.117 Web Server : Apache System : Linux vps6.backend.sk 6.12.100+deb13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.100-1 (2026-07-30) x86_64 User : ftpuser ( 1001) PHP Version : 8.4.24 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /var/www/html/backend-accounting.sk/app/ |
Upload File : |
<?php
printVarsArray("state=ACTIVE&name=Ylem+s.r.o.&street=&city=&zip=&country=&idn=&tin=&vat=&%3Cdiv+class%3D'row'%3E%3C%2Fdiv%3E=&contact_person=&phone=&email=&id=&last_update=");
//$function = $_GET['function'];
//$arg1 = $_GET['arg1'];
//
//$function(urldecode($arg1));
function printVarsArray($urlEncoded) {
$vars = array();
$items = explode("&", $urlEncoded);
foreach ($items as $item) {
$break = explode("=", $item);
$vars[] = $break[0];
}
echo "'" . implode("', '", $vars) . "'";
}
exit;
$googleClient = new \Google_Client();
$googleClient->setScopes([Google\Service\Calendar::CALENDAR]);
$googleClient->setAccessType('offline');
$googleClient->setAuthConfig(GOOGLE_CLIENT_CREDENTIALS_PATH);
$googleService = new Google\Service\Calendar($googleClient);
print_rr($googleService->calendarList->listCalendarList());
exit;
var_dump($googleService->colors->get());
exit;
$colors = $service->colors->get();
$event = new Google_Service_Calendar_Event(array(
'summary' => 'Test Event',
'description' => 'Test Event',
'start' => array(
'dateTime' => '2018-06-02T09:00:00-07:00'
),
'end' => array(
'dateTime' => '2018-06-10T09:00:00-07:00'
)
));
$calendarId = 'j85tnbuj1e5tgnizqt9faf2i88@group.calendar.google.com';
$event = $service->events->insert($calendarId, $event);
printf('Event created: %s\n', $event->htmlLink);
// Print available calendarListEntry colors.
foreach ($colors->getCalendar() as $key => $color) {
print "colorId : {$key}\n";
print " Background: {$color->getBackground()}\n";
print " Foreground: {$color->getForeground()}\n";
}
// Print available event colors.
foreach ($colors->getEvent() as $key => $color) {
print "colorId : {$key}\n";
print " Background: {$color->getBackground()}\n";
print " Foreground: {$color->getForeground()}\n";
}
exit;