コード例 #1
0
ファイル: config.php プロジェクト: albertoneto/localhost
<?php

include_once dirname(dirname(dirname(__FILE__))) . DIRECTORY_SEPARATOR . 'config.php';
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/* SETTINGS START */
$isDelete = setConfigValue('isDelete', '0');
/* SETTINGS END */
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
コード例 #2
0
ファイル: luckyhour.php プロジェクト: Yanrs/PkmnChan
    }
    if ($hitrows > 0) {
        echo Message("Someone have already won in this lucky hour.");
        $error = 1;
    }
    if ($error != 1) {
        $result = mysql_query("INSERT INTO `lucky_hour` (winner, pokemon)" . "VALUES ('{$uid}', '{$pokemon->name}')");
        $user->money = $user->money + $newgold;
        $givehit = mysql_query("UPDATE `users` SET `money` = '{$user->money}' WHERE `id`='{$uid}'");
        echo Message("\n\t\t\tYou got a lucky!<br> \n\t\t\tYou've won \$" . number_format($newgold) . "!<br> \n\t\t\tAND <br> \n\t\t\t<b>" . $pokemon->name . "</b><br>\n\t\t\t<b>Level: " . $level . "</b><br>\n\t\t\t<img src='/images/pokemon/" . $pokemon->name . ".png'>\n\t\t");
    }
    $givehit = mysql_query("UPDATE `users` SET `lucky_hour` = '1' WHERE `id`='{$uid}'");
}
if ($timeleft < 1 && $secondz < 1) {
    $newtime = 3600 + time();
    $resethit = setConfigValue('lucky_hour', $newtime);
    $timeleft = howlongtila($newtime);
    $givehit = mysql_query("UPDATE `users` SET `lucky_hour` = '0'");
    $resethitzz = mysql_query("DELETE FROM `lucky_hour`");
    $secondz = 0;
}
?>

<br>

<center>
	<b>Prize: </b>$10,000 & Random Pokemon<br>

	The rules are simple, first people who hit button "Get Lucky!" in each lucky hour wins.<br>
	Lucky hour will reset itself every 60 minutes.<br>
	Time till next lucky hour: <?php 
コード例 #3
0
ファイル: config.php プロジェクト: albertoneto/localhost
$login_button_text = setConfigValue('login_button_text', '#FFFFFF');
$login_foreground_text = setConfigValue('login_foreground_text', '#000000');
$actionbar_color = setConfigValue('actionbar_color', '#002832');
$actionbar_text_color = setConfigValue('actionbar_text_color', '#FFFFFF');
$left_bubble_color = setConfigValue('left_bubble_color', '#E5E5E5');
$left_bubble_text_color = setConfigValue('left_bubble_text_color', '#000000');
$right_bubble_color = setConfigValue('right_bubble_color', '#002832');
$right_bubble_text_color = setConfigValue('right_bubble_text_color', '#FFFFFF');
$tab_highlight_color = setConfigValue('tab_highlight_color', '#002832');
$firebaseauthserverkey = setConfigValue('firebaseauthserverkey', '');
$mobileappOption = setConfigValue('mobileappOption', '0');
$androidAppBundleid = setConfigValue('androidAppBundleid', 'com.inscripts.cometchat');
$iosAppBundleid = setConfigValue('iosAppBundleid', 'com.inscripts.cometchat');
$useWhitelabelledapp = setConfigValue('useWhitelabelledapp', '0');
$mobileappPlaystore = setConfigValue('mobileappPlaystore', 'https://play.google.com/store/apps/details?id=com.inscripts.cometchat&hl=en');
$mobileappAppstore = setConfigValue('mobileappAppstore', 'https://itunes.apple.com/in/app/cometchat/id594110077?mt=8');
/* SETTINGS END */
$oneonone_enabled = '1';
$announcement_enabled = '1';
$pushNotifications = '1';
$pushAPIKey = '';
$pushOauthSecret = '';
$pushOauthKey = '';
$notificationName = '';
define('PARSE_PUSH_URL', 'https://api.parse.com/1/push');
define('PARSE_APP_ID', 'JTsXPoBuAIgZnxkIQVcfXIY6ntiCXzTIa44L1b9i');
define('PARSE_REST_KEY', 'CZMS0sBrrnavRdaTmTOwWHmVXoH6h4NAmxagJuoR');
/* 1 => Phone number, 2 => Phone number with email */
$response['mobile_config']['phone_number_enabled'] = '0';
$response['mobile_config']['username_password_enabled'] = '1';
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
コード例 #4
0
ファイル: config.php プロジェクト: albertoneto/localhost
<?php

