uawdijnntqw1x1x1
IP : 216.73.216.93
Hostname : panel.codeskitter.com
Kernel : Linux panel.codeskitter.com 6.8.0-100-generic #100-Ubuntu SMP PREEMPT_DYNAMIC Tue Jan 13 16:40:06 UTC 2026 x86_64
Disable Function : apache_child_terminate, apache_note, apache_setenv, define_syslog_variables, dl, link, opcache_get_status, openlog, pcntl_exec, pcntl_fork, pcntl_setpriority, popen, posix_getpwuid, posix_kill, posix_mkfifo, posix_setpgid, posix_setsid, posix_setuid
OS : Linux
PATH:
/
home
/
users
/
unlimited
/
www
/
facebook.codeskitter.site
/
api
/
windows_app
/
change_color.php
/
/
<?php // +------------------------------------------------------------------------+ // | @author Deen Doughouz (DoughouzForest) // | @author_url 1: http://www.wowonder.com // | @author_url 2: http://codecanyon.net/user/doughouzforest // | @author_email: wowondersocial@gmail.com // +------------------------------------------------------------------------+ // | WoWonder - The Ultimate Social Networking Platform // | Copyright (c) 2016 WoWonder. All rights reserved. // +------------------------------------------------------------------------+ $json_error_data = array(); $json_success_data = array(); $json_success_data_2 = array(); $user_ids = array(); if (empty($_GET['type']) || !isset($_GET['type'])) { $json_error_data = array( 'api_status' => '400', 'api_text' => 'failed', 'api_version' => $api_version, 'errors' => array( 'error_id' => '1', 'error_text' => 'Bad request, no type specified.' ) ); header("Content-type: application/json"); echo json_encode($json_error_data, JSON_PRETTY_PRINT); exit(); } $type = Wo_Secure($_GET['type'], 0); if ($type == 'change_color') { if (empty($_POST['user_id'])) { $json_error_data = array( 'api_status' => '400', 'api_text' => 'failed', 'api_version' => $api_version, 'errors' => array( 'error_id' => '3', 'error_text' => 'No user id sent.' ) ); } if (empty($json_error_data)) { $user_id = $_POST['user_id']; $user_login_data = Wo_UserData($user_id); if (empty($user_login_data)) { $json_error_data = array( 'api_status' => '400', 'api_text' => 'failed', 'api_version' => $api_version, 'errors' => array( 'error_id' => '6', 'error_text' => 'Username is not exists.' ) ); header("Content-type: application/json"); echo json_encode($json_error_data, JSON_PRETTY_PRINT); exit(); } else if ($wo['loggedin'] == false) { $json_error_data = array( 'api_status' => '400', 'api_text' => 'failed', 'api_version' => $api_version, 'errors' => array( 'error_id' => '6', 'error_text' => 'Session id is wrong.' ) ); header("Content-type: application/json"); echo json_encode($json_error_data, JSON_PRETTY_PRINT); exit(); } else if (empty($_POST['recipient_id'])) { $json_error_data = array( 'api_status' => '400', 'api_text' => 'failed', 'api_version' => $api_version, 'errors' => array( 'error_id' => '6', 'error_text' => 'recipient_id is required.' ) ); header("Content-type: application/json"); echo json_encode($json_error_data, JSON_PRETTY_PRINT); exit(); } else { $wo['lang'] = Wo_LangsFromDB($user_login_data['language']); $timezone = new DateTimeZone($user_login_data['timezone']); $recipient_user = $_POST['recipient_id']; $color = false; if (isset($_POST['color']) && in_array($_POST['color'], $colors)) { $color = $_POST['color']; } if ($user_id && $color && $recipient_user) { if (Wo_UpdateChatColor($user_id, $recipient_user, $color)) { $json_success_data = array( 'status' => 200, 'message' => "color changed", 'color' => $color ); } } } } else { header("Content-type: application/json"); echo json_encode($json_error_data); exit(); } } header("Content-type: application/json"); echo json_encode($json_success_data); exit(); ?>
/home/users/unlimited/www/facebook.codeskitter.site/api/windows_app/change_color.php