include_once dirname(dirname(dirname(__FILE__))) . DIRECTORY_SEPARATOR . 'config.php';
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/* SETTINGS START */
$smlWidth = setConfigValue('smlWidth', '420');
$smlHeight = setConfigValue('smlHeight', '250');
/* SETTINGS END */
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
$people = array(':smile:' => 'smile.png', ':laughing:' => 'laughing.png', ':blush:' => 'blush.png', ':smiley:' => 'smiley.png', ':relaxed:' => 'relaxed.png', ':smirk:' => 'smirk.png', ':heart_eyes:' => 'heart_eyes.png', ':kissing_heart:' => 'kissing_heart.png', ':kissing_closed_eyes:' => 'kissing_closed_eyes.png', ':flushed:' => 'flushed.png', ':relieved:' => 'relieved.png', ':satisfied:' => 'satisfied.png', ':grin:' => 'grin.png', ':wink:' => 'wink.png', ':bowtie:' => 'bowtie.png', ':stuck_out_tongue_winking_eye:' => 'stuck_out_tongue_winking_eye.png', ':stuck_out_tongue_closed_eyes:' => 'stuck_out_tongue_closed_eyes.png', ':grinning:' => 'grinning.png', ':kissing:' => 'kissing.png', ':kissing_smiling_eyes:' => 'kissing_smiling_eyes.png', ':stuck_out_tongue:' => 'stuck_out_tongue.png', ':sleeping:' => 'sleeping.png', ':worried:' => 'worried.png', ':frowning:' => 'frowning.png', ':anguished:' => 'anguished.png', ':open_mouth:' => 'open_mouth.png', ':grimacing:' => 'grimacing.png', ':confused:' => 'confused.png', ':hushed:' => 'hushed.png', ':expressionless:' => 'expressionless.png', ':unamused:' => 'unamused.png', ':sweat_smile:' => 'sweat_smile.png', ':sweat:' => 'sweat.png', ':disappointed_relieved:' => 'disappointed_relieved.png', ':weary:' => 'weary.png', ':pensive:' => 'pensive.png', ':disappointed:' => 'disappointed.png', ':confounded:' => 'confounded.png', ':fearful:' => 'fearful.png', ':cold_sweat:' => 'cold_sweat.png', ':persevere:' => 'persevere.png', ':cry:' => 'cry.png', ':sob:' => 'sob.png', ':joy:' => 'joy.png', ':astonished:' => 'astonished.png', ':scream:' => 'scream.png', ':neckbeard:' => 'neckbeard.png', ':tired_face:' => 'tired_face.png', ':angry:' => 'angry.png', ':rage:' => 'rage.png', ':triumph:' => 'triumph.png', ':sleepy:' => 'sleepy.png', ':yum:' => 'yum.png', ':mask:' => 'mask.png', ':sunglasses:' => 'sunglasses.png', ':dizzy_face:' => 'dizzy_face.png', ':imp:' => 'imp.png', ':smiling_imp:' => 'smiling_imp.png', ':neutral_face:' => 'neutral_face.png', ':no_mouth:' => 'no_mouth.png', ':innocent:' => 'innocent.png', ':alien:' => 'alien.png', ':yellow_heart:' => 'yellow_heart.png', ':blue_heart:' => 'blue_heart.png', ':purple_heart:' => 'purple_heart.png', ':heart:' => 'heart.png', ':green_heart:' => 'green_heart.png', ':broken_heart:' => 'broken_heart.png', ':heartbeat:' => 'heartbeat.png', ':heartpulse:' => 'heartpulse.png', ':two_hearts:' => 'two_hearts.png', ':revolving_hearts:' => 'revolving_hearts.png', ':cupid:' => 'cupid.png', ':sparkling_heart:' => 'sparkling_heart.png', ':sparkles:' => 'sparkles.png', ':star:' => 'star.png', ':star2:' => 'star2.png', ':dizzy:' => 'dizzy.png', ':boom:' => 'boom.png', ':collision:' => 'collision.png', ':anger:' => 'anger.png', ':exclamation:' => 'exclamation.png', ':question:' => 'question.png', ':grey_exclamation:' => 'grey_exclamation.png', ':grey_question:' => 'grey_question.png', ':zzz:' => 'zzz.png', ':dash:' => 'dash.png', ':sweat_drops:' => 'sweat_drops.png', ':notes:' => 'notes.png', ':musical_note:' => 'musical_note.png', ':fire:' => 'fire.png', ':shit:' => 'shit.png', ':thumbsup:' => 'thumbsup.png', ':thumbsdown:' => 'thumbsdown.png', ':ok_hand:' => 'ok_hand.png', ':punch:' => 'punch.png', ':fist:' => 'fist.png', ':v:' => 'v.png', ':wave:' => 'wave.png', ':hand:' => 'hand.png', ':raised_hand:' => 'raised_hand.png', ':open_hands:' => 'open_hands.png', ':point_up:' => 'point_up.png', ':point_down:' => 'point_down.png', ':point_left:' => 'point_left.png', ':point_right:' => 'point_right.png', ':raised_hands:' => 'raised_hands.png', ':pray:' => 'pray.png', ':point_up_2:' => 'point_up_2.png', ':clap:' => 'clap.png', ':muscle:' => 'muscle.png', ':metal:' => 'metal.png', ':walking:' => 'walking.png', ':runner:' => 'runner.png', ':running:' => 'running.png', ':couple:' => 'couple.png', ':family:' => 'family.png', ':two_men_holding_hands:' => 'two_men_holding_hands.png', ':two_women_holding_hands:' => 'two_women_holding_hands.png', ':dancer:' => 'dancer.png', ':dancers:' => 'dancers.png', ':ok_woman:' => 'ok_woman.png', ':no_good:' => 'no_good.png', ':information_desk_person:' => 'information_desk_person.png', ':raising_hand:' => 'raising_hand.png', ':bride_with_veil:' => 'bride_with_veil.png', ':person_with_pouting_face:' => 'person_with_pouting_face.png', ':person_frowning:' => 'person_frowning.png', ':bow:' => 'bow.png', ':couplekiss:' => 'couplekiss.png', ':couple_with_heart:' => 'couple_with_heart.png', ':massage:' => 'massage.png', ':haircut:' => 'haircut.png', ':nail_care:' => 'nail_care.png', ':boy:' => 'boy.png', ':girl:' => 'girl.png', ':woman:' => 'woman.png', ':man:' => 'man.png', ':baby:' => 'baby.png', ':older_woman:' => 'older_woman.png', ':older_man:' => 'older_man.png', ':person_with_blond_hair:' => 'person_with_blond_hair.png', ':man_with_gua_pi_mao:' => 'man_with_gua_pi_mao.png', ':man_with_turban:' => 'man_with_turban.png', ':construction_worker:' => 'construction_worker.png', ':cop:' => 'cop.png', ':angel:' => 'angel.png', ':princess:' => 'princess.png', ':smiley_cat:' => 'smiley_cat.png', ':smile_cat:' => 'smile_cat.png', ':heart_eyes_cat:' => 'heart_eyes_cat.png', ':kissing_cat:' => 'kissing_cat.png', ':smirk_cat:' => 'smirk_cat.png', ':scream_cat:' => 'scream_cat.png', ':crying_cat_face:' => 'crying_cat_face.png', ':joy_cat:' => 'joy_cat.png', ':pouting_cat:' => 'pouting_cat.png', ':japanese_ogre:' => 'japanese_ogre.png', ':japanese_goblin:' => 'japanese_goblin.png', ':see_no_evil:' => 'see_no_evil.png', ':hear_no_evil:' => 'hear_no_evil.png', ':speak_no_evil:' => 'speak_no_evil.png', ':guardsman:' => 'guardsman.png', ':skull:' => 'skull.png', ':feet:' => 'feet.png', ':lips:' => 'lips.png', ':kiss:' => 'kiss.png', ':droplet:' => 'droplet.png', ':ear:' => 'ear.png', ':eyes:' => 'eyes.png', ':nose:' => 'nose.png', ':tongue:' => 'tongue.png', ':love_letter:' => 'love_letter.png', ':bust_in_silhouette:' => 'bust_in_silhouette.png', ':busts_in_silhouette:' => 'busts_in_silhouette.png', ':speech_balloon:' => 'speech_balloon.png', ':thought_balloon:' => 'thought_balloon.png', ':feelsgood:' => 'feelsgood.png', ':finnadie:' => 'finnadie.png', ':goberserk:' => 'goberserk.png', ':godmode:' => 'godmode.png', ':hurtrealbad:' => 'hurtrealbad.png', ':rage1:' => 'rage1.png', ':rage2:' => 'rage2.png', ':rage3:' => 'rage3.png', ':rage4:' => 'rage4.png', ':suspect:' => 'suspect.png', ':trollface:' => 'trollface.png');
$nature = array(':sunny:' => 'sunny.png', ':umbrella:' => 'umbrella.png', ':cloud:' => 'cloud.png', ':snowflake:' => 'snowflake.png', ':snowman:' => 'snowman.png', ':zap:' => 'zap.png', ':cyclone:' => 'cyclone.png', ':foggy:' => 'foggy.png', ':ocean:' => 'ocean.png', ':cat:' => 'cat.png', ':dog:' => 'dog.png', ':mouse:' => 'mouse.png', ':hamster:' => 'hamster.png', ':rabbit:' => 'rabbit.png', ':wolf:' => 'wolf.png', ':frog:' => 'frog.png', ':tiger:' => 'tiger.png', ':koala:' => 'koala.png', ':bear:' => 'bear.png', ':pig:' => 'pig.png', ':pig_nose:' => 'pig_nose.png', ':cow:' => 'cow.png', ':boar:' => 'boar.png', ':monkey_face:' => 'monkey_face.png', ':monkey:' => 'monkey.png', ':horse:' => 'horse.png', ':racehorse:' => 'racehorse.png', ':camel:' => 'camel.png', ':sheep:' => 'sheep.png', ':elephant:' => 'elephant.png', ':panda_face:' => 'panda_face.png', ':snake:' => 'snake.png', ':bird:' => 'bird.png', ':baby_chick:' => 'baby_chick.png', ':hatched_chick:' => 'hatched_chick.png', ':hatching_chick:' => 'hatching_chick.png', ':chicken:' => 'chicken.png', ':penguin:' => 'penguin.png', ':turtle:' => 'turtle.png', ':bug:' => 'bug.png', ':honeybee:' => 'honeybee.png', ':ant:' => 'ant.png', ':beetle:' => 'beetle.png', ':snail:' => 'snail.png', ':octopus:' => 'octopus.png', ':tropical_fish:' => 'tropical_fish.png', ':fish:' => 'fish.png', ':whale:' => 'whale.png', ':whale2:' => 'whale2.png', ':dolphin:' => 'dolphin.png', ':cow2:' => 'cow2.png', ':ram:' => 'ram.png', ':rat:' => 'rat.png', ':water_buffalo:' => 'water_buffalo.png', ':tiger2:' => 'tiger2.png', ':rabbit2:' => 'rabbit2.png', ':dragon:' => 'dragon.png', ':goat:' => 'goat.png', ':rooster:' => 'rooster.png', ':dog2:' => 'dog2.png', ':pig2:' => 'pig2.png', ':mouse2:' => 'mouse2.png', ':ox:' => 'ox.png', ':dragon_face:' => 'dragon_face.png', ':blowfish:' => 'blowfish.png', ':crocodile:' => 'crocodile.png', ':dromedary_camel:' => 'dromedary_camel.png', ':leopard:' => 'leopard.png', ':cat2:' => 'cat2.png', ':poodle:' => 'poodle.png', ':paw_prints:' => 'paw_prints.png', ':bouquet:' => 'bouquet.png', ':cherry_blossom:' => 'cherry_blossom.png', ':tulip:' => 'tulip.png', ':four_leaf_clover:' => 'four_leaf_clover.png', ':rose:' => 'rose.png', ':sunflower:' => 'sunflower.png', ':hibiscus:' => 'hibiscus.png', ':maple_leaf:' => 'maple_leaf.png', ':leaves:' => 'leaves.png', ':fallen_leaf:' => 'fallen_leaf.png', ':herb:' => 'herb.png', ':mushroom:' => 'mushroom.png', ':cactus:' => 'cactus.png', ':palm_tree:' => 'palm_tree.png', ':evergreen_tree:' => 'evergreen_tree.png', ':deciduous_tree:' => 'deciduous_tree.png', ':chestnut:' => 'chestnut.png', ':seedling:' => 'seedling.png', ':blossom:' => 'blossom.png', ':ear_of_rice:' => 'ear_of_rice.png', ':shell:' => 'shell.png', ':globe_with_meridians:' => 'globe_with_meridians.png', ':sun_with_face:' => 'sun_with_face.png', ':full_moon_with_face:' => 'full_moon_with_face.png', ':new_moon_with_face:' => 'new_moon_with_face.png', ':new_moon:' => 'new_moon.png', ':waxing_crescent_moon:' => 'waxing_crescent_moon.png', ':first_quarter_moon:' => 'first_quarter_moon.png', ':waxing_gibbous_moon:' => 'waxing_gibbous_moon.png', ':full_moon:' => 'full_moon.png', ':waning_gibbous_moon:' => 'waning_gibbous_moon.png', ':last_quarter_moon:' => 'last_quarter_moon.png', ':waning_crescent_moon:' => 'waning_crescent_moon.png', ':last_quarter_moon_with_face:' => 'last_quarter_moon_with_face.png', ':first_quarter_moon_with_face:' => 'first_quarter_moon_with_face.png', ':moon:' => 'moon.png', ':earth_africa:' => 'earth_africa.png', ':earth_americas:' => 'earth_americas.png', ':earth_asia:' => 'earth_asia.png', ':volcano:' => 'volcano.png', ':milky_way:' => 'milky_way.png', ':partly_sunny:' => 'partly_sunny.png', ':octocat:' => 'octocat.png', ':squirrel:' => 'squirrel.png');
$objects = array(':bamboo:' => 'bamboo.png', ':gift_heart:' => 'gift_heart.png', ':dolls:' => 'dolls.png', ':school_satchel:' => 'school_satchel.png', ':mortar_board:' => 'mortar_board.png', ':flags:' => 'flags.png', ':fireworks:' => 'fireworks.png', ':sparkler:' => 'sparkler.png', ':wind_chime:' => 'wind_chime.png', ':rice_scene:' => 'rice_scene.png', ':jack_o_lantern:' => 'jack_o_lantern.png', ':ghost:' => 'ghost.png', ':santa:' => 'santa.png', ':christmas_tree:' => 'christmas_tree.png', ':gift:' => 'gift.png', ':bell:' => 'bell.png', ':no_bell:' => 'no_bell.png', ':tanabata_tree:' => 'tanabata_tree.png', ':tada:' => 'tada.png', ':confetti_ball:' => 'confetti_ball.png', ':balloon:' => 'balloon.png', ':crystal_ball:' => 'crystal_ball.png', ':cd:' => 'cd.png', ':dvd:' => 'dvd.png', ':floppy_disk:' => 'floppy_disk.png', ':camera:' => 'camera.png', ':video_camera:' => 'video_camera.png', ':movie_camera:' => 'movie_camera.png', ':computer:' => 'computer.png', ':tv:' => 'tv.png', ':iphone:' => 'iphone.png', ':phone:' => 'phone.png', ':telephone:' => 'telephone.png', ':telephone_receiver:' => 'telephone_receiver.png', ':pager:' => 'pager.png', ':fax:' => 'fax.png', ':minidisc:' => 'minidisc.png', ':vhs:' => 'vhs.png', ':sound:' => 'sound.png', ':speaker:' => 'speaker.png', ':mute:' => 'mute.png', ':loudspeaker:' => 'loudspeaker.png', ':mega:' => 'mega.png', ':hourglass:' => 'hourglass.png', ':hourglass_flowing_sand:' => 'hourglass_flowing_sand.png', ':alarm_clock:' => 'alarm_clock.png', ':watch:' => 'watch.png', ':radio:' => 'radio.png', ':satellite:' => 'satellite.png', ':loop:' => 'loop.png', ':mag:' => 'mag.png', ':mag_right:' => 'mag_right.png', ':unlock:' => 'unlock.png', ':lock:' => 'lock.png', ':lock_with_ink_pen:' => 'lock_with_ink_pen.png', ':closed_lock_with_key:' => 'closed_lock_with_key.png', ':key:' => 'key.png', ':bulb:' => 'bulb.png', ':flashlight:' => 'flashlight.png', ':high_brightness:' => 'high_brightness.png', ':low_brightness:' => 'low_brightness.png', ':electric_plug:' => 'electric_plug.png', ':battery:' => 'battery.png', ':calling:' => 'calling.png', ':email:' => 'email.png', ':mailbox:' => 'mailbox.png', ':postbox:' => 'postbox.png', ':bath:' => 'bath.png', ':bathtub:' => 'bathtub.png', ':shower:' => 'shower.png', ':toilet:' => 'toilet.png', ':wrench:' => 'wrench.png', ':nut_and_bolt:' => 'nut_and_bolt.png', ':hammer:' => 'hammer.png', ':seat:' => 'seat.png', ':moneybag:' => 'moneybag.png', ':yen:' => 'yen.png', ':dollar:' => 'dollar.png', ':pound:' => 'pound.png', ':euro:' => 'euro.png', ':credit_card:' => 'credit_card.png', ':money_with_wings:' => 'money_with_wings.png', ':e-mail:' => 'e-mail.png', ':inbox_tray:' => 'inbox_tray.png', ':outbox_tray:' => 'outbox_tray.png', ':envelope:' => 'envelope.png', ':incoming_envelope:' => 'incoming_envelope.png', ':postal_horn:' => 'postal_horn.png', ':mailbox_closed:' => 'mailbox_closed.png', ':mailbox_with_mail:' => 'mailbox_with_mail.png', ':mailbox_with_no_mail:' => 'mailbox_with_no_mail.png', ':door:' => 'door.png', ':smoking:' => 'smoking.png', ':bomb:' => 'bomb.png', ':gun:' => 'gun.png', ':hocho:' => 'hocho.png', ':pill:' => 'pill.png', ':syringe:' => 'syringe.png', ':page_facing_up:' => 'page_facing_up.png', ':page_with_curl:' => 'page_with_curl.png', ':bookmark_tabs:' => 'bookmark_tabs.png', ':bar_chart:' => 'bar_chart.png', ':chart_with_upwards_trend:' => 'chart_with_upwards_trend.png', ':chart_with_downwards_trend:' => 'chart_with_downwards_trend.png', ':scroll:' => 'scroll.png', ':clipboard:' => 'clipboard.png', ':calendar:' => 'calendar.png', ':date:' => 'date.png', ':card_index:' => 'card_index.png', ':file_folder:' => 'file_folder.png', ':open_file_folder:' => 'open_file_folder.png', ':scissors:' => 'scissors.png', ':pushpin:' => 'pushpin.png', ':paperclip:' => 'paperclip.png', ':black_nib:' => 'black_nib.png', ':pencil2:' => 'pencil2.png', ':straight_ruler:' => 'straight_ruler.png', ':triangular_ruler:' => 'triangular_ruler.png', ':closed_book:' => 'closed_book.png', ':green_book:' => 'green_book.png', ':blue_book:' => 'blue_book.png', ':orange_book:' => 'orange_book.png', ':notebook:' => 'notebook.png', ':notebook_with_decorative_cover:' => 'notebook_with_decorative_cover.png', ':ledger:' => 'ledger.png', ':books:' => 'books.png', ':bookmark:' => 'bookmark.png', ':name_badge:' => 'name_badge.png', ':microscope:' => 'microscope.png', ':telescope:' => 'telescope.png', ':newspaper:' => 'newspaper.png', ':football:' => 'football.png', ':basketball:' => 'basketball.png', ':soccer:' => 'soccer.png', ':baseball:' => 'baseball.png', ':tennis:' => 'tennis.png', ':8ball:' => '8ball.png', ':rugby_football:' => 'rugby_football.png', ':bowling:' => 'bowling.png', ':golf:' => 'golf.png', ':mountain_bicyclist:' => 'mountain_bicyclist.png', ':bicyclist:' => 'bicyclist.png', ':horse_racing:' => 'horse_racing.png', ':snowboarder:' => 'snowboarder.png', ':swimmer:' => 'swimmer.png', ':surfer:' => 'surfer.png', ':ski:' => 'ski.png', ':spades:' => 'spades.png', ':hearts:' => 'hearts.png', ':clubs:' => 'clubs.png', ':diamonds:' => 'diamonds.png', ':gem:' => 'gem.png', ':ring:' => 'ring.png', ':trophy:' => 'trophy.png', ':musical_score:' => 'musical_score.png', ':musical_keyboard:' => 'musical_keyboard.png', ':violin:' => 'violin.png', ':space_invader:' => 'space_invader.png', ':video_game:' => 'video_game.png', ':black_joker:' => 'black_joker.png', ':flower_playing_cards:' => 'flower_playing_cards.png', ':game_die:' => 'game_die.png', ':dart:' => 'dart.png', ':mahjong:' => 'mahjong.png', ':clapper:' => 'clapper.png', ':memo:' => 'memo.png', ':pencil:' => 'pencil.png', ':book:' => 'book.png', ':art:' => 'art.png', ':microphone:' => 'microphone.png', ':headphones:' => 'headphones.png', ':trumpet:' => 'trumpet.png', ':saxophone:' => 'saxophone.png', ':guitar:' => 'guitar.png', ':shoe:' => 'shoe.png', ':sandal:' => 'sandal.png', ':high_heel:' => 'high_heel.png', ':lipstick:' => 'lipstick.png', ':boot:' => 'boot.png', ':shirt:' => 'shirt.png', ':tshirt:' => 'tshirt.png', ':necktie:' => 'necktie.png', ':womans_clothes:' => 'womans_clothes.png', ':dress:' => 'dress.png', ':running_shirt_with_sash:' => 'running_shirt_with_sash.png', ':jeans:' => 'jeans.png', ':kimono:' => 'kimono.png', ':bikini:' => 'bikini.png', ':ribbon:' => 'ribbon.png', ':tophat:' => 'tophat.png', ':crown:' => 'crown.png', ':womans_hat:' => 'womans_hat.png', ':mans_shoe:' => 'mans_shoe.png', ':closed_umbrella:' => 'closed_umbrella.png', ':briefcase:' => 'briefcase.png', ':handbag:' => 'handbag.png', ':pouch:' => 'pouch.png', ':purse:' => 'purse.png', ':eyeglasses:' => 'eyeglasses.png', ':fishing_pole_and_fish:' => 'fishing_pole_and_fish.png', ':coffee:' => 'coffee.png', ':tea:' => 'tea.png', ':sake:' => 'sake.png', ':baby_bottle:' => 'baby_bottle.png', ':beer:' => 'beer.png', ':beers:' => 'beers.png', ':cocktail:' => 'cocktail.png', ':tropical_drink:' => 'tropical_drink.png', ':wine_glass:' => 'wine_glass.png', ':fork_and_knife:' => 'fork_and_knife.png', ':pizza:' => 'pizza.png', ':hamburger:' => 'hamburger.png', ':fries:' => 'fries.png', ':poultry_leg:' => 'poultry_leg.png', ':meat_on_bone:' => 'meat_on_bone.png', ':spaghetti:' => 'spaghetti.png', ':curry:' => 'curry.png', ':fried_shrimp:' => 'fried_shrimp.png', ':bento:' => 'bento.png', ':sushi:' => 'sushi.png', ':fish_cake:' => 'fish_cake.png', ':rice_ball:' => 'rice_ball.png', ':rice_cracker:' => 'rice_cracker.png', ':rice:' => 'rice.png', ':ramen:' => 'ramen.png', ':stew:' => 'stew.png', ':oden:' => 'oden.png', ':dango:' => 'dango.png', ':egg:' => 'egg.png', ':bread:' => 'bread.png', ':doughnut:' => 'doughnut.png', ':custard:' => 'custard.png', ':icecream:' => 'icecream.png', ':ice_cream:' => 'ice_cream.png', ':shaved_ice:' => 'shaved_ice.png', ':birthday:' => 'birthday.png', ':cake:' => 'cake.png', ':cookie:' => 'cookie.png', ':chocolate_bar:' => 'chocolate_bar.png', ':candy:' => 'candy.png', ':lollipop:' => 'lollipop.png', ':honey_pot:' => 'honey_pot.png', ':apple:' => 'apple.png', ':green_apple:' => 'green_apple.png', ':tangerine:' => 'tangerine.png', ':lemon:' => 'lemon.png', ':cherries:' => 'cherries.png', ':grapes:' => 'grapes.png', ':watermelon:' => 'watermelon.png', ':strawberry:' => 'strawberry.png', ':peach:' => 'peach.png', ':melon:' => 'melon.png', ':banana:' => 'banana.png', ':pear:' => 'pear.png', ':pineapple:' => 'pineapple.png', ':sweet_potato:' => 'sweet_potato.png', ':eggplant:' => 'eggplant.png', ':tomato:' => 'tomato.png', ':corn:' => 'corn.png');
$places = array(':house:' => 'house.png', ':house_with_garden:' => 'house_with_garden.png', ':school:' => 'school.png', ':office:' => 'office.png', ':post_office:' => 'post_office.png', ':hospital:' => 'hospital.png', ':bank:' => 'bank.png', ':convenience_store:' => 'convenience_store.png', ':love_hotel:' => 'love_hotel.png', ':hotel:' => 'hotel.png', ':wedding:' => 'wedding.png', ':church:' => 'church.png', ':department_store:' => 'department_store.png', ':european_post_office:' => 'european_post_office.png', ':city_sunrise:' => 'city_sunrise.png', ':city_sunset:' => 'city_sunset.png', ':japanese_castle:' => 'japanese_castle.png', ':european_castle:' => 'european_castle.png', ':tent:' => 'tent.png', ':factory:' => 'factory.png', ':tokyo_tower:' => 'tokyo_tower.png', ':japan:' => 'japan.png', ':mount_fuji:' => 'mount_fuji.png', ':sunrise_over_mountains:' => 'sunrise_over_mountains.png', ':sunrise:' => 'sunrise.png', ':stars:' => 'stars.png', ':statue_of_liberty:' => 'statue_of_liberty.png', ':bridge_at_night:' => 'bridge_at_night.png', ':carousel_horse:' => 'carousel_horse.png', ':rainbow:' => 'rainbow.png', ':ferris_wheel:' => 'ferris_wheel.png', ':fountain:' => 'fountain.png', ':roller_coaster:' => 'roller_coaster.png', ':ship:' => 'ship.png', ':speedboat:' => 'speedboat.png', ':boat:' => 'boat.png', ':sailboat:' => 'sailboat.png', ':rowboat:' => 'rowboat.png', ':anchor:' => 'anchor.png', ':rocket:' => 'rocket.png', ':airplane:' => 'airplane.png', ':helicopter:' => 'helicopter.png', ':steam_locomotive:' => 'steam_locomotive.png', ':tram:' => 'tram.png', ':mountain_railway:' => 'mountain_railway.png', ':bike:' => 'bike.png', ':aerial_tramway:' => 'aerial_tramway.png', ':suspension_railway:' => 'suspension_railway.png', ':mountain_cableway:' => 'mountain_cableway.png', ':tractor:' => 'tractor.png', ':blue_car:' => 'blue_car.png', ':oncoming_automobile:' => 'oncoming_automobile.png', ':car:' => 'car.png', ':red_car:' => 'red_car.png', ':taxi:' => 'taxi.png', ':oncoming_taxi:' => 'oncoming_taxi.png', ':articulated_lorry:' => 'articulated_lorry.png', ':bus:' => 'bus.png', ':oncoming_bus:' => 'oncoming_bus.png', ':rotating_light:' => 'rotating_light.png', ':police_car:' => 'police_car.png', ':oncoming_police_car:' => 'oncoming_police_car.png', ':fire_engine:' => 'fire_engine.png', ':ambulance:' => 'ambulance.png', ':minibus:' => 'minibus.png', ':truck:' => 'truck.png', ':train:' => 'train.png', ':station:' => 'station.png', ':train2:' => 'train2.png', ':bullettrain_front:' => 'bullettrain_front.png', ':bullettrain_side:' => 'bullettrain_side.png', ':light_rail:' => 'light_rail.png', ':monorail:' => 'monorail.png', ':railway_car:' => 'railway_car.png', ':trolleybus:' => 'trolleybus.png', ':ticket:' => 'ticket.png', ':fuelpump:' => 'fuelpump.png', ':vertical_traffic_light:' => 'vertical_traffic_light.png', ':traffic_light:' => 'traffic_light.png', ':warning:' => 'warning.png', ':construction:' => 'construction.png', ':beginner:' => 'beginner.png', ':atm:' => 'atm.png', ':slot_machine:' => 'slot_machine.png', ':busstop:' => 'busstop.png', ':barber:' => 'barber.png', ':hotsprings:' => 'hotsprings.png', ':checkered_flag:' => 'checkered_flag.png', ':crossed_flags:' => 'crossed_flags.png', ':izakaya_lantern:' => 'izakaya_lantern.png', ':moyai:' => 'moyai.png', ':circus_tent:' => 'circus_tent.png', ':performing_arts:' => 'performing_arts.png', ':round_pushpin:' => 'round_pushpin.png', ':triangular_flag_on_post:' => 'triangular_flag_on_post.png', ':in:' => 'in.png', ':jp:' => 'jp.png', ':kr:' => 'kr.png', ':cn:' => 'cn.png', ':us:' => 'us.png', ':fr:' => 'fr.png', ':es:' => 'es.png', ':it:' => 'it.png', ':ru:' => 'ru.png', ':gb:' => 'gb.png', ':uk:' => 'uk.png', ':de:' => 'de.png');
$symbols = array(':one:' => 'one.png', ':two:' => 'two.png', ':three:' => 'three.png', ':four:' => 'four.png', ':five:' => 'five.png', ':six:' => 'six.png', ':seven:' => 'seven.png', ':eight:' => 'eight.png', ':nine:' => 'nine.png', ':keycap_ten:' => 'keycap_ten.png', ':1234:' => '1234.png', ':zero:' => 'zero.png', ':hash:' => 'hash.png', ':symbols1:' => 'symbols1.png', ':arrow_backward:' => 'arrow_backward.png', ':arrow_down:' => 'arrow_down.png', ':arrow_forward:' => 'arrow_forward.png', ':arrow_left:' => 'arrow_left.png', ':capital_abcd:' => 'capital_abcd.png', ':abcd:' => 'abcd.png', ':abc:' => 'abc.png', ':arrow_lower_left:' => 'arrow_lower_left.png', ':arrow_lower_right:' => 'arrow_lower_right.png', ':arrow_right:' => 'arrow_right.png', ':arrow_up:' => 'arrow_up.png', ':arrow_upper_left:' => 'arrow_upper_left.png', ':arrow_upper_right:' => 'arrow_upper_right.png', ':arrow_double_down:' => 'arrow_double_down.png', ':arrow_double_up:' => 'arrow_double_up.png', ':arrow_down_small:' => 'arrow_down_small.png', ':arrow_heading_down:' => 'arrow_heading_down.png', ':arrow_heading_up:' => 'arrow_heading_up.png', ':leftwards_arrow_with_hook:' => 'leftwards_arrow_with_hook.png', ':arrow_right_hook:' => 'arrow_right_hook.png', ':left_right_arrow:' => 'left_right_arrow.png', ':arrow_up_down:' => 'arrow_up_down.png', ':arrow_up_small:' => 'arrow_up_small.png', ':arrows_clockwise:' => 'arrows_clockwise.png', ':arrows_counterclockwise:' => 'arrows_counterclockwise.png', ':rewind:' => 'rewind.png', ':fast_forward:' => 'fast_forward.png', ':information_source:' => 'information_source.png', ':ok:' => 'ok.png', ':twisted_rightwards_arrows:' => 'twisted_rightwards_arrows.png', ':repeat:' => 'repeat.png', ':repeat_one:' => 'repeat_one.png', ':new:' => 'new.png', ':top:' => 'top.png', ':up:' => 'up.png', ':cool:' => 'cool.png', ':free:' => 'free.png', ':ng:' => 'ng.png', ':cinema:' => 'cinema.png', ':koko:' => 'koko.png', ':signal_strength:' => 'signal_strength.png', ':u5272:' => 'u5272.png', ':u5408:' => 'u5408.png', ':u55b6:' => 'u55b6.png', ':u6307:' => 'u6307.png', ':u6708:' => 'u6708.png', ':u6709:' => 'u6709.png', ':u6e80:' => 'u6e80.png', ':u7121:' => 'u7121.png', ':u7533:' => 'u7533.png', ':u7a7a:' => 'u7a7a.png', ':u7981:' => 'u7981.png', ':sa:' => 'sa.png', ':restroom:' => 'restroom.png', ':mens:' => 'mens.png', ':womens:' => 'womens.png', ':baby_symbol:' => 'baby_symbol.png', ':no_smoking:' => 'no_smoking.png', ':parking:' => 'parking.png', ':wheelchair:' => 'wheelchair.png', ':metro:' => 'metro.png', ':baggage_claim:' => 'baggage_claim.png', ':accept:' => 'accept.png', ':wc:' => 'wc.png', ':potable_water:' => 'potable_water.png', ':put_litter_in_its_place:' => 'put_litter_in_its_place.png', ':secret:' => 'secret.png', ':congratulations:' => 'congratulations.png', ':m:' => 'm.png', ':passport_control:' => 'passport_control.png', ':left_luggage:' => 'left_luggage.png', ':customs:' => 'customs.png', ':ideograph_advantage:' => 'ideograph_advantage.png', ':cl:' => 'cl.png', ':sos:' => 'sos.png', ':id:' => 'id.png', ':no_entry_sign:' => 'no_entry_sign.png', ':underage:' => 'underage.png', ':no_mobile_phones:' => 'no_mobile_phones.png', ':do_not_litter:' => 'do_not_litter.png', ':non-potable_water:' => 'non-potable_water.png', ':no_bicycles:' => 'no_bicycles.png', ':no_pedestrians:' => 'no_pedestrians.png', ':children_crossing:' => 'children_crossing.png', ':no_entry:' => 'no_entry.png', ':eight_spoked_asterisk:' => 'eight_spoked_asterisk.png', ':eight_pointed_black_star:' => 'eight_pointed_black_star.png', ':heart_decoration:' => 'heart_decoration.png', ':vs:' => 'vs.png', ':vibration_mode:' => 'vibration_mode.png', ':mobile_phone_off:' => 'mobile_phone_off.png', ':chart:' => 'chart.png', ':currency_exchange:' => 'currency_exchange.png', ':aries:' => 'aries.png', ':taurus:' => 'taurus.png', ':gemini:' => 'gemini.png', ':cancer:' => 'cancer.png', ':leo:' => 'leo.png', ':virgo:' => 'virgo.png', ':libra:' => 'libra.png', ':scorpius:' => 'scorpius.png', ':sagittarius:' => 'sagittarius.png', ':capricorn:' => 'capricorn.png', ':aquarius:' => 'aquarius.png', ':pisces:' => 'pisces.png', ':ophiuchus:' => 'ophiuchus.png', ':six_pointed_star:' => 'six_pointed_star.png', ':negative_squared_cross_mark:' => 'negative_squared_cross_mark.png', ':a:' => 'a.png', ':b:' => 'b.png', ':ab:' => 'ab.png', ':o2:' => 'o2.png', ':diamond_shape_with_a_dot_inside:' => 'diamond_shape_with_a_dot_inside.png', ':recycle:' => 'recycle.png', ':end:' => 'end.png', ':on:' => 'on.png', ':soon:' => 'soon.png', ':clock1:' => 'clock1.png', ':clock130:' => 'clock130.png', ':clock10:' => 'clock10.png', ':clock1030:' => 'clock1030.png', ':clock11:' => 'clock11.png', ':clock1130:' => 'clock1130.png', ':clock12:' => 'clock12.png', ':clock1230:' => 'clock1230.png', ':clock2:' => 'clock2.png', ':clock230:' => 'clock230.png', ':clock3:' => 'clock3.png', ':clock330:' => 'clock330.png', ':clock4:' => 'clock4.png', ':clock430:' => 'clock430.png', ':clock5:' => 'clock5.png', ':clock530:' => 'clock530.png', ':clock6:' => 'clock6.png', ':clock630:' => 'clock630.png', ':clock7:' => 'clock7.png', ':clock730:' => 'clock730.png', ':clock8:' => 'clock8.png', ':clock830:' => 'clock830.png', ':clock9:' => 'clock9.png', ':clock930:' => 'clock930.png', ':heavy_dollar_sign:' => 'heavy_dollar_sign.png', ':copyright:' => 'copyright.png', ':registered:' => 'registered.png', ':tm:' => 'tm.png', ':x:' => 'x.png', ':heavy_exclamation_mark:' => 'heavy_exclamation_mark.png', ':bangbang:' => 'bangbang.png', ':interrobang:' => 'interrobang.png', ':o:' => 'o.png', ':heavy_multiplication_x:' => 'heavy_multiplication_x.png', ':heavy_plus_sign:' => 'heavy_plus_sign.png', ':heavy_minus_sign:' => 'heavy_minus_sign.png', ':heavy_division_sign:' => 'heavy_division_sign.png', ':white_flower:' => 'white_flower.png', ':100:' => '100.png', ':heavy_check_mark:' => 'heavy_check_mark.png', ':ballot_box_with_check:' => 'ballot_box_with_check.png', ':radio_button:' => 'radio_button.png', ':link:' => 'link.png', ':curly_loop:' => 'curly_loop.png', ':wavy_dash:' => 'wavy_dash.png', ':part_alternation_mark:' => 'part_alternation_mark.png', ':trident:' => 'trident.png', ':black_square:' => 'black_square.png', ':white_square:' => 'white_square.png', ':white_check_mark:' => 'white_check_mark.png', ':black_square_button:' => 'black_square_button.png', ':white_square_button:' => 'white_square_button.png', ':black_circle:' => 'black_circle.png', ':white_circle:' => 'white_circle.png', ':red_circle:' => 'red_circle.png', ':large_blue_circle:' => 'large_blue_circle.png', ':large_blue_diamond:' => 'large_blue_diamond.png', ':large_orange_diamond:' => 'large_orange_diamond.png', ':small_blue_diamond:' => 'small_blue_diamond.png', ':small_orange_diamond:' => 'small_orange_diamond.png', ':small_red_triangle:' => 'small_red_triangle.png', ':small_red_triangle_down:' => 'small_red_triangle_down.png', ':shipit:' => 'shipit.png');
$smiley_shortcuts = array('(.V.)' => 'alien.png', '(.v.)' => 'alien.png', '(=|' => 'dizzy_face.png', '3-|' => 'unamused.png', ':$' => 'flushed.png', 'O:)' => 'angel.png', 'o:)' => 'angel.png', 'O:-)' => 'angel.png', 'o:-)' => 'angel.png', '>:(' => 'angry.png', '>:)' => 'smiling_imp.png', '>:-(' => 'angry.png', '>:-)' => 'smiling_imp.png', '>:O' => 'angry.png', '>:o' => 'angry.png', '>=)' => 'smiling_imp.png', ':(' => 'disappointed.png', ':)' => 'smiley.png', ':*' => 'kissing_heart.png', ':-(' => 'disappointed.png', ':-)' => 'smiley.png', ':-*' => 'kissing_heart.png', ':-/' => 'confused.png', ':-\\' => 'confused.png', ':-D' => 'grinning.png', ':-O' => 'open_mouth.png', ':-o' => 'open_mouth.png', ':-p' => 'stuck_out_tongue_closed_eyes.png', ':-P' => 'stuck_out_tongue_closed_eyes.png', ':-S' => 'frowning.png', ':-s' => 'frowning.png', ':-|' => 'neutral_face.png', ':/' => 'confused.png', ':\'(' => 'cry.png', ':\'-(' => 'cry.png', ':\\' => 'confused.png', ':D' => 'grinning.png', ':dead:' => 'astonished.png', ':evil:' => 'japanese_ogre.png', ':grin:' => 'grin.png', ':impatient:' => 'triumph.png', ':mad:' => 'rage.png', ':nerd:' => 'eyeglasses.png', ':O' => 'open_mouth.png', ':o' => 'open_mouth.png', ':p' => 'stuck_out_tongue_closed_eyes.png', ':P' => 'stuck_out_tongue_closed_eyes.png', ':S' => 'frowning.png', ':s' => 'frowning.png', ':sarcasm:' => 'stuck_out_tongue_winking_eye.png', ':shocked:' => 'scream.png', ':silly:' => 'stuck_out_tongue.png', ':sing:' => 'microphone.png', ':smitten:' => 'heart_eyes.png', ':smug:' => 'smirk.png', ':sour:' => 'confounded.png', ':stress:' => 'sweat.png', ':whistle:' => 'kissing_smiling_eyes.png', ':x' => 'mask.png', ':X' => 'mask.png', ':|' => 'neutral_face.png', ';)' => 'wink.png', ';-)' => 'wink.png', '</3' => 'broken_heart.png', '<3<3' => 'two_hearts.png', '<3' => 'heart.png', '=)' => 'smiley.png', '=D' => 'grinning.png', 'B)' => 'sunglasses.png', 'B-)' => 'sunglasses.png', 'x(' => 'angry.png', 'x-(' => 'angry.png', 'x-D' => 'satisfied.png', 'xD' => 'satisfied.png', 'XD' => 'satisfied.png');
$emojis = array_merge($people, $nature, $objects, $places, $symbols, $smiley_shortcuts);
function cmpsmileyskey($a, $b)
{
    if (strlen($a) == strlen($b)) {
        return 0;
    }
    if (strlen($a) > strlen($b)) {
        return -1;
    }
    return 1;
}
コード例 #5
0
ファイル: edit_snow_machine.php プロジェクト: Yanrs/PkmnChan
    if ($level <= 0 || $level > 100) {
        $errors[] = 'Level needs to be between 1 and 100.';
    }
    $chance = (int) $_POST['chance'];
    if ($chance <= 0 || $chance > 100) {
        $errors[] = 'Chance needs to be between 1 and 100.';
    }
    if (count($errors) >= 1) {
        echo '<div class="error">' . implode('</div><div class="error">', $errors) . '</div>';
    } else {
        echo '<div class="notice">The pokemon has been edited.</div>';
        $name = cleanSql($name);
        setConfigValue('snow_machine_price', $price);
        setConfigValue('snow_machine_pokemon', $name);
        setConfigValue('snow_machine_chance', $chance);
        setConfigValue('snow_machine_pokemon_level', $level);
        $handle = fopen('edit_snow_machine_log.txt', 'a+');
        fwrite($handle, "{$_SESSION['username']} edited the snow machine. Name: {$name}, Price: {$price}, Chance: {$chance}, Level: {$level}" . PHP_EOL);
        fclose($handle);
    }
}
$smPrice = getConfigValue('snow_machine_price');
$smPokemon = getConfigValue('snow_machine_pokemon');
$smChance = getConfigValue('snow_machine_chance');
$smPokemonLevel = getConfigValue('snow_machine_pokemon_level');
echo '
    <form method="post">
        <table class="pretty-table center">
            <tr>
                <th colspan="2">Edit Snow Machine</th>
            </tr>
コード例 #6
0
function setIPAddress($option)
{
    $ipAddress = $_SERVER['REMOTE_ADDR'];
    return setConfigValue('allowedIP', $ipAddress);
}
コード例 #7
0
function index()
{
    global $body;
    global $extensions;
    global $navigation;
    global $ts;
    $extensions_core = setConfigValue('extensions_core', array());
    $extensionslist = '';
    $extensiondata = '';
    foreach ($extensions_core as $extension => $extensioninfo) {
        if (is_dir(dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR . 'extensions' . DIRECTORY_SEPARATOR . $extension)) {
            $titles[$extension] = $extensioninfo;
            if ($extension != 'desktop' && $extension != 'mobileapp') {
                $extensionhref = 'href="?module=extensions&amp;action=addextension&amp;data=' . $extension . '&amp;ts=' . $ts . '"';
                if (in_array($extension, $extensions)) {
                    $extensionhref = 'href="javascript: void(0)" style="opacity: 0.5;cursor: default;"';
                }
                $extensiondata = '<span style="font-size:11px;float:right;margin-top:2px;margin-right:5px;"><a ' . $extensionhref . ' id="' . $extension . '">add</a></span>';
                if ($extensioninfo == 'mobileapp_title') {
                    $extensiondata = '';
                }
                $extensionslist .= '<li class="ui-state-default"><img src="../extensions/' . $extension . '/icon.png" style="margin:0;margin-right:5px;float:left;"></img><span style="font-size:11px;float:left;margin-top:2px;margin-left:5px;width:100px">' . $extensioninfo . '</span>' . $extensiondata . '<div style="clear:both"></div></li>';
            }
        }
    }
    $activeextensionsdata = '';
    $activeextensions = '';
    $no_extensions = '';
    $no = 0;
    foreach ($extensions as $ti) {
        $title = ucwords($ti);
        if (file_exists(dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR . 'extensions' . DIRECTORY_SEPARATOR . $ti . DIRECTORY_SEPARATOR . 'settings.php')) {
            $activeextensionsdata = '<a href="javascript:void(0)" onclick="javascript:extensions_configextension(\'' . $ti . '\')" style="margin-right:5px"><img src="images/config.png" title="Configure Extension"></a>';
        }
        if (isset($extensions_core[$ti])) {
            $title = $titles[$ti];
        }
        ++$no;
        if ($title != 'Mobileapp' && $title != 'Desktop') {
            $activeextensionsdata .= '<a href="javascript:void(0)" onclick="javascript:extensions_removeextension(\'' . $no . '\')"><img src="images/remove.png" title="Remove Extension" rel="' . $extension . '"></a>';
        }
        $activeextensions .= '<li class="ui-state-default" id="' . $no . '" d1="' . $ti . '" rel="' . $ti . '"><img src="../extensions/' . $ti . '/icon.png" style="margin:0;margin-top:2px;margin-right:5px;float:left;"></img><span style="font-size:11px;float:left;margin-top:3px;margin-left:5px;" id="' . $ti . '_title">' . stripslashes($title) . '</span><span style="font-size:11px;float:right;margin-top:0px;margin-right:5px;">' . $activeextensionsdata . '</span><div style="clear:both"></div></li>';
    }
    if (!$activeextensions) {
        $no_extensions .= '<div id="no_plugin" style="width: 480px;float: left;color: #333333;">You do not have any extensions activated at the moment. To activate a extension, please add the extension from the list of available extensions.</div>';
    } else {
        $activeextensions = '<ul id="modules_liveextensions">' . $activeextensions . '</ul>';
    }
    $body = <<<EOD
\t{$navigation}

\t<div id="rightcontent" style="float:left;width:720px;border-left:1px dotted #ccc;padding-left:20px;">
\t\t<h2>Live Extensions</h2>
\t\t<h3>Extensions add additional features to CometChat.</h3>

\t\t<div>
\t\t\t{$no_extensions}
\t\t\t{$activeextensions}
\t\t\t<div id="rightnav" style="margin-top:5px">
\t\t\t\t<h1>Available extensions</h1>
\t\t\t\t<ul id="modules_availableextensions">
\t\t\t\t{$extensionslist}
\t\t\t\t</ul>
\t\t\t</div>
\t\t</div>

\t\t<div style="clear:both;padding:7.5px;"></div>
\t</div>

\t<div style="clear:both"></div>

EOD;
    template();
}
コード例 #8
0
ファイル: config.php プロジェクト: albertoneto/localhost
<?php

include_once dirname(dirname(dirname(__FILE__))) . DIRECTORY_SEPARATOR . 'config.php';
$glass_settings = setConfigValue('glass_settings', array('barType' => 'fluid', 'barWidth' => '960', 'barAlign' => 'center', 'barPadding' => '20', 'autoLoadModules' => '1', 'chatboxHeight' => '245', 'chatboxWidth' => '250', 'backgroundOpacity' => '0.93'));
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/* SETTINGS START */
foreach ($glass_settings as $key => $value) {
    ${$key} = $value;
}
/* SETTINGS END */
$iPhoneView = '0';
// iPhone style messages in chatboxes?
コード例 #9
0
ファイル: config.php プロジェクト: albertoneto/localhost
<?php

include_once dirname(dirname(dirname(__FILE__))) . DIRECTORY_SEPARATOR . 'config.php';
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/* SETTINGS START */
$styleOptions = setConfigValue('styleOptions', '000000,96281B,E26A6A,663399,913D88,9B59B6,446CB3,4183D7,6BB9F0,3A539B,67809F,26A65B,1BBC9B,1BA39C,F89406,F9BF3B,D35400,6C7A89');
/* SETTINGS END */
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
コード例 #10
0
ファイル: config.php プロジェクト: albertoneto/localhost
<?php

include_once dirname(dirname(dirname(__FILE__))) . DIRECTORY_SEPARATOR . 'config.php';
if (CROSS_DOMAIN != '1') {
    $http = 'http://';
    if (!empty($_SERVER['HTTPS'])) {
        $http = 'https://';
    }
    $baseUrl = $http . $_SERVER['SERVER_NAME'] . BASE_URL;
} else {
    $baseUrl = BASE_URL;
    if (strpos($baseUrl, 'http') === false) {
        $baseUrl = 'http:' . BASE_URL;
    }
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/* SETTINGS START */
$facebookKey = setConfigValue('facebookKey', '');
$facebookSecret = setConfigValue('facebookSecret', '');
$twitterKey = setConfigValue('twitterKey', '');
$twitterSecret = setConfigValue('twitterSecret', '');
$googleKey = setConfigValue('googleKey', '');
$googleSecret = setConfigValue('googleSecret', '');
/* SETTINGS END */
return array('base_url' => $baseUrl . 'functions/login/', 'networks' => array('facebook' => array('name' => 'Facebook', 'enabled' => true, 'keys' => array('key' => $facebookKey, 'secret' => $facebookSecret)), 'twitter' => array('name' => 'Twitter', 'enabled' => true, 'keys' => array('key' => $twitterKey, 'secret' => $twitterSecret)), 'google' => array('name' => 'Google', 'enabled' => true, 'keys' => array('key' => $googleKey, 'secret' => $googleSecret))), 'debug_enabled' => false, 'log_file' => '');
コード例 #11
0
ファイル: language.m.php プロジェクト: albertoneto/localhost
function editlanguage()
{
    global $body;
    global $navigation;
    global $rtl;
    global $languages;
    $plugins_core = setConfigValue('plugins_core', array());
    $extensions_core = setConfigValue('extensions_core', array());
    $modules_core = setConfigValue('modules_core', array());
    $data = '';
    $lang = $_GET['data'];
    if (empty($data)) {
        $rtly = "";
        $rtln = "";
        if ($rtl == 1) {
            $rtly = "checked";
        } else {
            $rtln = "checked";
        }
        $data .= '<div class="rtltitle">Right to left text:</div><div class="element"><input type="radio" id="rtl" lang_key = "rtl" name="rtl" value="1" ' . $rtly . ' onchange="javascript:language_updatelanguage($(this));" code="' . $lang . '" addontype="core" addonname="default">Yes <input id="rtl" type="radio" ' . $rtln . ' name="rtl" lang_key = "rtl" value="0" onchange="javascript:language_updatelanguage($(this));" code="' . $lang . '" addontype="core" addonname="default">No</div><div style="clear:both;padding:7.5px;"></div>';
    }
    if (file_exists(dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR . 'lang' . DIRECTORY_SEPARATOR . 'en.php')) {
        $array = 'language';
        global ${$array};
        include_once dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR . 'lang' . DIRECTORY_SEPARATOR . 'en.php';
        ${$array} = setNewLanguageValue(${$array}, $lang, 'core', 'default');
        $x = 0;
        $data .= '<h4 onclick="javascript:$(\'#' . md5('') . '\').slideToggle(\'slow\')">core</h4>';
        $data .= '<div id="' . md5('') . '" style="display:none"><form>';
        foreach (${$array} as $key => $value) {
            $x++;
            $data .= '<div style="clear:both"></div><div class="title langtitle" title="' . $key . '">' . $x . ':</div><div class="element"><textarea id="textarea_' . $lang . '_core_default_' . $key . '" lang_key = "' . $key . '" code="' . $lang . '" addontype="core" addonname="default" class="inputbox inputboxlong">' . stripslashes($value) . '</textarea><input type="button" value="Update" onclick="javascript:language_updatelanguage($(this));" class="button updatelanguage" /></div>';
        }
        $data .= '</form></div>';
    }
    $addontypes = array('modules', 'plugins', 'extensions');
    foreach ($addontypes as $addon_type) {
        foreach (${$addon_type . "_core"} as $addon => $addondata) {
            if (file_exists(dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR . $addon_type . DIRECTORY_SEPARATOR . $addon . DIRECTORY_SEPARATOR . 'lang' . DIRECTORY_SEPARATOR . 'en.php')) {
                include_once dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR . $addon_type . DIRECTORY_SEPARATOR . $addon . DIRECTORY_SEPARATOR . 'lang' . DIRECTORY_SEPARATOR . 'en.php';
                $array = $addon . '_language';
                ${$array} = setNewLanguageValue(${$array}, $lang, rtrim($addon_type, 's'), $addon);
                $data .= '<div style="clear:both"></div><h4 onclick="javascript:$(\'#' . md5($addon) . '\').slideToggle(\'slow\')">' . rtrim($addon_type, 's') . ': ' . $addon . '</h4>';
                $data .= '<div id="' . md5($addon) . '" style="display:none"><form>';
                $x = 0;
                foreach (${$array} as $key => $value) {
                    $x++;
                    $data .= '<div style="clear:both"></div><div title="' . $key . '" ><div class="title langtitle" >' . $x . ':</div><div class="element"><textarea id="textarea_' . $lang . '_' . $addon_type . '_' . $addon . '_' . $key . '" lang_key = "' . $key . '" code="' . $lang . '" addontype="' . rtrim($addon_type, 's') . '" addonname="' . $addon . '" class="inputbox inputboxlong">' . stripslashes($value) . '</textarea><input type="button" value="Update" onclick="javascript:language_updatelanguage($(this));" class="button updatelanguage" /></div></div>';
                }
                $data .= '</form></div>';
            } else {
                unset(${$addon_type . "_core"}[$addon]);
            }
        }
    }
    $body = <<<EOD
\t{$navigation}
\t<div id="rightcontent" style="float:left;width:720px;border-left:1px dotted #ccc;padding-left:20px;">
\t\t<h2>Edit language - {$lang}</h2>
\t\t<h3>Please select the section you would like to edit.</h3>
\t\t<div>
\t\t\t<div id="centernav" class="centernavextend">
\t\t\t\t{$data}
\t\t\t\t<div style="clear:both;padding:10px;"></div>
\t\t\t</div>
\t\t</div>

\t</div>

\t<div style="clear:both"></div>
EOD;
    template();
}
コード例 #12
0
ファイル: plugins.m.php プロジェクト: albertoneto/localhost
function chatroomplugins()
{
    global $body;
    global $crplugins;
    global $navigation;
    global $lang;
    global $ts;
    $plugins_core = setConfigValue('plugins_core', array());
    $pluginslist = '';
    foreach ($plugins_core as $plugin => $plugininfo) {
        if (is_dir(dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR . 'plugins' . DIRECTORY_SEPARATOR . $plugin)) {
            if ($plugininfo[1] === 0 || $plugininfo[1] === 2) {
                $titles[$plugin] = $plugininfo;
                $crpluginhref = 'href="?module=plugins&amp;action=addchatroomplugin&amp;data=' . $plugin . '&amp;ts=' . $ts . '"';
                if (in_array($plugin, $crplugins)) {
                    $crpluginhref = 'href="javascript: void(0)" style="opacity: 0.5;cursor: default;"';
                }
                $pluginslist .= '<li class="ui-state-default"><div class="cometchat_pluginsicon cometchat_' . $plugin . '" style="margin:0;margin-right:5px;float:left;"></div><span style="font-size:11px;float:left;margin-top:2px;margin-left:5px;">' . $plugininfo[0] . '</span><span style="font-size:11px;float:right;margin-top:2px;margin-right:5px;"><a ' . $crpluginhref . ' id="' . $plugin . '">add</a></span><div style="clear:both"></div></li>';
            }
        }
    }
    $activeplugins = '';
    $no_plugins = '';
    $no = 0;
    foreach ($crplugins as $ti) {
        $title = ucwords($ti);
        if (isset($plugins_core[$ti])) {
            $title = $titles[$ti][0];
        }
        ++$no;
        $config = '';
        if (file_exists(dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR . 'plugins' . DIRECTORY_SEPARATOR . $ti . DIRECTORY_SEPARATOR . 'settings.php') && $ti != 'clearconversation') {
            $config = ' <a href="javascript:void(0)" onclick="javascript:plugins_configplugin(\'' . $ti . '\')" style="margin-right:5px"><img src="images/config.png" title="Configure Plugin"></a>';
        }
        $activeplugins .= '<li class="ui-state-default" id="' . $no . '" d1="' . $ti . '" rel="' . $ti . '"><div class="cometchat_pluginsicon cometchat_' . $ti . '" style="margin:0;margin-right:5px;margin-top:2px;float:left;"></div><span style="font-size:11px;float:left;margin-top:3px;margin-left:5px;" id="' . $ti . '_title">' . stripslashes($title) . '</span><span style="font-size:11px;float:right;margin-top:0px;margin-right:5px;"> ' . $config . '<a href="javascript:void(0)" onclick="javascript:plugins_removechatroomplugin(\'' . $no . '\')"><img src="images/remove.png" title="Remove Plugin"></a></span><div style="clear:both"></div></li>';
    }
    if (!$activeplugins) {
        $no_plugins .= '<div id="no_plugin" style="width: 480px;float: left;color: #333333;">You have no Plugins activated at the moment. To activate a plugin, please add the plugin from the list of available plugins.</div>';
    } else {
        $activeplugins = '<ul id="modules_liveplugins">' . $activeplugins . '</ul>';
    }
    $body = <<<EOD
\t{$navigation}

\t<div id="rightcontent" style="float:left;width:720px;border-left:1px dotted #ccc;padding-left:20px;">
\t\t<h2>Chatroom Plugins</h2>
\t\t<h3>Use your mouse to change the order in which the plugins appear in the chatroom (left-to-right). You can add available plugins from the right.</h3>

\t\t<div>
\t\t\t{$no_plugins}
\t\t\t{$activeplugins}
\t\t\t<div id="rightnav" style="margin-top:5px">
\t\t\t\t<h1>Available Chatroom plugins</h1>
\t\t\t\t<ul id="modules_availableplugins">
\t\t\t\t{$pluginslist}
\t\t\t\t</ul>
\t\t\t</div>
\t\t</div>

\t\t<div style="clear:both;padding:7.5px;"></div>
\t\t<input type="button" onclick="javascript:plugins_updatechatroomorder()" value="Update order" class="button">&nbsp;&nbsp;or <a href="?module=plugins&amp;action=chatroomplugins&amp;ts={$ts}">cancel</a>
\t</div>

\t<div style="clear:both"></div>

\t<script type="text/javascript">
\t\t\$(function() {
\t\t\t\$("#modules_liveplugins").sortable({ connectWith: 'ul' });
\t\t\t\$("#modules_liveplugins").disableSelection();
\t\t\t\$("#leftnav").find('a').removeClass('active_setting');
\t\t\t\$("#chatroom_plugins").addClass('active_setting');
\t\t});
\t</script>

EOD;
    template();
}
コード例 #13
0
ファイル: config.php プロジェクト: albertoneto/localhost
define('ERROR_LOGGING', setConfigValue('ERROR_LOGGING', '0'));
// Set to 1 to log all errors (error.log file)
define('ONLINE_TIMEOUT', USE_COMET ? REFRESH_BUDDYLIST * 2 : $maxHeartbeat / 1000 * 2.5);
// Time in seconds after which a user is considered offline
define('DISABLE_ANNOUNCEMENTS', setConfigValue('DISABLE_ANNOUNCEMENTS', '0'));
// Reduce server stress by disabling announcements
define('DISABLE_ISTYPING', setConfigValue('DISABLE_ISTYPING', '1'));
// Reduce server stress by disabling X is typing feature
define('CROSS_DOMAIN', setConfigValue('CROSS_DOMAIN', '0'));
// Do not activate without consulting the CometChat Team
if (CROSS_DOMAIN == 0) {
    define('ENCRYPT_USERID', '1');
    //Set to 1 to encrypt userid
} else {
    define('ENCRYPT_USERID', '0');
    define('CC_SITE_URL', setConfigValue('CC_SITE_URL', ''));
    // Enter Site URL only if Cross Domain is enabled.
}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Pulls the language file if found
include_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'lang' . DIRECTORY_SEPARATOR . 'en.php';
if (!defined('DB_AVATARFIELD')) {
    define('DB_AVATARTABLE', '');
    define('DB_AVATARFIELD', "''");
}
$channelprefix = preg_match('/www\\./', $_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : 'www.' . $_SERVER['HTTP_HOST'];
$channelprefix = md5($channelprefix . BASE_URL);
if (defined('TAPATALK') && TAPATALK == 1) {
    global $integration;
    $integration->hooks_setTapatalk($plugins);
}
コード例 #14
0
ファイル: battle.php プロジェクト: Yanrs/PkmnChan
                $newLevel = 10000;
            }
            if ($newLevel != $team[$pnum]['level']) {
                $levelsGained = $newLevel - $team[$pnum]['level'];
                echo $team[$pnum]['name'] . ' gained ' . $levelsGained . ' levels.<br />';
                mysql_query("UPDATE `user_pokemon` SET `level`={$newLevel} WHERE `id`='{$team[$pnum]['id']}'");
            }
            echo '</div>';
        }
        if (isset($_SESSION['battle']['uid'])) {
            $wUid = $_SESSION['battle']['uid'];
            if ($wUid == getConfigValue('champion_uid') && $wUid != $uid) {
                setConfigValue('champion_uid', $uid);
                $lastTime = getConfigValue('champion_timestamp');
                $totalTime = time() - $lastTime;
                setConfigValue('champion_timestamp', time());
                mysql_query("UPDATE `users` SET `champ_times`=`champ_times`+1 WHERE `id`='{$uid}' LIMIT 1");
                $qry = mysql_query("SELECT * FROM `users` WHERE `id`='{$wUid}' LIMIT 1");
                $wRow = mysql_fetch_assoc($qry);
                $extraSql = $totalTime > $wRow['champ_longest_run'] ? " ,`champ_longest_run`='{$totalTime}' " : '';
                mysql_query("UPDATE `users` SET `champ_total_time`=`champ_total_time`+{$totalTime} {$extraSql} WHERE `id`='{$wUid}' LIMIT 1");
                echo '<div>You are now the new champion!</div>';
            }
        }
        $gymMsg = '';
        if (isset($_SESSION['battle']['badge'])) {
            $badge = $_SESSION['battle']['badge'];
            $gymleader = $_SESSION['battle']['gymleader'];
            $gymMsg = '
			<div>
				<img src="images/badges/' . $badge . '.gif" alt="' . $badge . ' Badge" />
コード例 #15
0
ファイル: config.php プロジェクト: albertoneto/localhost
<?php

include_once dirname(dirname(dirname(__FILE__))) . DIRECTORY_SEPARATOR . 'config.php';
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
$standard_settings = setConfigValue('standard_settings', array('barType' => 'fluid', 'barWidth' => '960', 'barAlign' => 'center', 'barPadding' => '20', 'autoLoadModules' => '1', 'chatboxHeight' => '200', 'iPhoneView' => '0', 'chatboxWidth' => '230'));
/* SETTINGS START */
foreach ($standard_settings as $key => $value) {
    ${$key} = $value;
}
/* SETTINGS END */
コード例 #16
0
ファイル: config.php プロジェクト: albertoneto/localhost
<?php

include_once dirname(dirname(dirname(__FILE__))) . DIRECTORY_SEPARATOR . 'config.php';
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
$lite_settings = setConfigValue('lite_settings', array('barPadding' => '20', 'iPhoneView' => '0', 'showSettingsTab' => '1', 'showOnlineTab' => '1', 'showModules' => '1', 'chatboxHeight' => '200', 'chatboxWidth' => '230'));
/* SETTINGS START */
foreach ($lite_settings as $key => $value) {
    ${$key} = $value;
}
/* SETTINGS END */
コード例 #17
0
ファイル: config.php プロジェクト: albertoneto/localhost
<?php

include_once dirname(dirname(dirname(__FILE__))) . DIRECTORY_SEPARATOR . 'config.php';
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
$mobile_settings = setConfigValue('mobile_settings', array('enableMobileTab' => '1', 'confirmOnAllMessages' => '2'));
/* SETTINGS START */
foreach ($mobile_settings as $key => $value) {
    ${$key} = $value;
}
/* SETTINGS END */
コード例 #18
0
ファイル: config.php プロジェクト: albertoneto/localhost
<?php

include_once dirname(dirname(dirname(__FILE__))) . DIRECTORY_SEPARATOR . 'config.php';
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/* SETTINGS START */
$twitteruser = setConfigValue('twitteruser', '');
$notweets = setConfigValue('notweets', '');
$consumerkey = setConfigValue('consumerkey', '');
$consumersecret = setConfigValue('consumersecret', '');
$accesstoken = setConfigValue('accesstoken', '');
$accesstokensecret = setConfigValue('accesstokensecret', '');
/* SETTINGS END */
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
コード例 #19
0
ファイル: battle_old.php プロジェクト: Yanrs/PkmnChan
            mysql_query("UPDATE `users` SET `trainer_exp`={$newExp} WHERE `id`='{$uid}'") or die('f');
            $newLevel = expToLevel($newExp);
            if ($newLevel > 10000) {
                $newLevel = 10000;
            }
            if ($newLevel != $team[$pnum]['level']) {
                $levelsGained = $newLevel - $team[$pnum]['level'];
                echo $team[$pnum]['name'] . ' gained ' . $levelsGained . ' levels.<br />';
                mysql_query("UPDATE `user_pokemon` SET `level`={$newLevel} WHERE `id`='{$team[$pnum]['id']}'");
            }
            echo '</div>';
        }
        if (isset($_SESSION['battle']['uid'])) {
            $wUid = $_SESSION['battle']['uid'];
            if ($wUid == getConfigValue('champion_uid')) {
                setConfigValue('champion_uid', $uid);
                echo '<div>You are now the new champion!</div>';
            }
        }
        $gymMsg = '';
        if (isset($_SESSION['battle']['badge'])) {
            $badge = $_SESSION['battle']['badge'];
            $gymleader = $_SESSION['battle']['gymleader'];
            $gymMsg = '
			<div>
				<img src="images/badges/' . $badge . '.gif" alt="' . $badge . ' Badge" />
				You have beaten ' . $gymleader . ' and earned yourself the ' . $badge . ' badge!
				<img src="images/badges/' . $badge . '.gif" alt="' . $badge . ' Badge" />
			</div>
		';
            $query = mysql_query("SELECT `id` FROM `user_badges` WHERE `uid`='{$uid}' AND `badge`='{$badge}' LIMIT 1");
コード例 #20
0
ファイル: config.php プロジェクト: albertoneto/localhost
<?php

include_once dirname(dirname(dirname(__FILE__))) . DIRECTORY_SEPARATOR . 'config.php';
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/* SETTINGS START */
$login_background = setConfigValue('login_background', '#FFFFFF');
$login_placeholder = setConfigValue('login_placeholder', '#777788');
$login_button_pressed = setConfigValue('login_button_pressed', '#002832');
$login_button_text = setConfigValue('login_button_text', '#FFFFFF');
$login_foreground_text = setConfigValue('login_foreground_text', '#000000');
/* SETTINGS END */
$forgot_url = '';
$signUp_url = '';
$branded = 1;
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
コード例 #21
0
ファイル: config.php プロジェクト: albertoneto/localhost
<?php

include_once dirname(dirname(dirname(__FILE__))) . DIRECTORY_SEPARATOR . 'config.php';
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/* SETTINGS START */
$pageUrl = setConfigValue('pageUrl', 'https://www.facebook.com/CometChat');
/* SETTINGS END */
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
コード例 #22
0
ファイル: config.php プロジェクト: albertoneto/localhost
<?php

include_once dirname(dirname(dirname(__FILE__))) . DIRECTORY_SEPARATOR . 'config.php';
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/* SETTINGS START */
$reportEmail = setConfigValue('reportEmail', '');
/* SETTINGS END */
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
コード例 #23
0
ファイル: config.php プロジェクト: albertoneto/localhost
<?php

include_once dirname(dirname(dirname(__FILE__))) . DIRECTORY_SEPARATOR . 'config.php';
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
$facebook_settings = setConfigValue('facebook_settings', array('barPadding' => '20', 'showSettingsTab' => '1', 'showOnlineTab' => '1', 'showModules' => '1', 'chatboxHeight' => '200', 'chatboxWidth' => '230'));
/* SETTINGS START */
foreach ($facebook_settings as $key => $value) {
    ${$key} = $value;
}
/* SETTINGS END */
$iPhoneView = '0';
// iPhone style messages in chatboxes?
コード例 #24
0
ファイル: config.php プロジェクト: albertoneto/localhost
<?php

include_once dirname(dirname(dirname(__FILE__))) . DIRECTORY_SEPARATOR . 'config.php';
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
$tapatalk_settings = setConfigValue('tapatalk_settings', array('barPadding' => '20', 'showOnlineTab' => '1', 'showSettingsTab' => '1', 'showModules' => '1', 'chatboxHeight' => '261', 'chatboxWidth' => '235'));
/* SETTINGS START */
foreach ($tapatalk_settings as $key => $value) {
    ${$key} = $value;
}
/* SETTINGS END */
$iPhoneView = '0';
// iPhone style messages in chatboxes?
コード例 #25
0
ファイル: config.php プロジェクト: albertoneto/localhost
<?php

include_once dirname(dirname(dirname(__FILE__))) . DIRECTORY_SEPARATOR . 'config.php';
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/* SETTINGS START */
$keywords = setConfigValue('keywords', 'adult, naughty, 18+, dating, hot, sex,rango, interested,');
/* SETTINGS END */
$keywordlist = '';
if (!empty($keywords)) {
    $keywordsarray = explode(',', $keywords);
    foreach ($keywordsarray as $keyword) {
        if ($keyword) {
            $keyword = trim($keyword);
            $keyword = preg_replace('/[^\\w\\d_ -]/si', '', $keyword);
            $keywordlist .= '|' . $keyword . '';
        }
    }
    $keywordlist = substr($keywordlist, 1);
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
コード例 #26
0
ファイル: config.php プロジェクト: albertoneto/localhost
<?php

include_once dirname(dirname(dirname(__FILE__))) . DIRECTORY_SEPARATOR . 'config.php';
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
$synergy_settings = setConfigValue('synergy_settings', array('enableType' => '0'));
/* SETTINGS START */
foreach ($synergy_settings as $key => $value) {
    ${$key} = $value;
}
/* SETTINGS END */
$barPadding = '20';
$iPhoneView = '0';
$showSettingsTab = '1';
$showOnlineTab = '1';
$showModules = '1';
$chatboxHeight = '420';
$chatboxWidth = '300';
コード例 #27
0
ファイル: firefile.php プロジェクト: NKjoep/FireFile-Server
function handlePostData(&$data)
{
    if (getPost("username_new")) {
        if (strlen(getPost("username_new")) >= 4) {
            setConfigValue("user", getPost("username_new"));
            $_POST["username"] = getPost("username_new");
            $data["logged_in"] = true;
            $data["success"][] = "The username was successfully changed";
        } else {
            $data["success"][] = "The specified username is too short!";
        }
    }
    if (getPost("password_new") || getPost("password_new_retype")) {
        if (getPost("password_new") == getPost("password_new_retype")) {
            setConfigValue("pass", getPost("password_new"));
            $_POST["password"] = getPost("password_new");
            $data["logged_in"] = true;
            $data["success"][] = "The password was successfully changed";
        } else {
            $data["error"][] = "Passwords do not match!";
        }
    }
    if (!getConfigValue("user")) {
        $data["user_set"] = false;
    }
    if (!getConfigValue("pass")) {
        $data["pass_set"] = false;
    }
    $data["code"] = md5(getConfigValue("user") . "/" . getConfigValue("pass"));
    $data["logged_in"] = true;
    if ($data["user_set"] && $data["pass_set"] && $data["logged_in"]) {
        createDemoContent();
    }
    return true;
}
コード例 #28
0
ファイル: modules.m.php プロジェクト: albertoneto/localhost
function index()
{
    global $body;
    global $trayicon;
    global $navigation;
    global $ts;
    $modules_core = setConfigValue('modules_core', array());
    if (empty($trayicon)) {
        $trayicon = array();
    }
    if (defined('TAPATALK') || defined('TAPATALK') && TAPATALK == 1) {
        unset($modules_core['themechanger']);
        if (!empty($trayicon['themechanger'])) {
            unset($trayicon['themechanger']);
        }
    }
    $moduleslist = '';
    foreach ($modules_core as $module => $moduleinfo) {
        if (is_dir(dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR . 'modules' . DIRECTORY_SEPARATOR . $module)) {
            $titles[$module] = $moduleinfo;
            $modulehref = 'href="javascript: void(0)" style="opacity: 0.5;cursor: default;"';
            if (empty($trayicon[$module])) {
                $modulehref = 'href="?module=modules&amp;action=addmodule&amp;data=' . base64_encode("\$trayicon['" . $module . "']=array('" . implode("','", $moduleinfo) . "');") . '&amp;ts=' . $ts . '"';
            }
            $moduleslist .= '<li class="ui-state-default"><img src="../modules/' . $module . '/icon.png" style="margin:0;margin-right:5px;float:left;"></img><span style="font-size:11px;float:left;margin-top:2px;margin-left:5px;width:120px">' . $moduleinfo[1] . '</span><span style="font-size:11px;float:right;margin-top:2px;margin-right:5px;"><a ' . $modulehref . ' id="' . $module . '" >add</a></span><div style="clear:both"></div></li>';
        }
    }
    $livetrayicons = '';
    foreach ($trayicon as $trayitem => $ti) {
        if (empty($ti[2])) {
            $ti[2] = '';
        }
        if (empty($ti[3])) {
            $ti[3] = '';
        }
        if (empty($ti[4])) {
            $ti[4] = '';
        }
        if (empty($ti[5])) {
            $ti[5] = '';
        }
        if (empty($ti[6])) {
            $ti[6] = '';
        }
        if (empty($ti[7])) {
            $ti[7] = '';
        }
        if (empty($ti[8])) {
            $ti[8] = '';
            $showhide = 'Show';
            $opacity = '1';
        } else {
            $showhide = 'Hide';
            $opacity = '0.5';
        }
        $config = '';
        if (file_exists(dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR . 'modules' . DIRECTORY_SEPARATOR . $ti[0] . DIRECTORY_SEPARATOR . 'settings.php')) {
            $config = '<a href="javascript:void(0)" onclick="javascript:modules_configmodule(\'' . $ti[0] . '\')" style="margin-left:5px;"><img src="images/config.png" title="Configure Module"></a>';
        } else {
            $config = '<img src="images/blank.gif" width="16" height="16" style="margin-left:5px;">';
        }
        if ($ti[3] == '_lightbox') {
            $popup = '<a href="javascript:void(0)" onclick="javascript:modules_showpopup(this,\'' . $ti[0] . '\')" style="margin-left:5px;"><img style="opacity:0.5" src="images/lightbox.png" title="Open module as popup (default)"></a>';
        } else {
            if ($ti[3] == '_popup') {
                $popup = '<a href="javascript:void(0)" onclick="javascript:modules_showpopup(this,\'' . $ti[0] . '\')" style="margin-left:5px;"><img style="opacity:1"  src="images/lightbox.png" title="Open module in a lightbox"></a>';
            } else {
                $popup = '<img src="images/blank.gif" width="16" height="16" style="margin-left:5px;">';
            }
        }
        $title = stripslashes($ti[1]);
        if (!empty($ti[7])) {
            $visible = "style=\"margin-left:5px;visibility:visible;\"";
        } else {
            $visible = "style=\"margin-left:5px;visibility:hidden;\"";
        }
        if (!empty($ti[9])) {
            $custom = $ti[9];
        } else {
            $custom = 0;
        }
        $livetrayicons .= '<li class="ui-state-default" id="' . $ti[0] . '" d1="' . addslashes($ti[1]) . '" d2="' . $ti[2] . '" d3="' . $ti[3] . '" d4="' . $ti[4] . '" d5="' . $ti[5] . '" d6="' . $ti[6] . '" d7="' . $ti[7] . '" d8="' . $ti[8] . '" ><img src="../modules/' . $ti[0] . '/icon.png" style="margin:0;margin-top:2px;margin-right:5px;float:left;width:16px;"></img><span style="font-size:11px;float:left;margin-top:3px;margin-left:5px;" id="' . $ti[0] . '_title">' . $title . '</span><span style="font-size:11px;float:right;margin-top:0px;margin-right:5px;"><a onclick="javascript:modules_showtext(this,\'' . $ti[0] . '\');" href="javascript:void(0)" style="margin-left:5px;"><img src="images/text.png" style="opacity:' . $opacity . ';" title="' . $showhide . ' the module title in the chatbar"></a>' . $popup . '<a onclick="javascript:embed_link(\'' . BASE_URL . '' . $ti[2] . '\',\'' . $ti[4] . '\',\'' . $ti[5] . '\');" href="javascript:void(0)" ' . $visible . '><img src="images/embed.png" title="Generate Embed Code"></a> ' . $config . '<a href="javascript:void(0)" onclick="javascript:modules_removemodule(\'' . $ti[0] . '\',\'' . $custom . '\')" style="margin-left:5px;"><img src="images/remove.png" title="Remove Module"></a></span><div style="clear:both"></div></li>';
    }
    $errormessage = '';
    if (!$livetrayicons) {
        $errormessage = '<div id="no_module" style="width: 480px;float: left;color: #333333;">You do not have any Module activated at the moment. To activate a module, please add the module from the list of available modules.</div>';
    }
    $body = <<<EOD
\t{$navigation}

\t<div id="rightcontent" style="float:left;width:720px;border-left:1px dotted #ccc;padding-left:20px;">
\t\t<h2>Live Modules</h2>
\t\t<h3>Use your mouse to change the order in which the modules appear on the bar (left-to-right). You can add available modules from the right.</h3>

\t\t<div>
\t\t\t<ul id="modules_livemodules">
                                {$livetrayicons}
                                {$errormessage}
\t\t\t</ul>
\t\t\t<div id="rightnav" style="margin-top:5px">
\t\t\t\t<h1>Available modules</h1>
\t\t\t\t<ul id="modules_availablemodules">
                                {$moduleslist}
\t\t\t\t</ul>
\t\t\t</div>
\t\t</div>

\t\t<div style="clear:both;padding:7.5px;"></div>
\t\t<input type="button" onclick="javascript:modules_updateorder()" value="Update order" class="button">&nbsp;&nbsp;or <a href="?module=modules&amp;ts={$ts}">cancel</a>
\t</div>

\t<div style="clear:both"></div>

\t<script type="text/javascript">
\t\t\$(function() {
\t\t\t\$("#modules_livemodules").sortable({ connectWith: 'ul' });
\t\t\t\$("#modules_livemodules").disableSelection();
\t\t\t\$("#leftnav").find('a').removeClass('active_setting');
\t\t\t\$("#live_modules").addClass('active_setting');
\t\t});
\t</script>

EOD;
    template();
}
コード例 #29
0
ファイル: config.php プロジェクト: albertoneto/localhost
/* SETTINGS START */
$chatroomTimeout = setConfigValue('chatroomTimeout', '604800');
$lastMessages = setConfigValue('lastMessages', '10');
$allowUsers = setConfigValue('allowUsers', '1');
$allowGuests = setConfigValue('allowGuests', '1');
$allowDelete = setConfigValue('allowDelete', '1');
$allowAvatar = setConfigValue('allowAvatar', '1');
$crguestsMode = setConfigValue('crguestsMode', '1');
$hideEnterExit = setConfigValue('hideEnterExit', '0');
$showChatroomUsers = setConfigValue('showChatroomUsers', '0');
$minHeartbeat = setConfigValue('minHeartbeat', '3000');
$maxHeartbeat = setConfigValue('maxHeartbeat', '12000');
$autoLogin = setConfigValue('autoLogin', '0');
$messageBeep = setConfigValue('messageBeep', '1');
$newMessageIndicator = setConfigValue('newMessageIndicator', '1');
$showchatbutton = setConfigValue('showchatbutton', '0');
//Show private chat for friends only
/* SETTINGS END */
/* MODERATOR START */
$moderatorUserIDs = setConfigValue('moderatorUserIDs', array());
/* MODERATOR END */
if (USE_COMET == 1 && COMET_CHATROOMS == 1) {
    $minHeartbeat = $maxHeartbeat = REFRESH_BUDDYLIST . '000';
    $hideEnterExit = 1;
}
/* ADDITIONAL SETTINGS */
$chatroomLongNameLength = 60;
// The chatroom length after which characters will be truncated
$chatroomShortNameLength = 30;
// The chatroom length after which characters will be truncated
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
コード例 #30
0
ファイル: online.php プロジェクト: Yanrs/PkmnChan
}
include '_header.php';
printHeader('Online Members');
$uid = (int) $_SESSION['userid'];
$time = time();
$otime = $time - 60 * 60;
/// just an test -- >
if (isset($_GET['get'])) {
    echo date('h:i:s A', $_SESSION['lastseen']);
    die;
}
/// < -- end of test
$query = mysql_query("SELECT * FROM `users` WHERE `lastseen`>='{$otime}' ORDER BY `lastseen` DESC");
$rows = mysql_num_rows($query);
if (getConfigValue('most_online') < $rows) {
    setConfigValue('most_online', $rows);
}
echo "<center>\n\t\t<font color=white>\n\t\t\tTotal users online: " . $rows . "<br />\n\t\t\tMost users ever online: " . getConfigValue('most_online') . "<br /><br />\n\t\t</font>\n\t</center>";
echo '		
                        <table class="pretty-table">
                          
                                <tr>                                 
                                    <th>ID</th>
                                    <th>Username</th>
                                    <th>Last Seen</th>
                                    <th>Options</th>
                                </tr>

                           
';
while ($row = mysql_fetch_assoc($query)) {