2 include ('lib/twitese.php');
4 include ('inc/header.php');
5 if (!loginStatus()) header('location: login.php');
7 <script src="js/colorpicker.js"></script>
8 <script src="js/setting.js"></script>
9 <link rel="stylesheet" href="css/colorpicker.css" />
10 <div id="statuses" class="column round-left">
12 <div id="setting_nav">
14 $settingType = isset($_GET['t'])? $_GET['t'] : 1;
18 <span class="subnavLink"><a href="setting.php">Customize</a></span><span class="subnavNormal">Profile</span>
23 <span class="subnavNormal">Customize</span><span class="subnavLink"><a href="setting.php?t=profile">Profile</a></span>
31 $user = getTwitter()->veverify(true);
33 <form id="setting_form" action="ajax/uploadImage.php?do=profile" method="post" enctype="multipart/form-data">
34 <fieldset class="settings">
35 <legend>Avatar</legend>
37 <li style="display:inline-block"><img src="<?php echo isset($_COOKIE['imgurl']) ? $_COOKIE['imgurl'] : getAvatar($user->profile_image_url)?>"></img></li>
38 <ol style="margin-left:29px">
39 <li><input type="file" name="image" id="profile_image"/></li>
40 <li><input type="submit" id="AvatarUpload" class="btn" value="Upload"/><small style="margin-left:10px;vertical-align: middle;">BMP,JPG or PNG accepted, less than 800K.</small></li>
44 <form id="setting_form" action="ajax/updateProfile.php" method="post">
45 <fieldset class="settings">
46 <legend>Literature</legend>
47 <table id="setting_table">
49 <td class="setting_title">Name:</td>
50 <td><input class="setting_input" type="text" name="name" value="<?php echo isset($user->name) ? $user->name : ''?>" /></td>
53 <td class="setting_title">URL:</td>
54 <td><input class="setting_input" type="text" name="url" value="<?php echo isset($user->url) ? $user->url : '' ?>" /></td>
57 <td class="setting_title">Location:</td>
58 <td><input class="setting_input" type="text" name="location" value="<?php echo isset($user->location) ? $user->location : '' ?>" /></td>
61 <td class="setting_title">Bio:</td><td><small style="margin-left:5px;vertical-align: top;">*Max 160 chars</small></td>
64 <td><textarea id="setting_text" name="description"><?php echo isset($user->description) ? $user->description : '' ?></textarea></td>
67 <input type="submit" id="saveProfile" class="btn" value="Save" />
73 <form id="style_form" action="setting.php" method="post">
75 <fieldset class="settings">
77 <legend>Utility</legend>
79 <input id="proxifyAvatar" type="checkbox" />
80 <label>Proxify the Avatar</label>
83 <input id="autoscroll" type="checkbox" />
84 <label>Timeline Autopaging</label>
87 <input id="sidebarscroll" type="checkbox" />
88 <label>Fixed Sidebar</label>
92 <fieldset class="settings">
94 <legend>Media Preview</legend>
96 <input id="showpic" type="checkbox" checked="checked" />
97 <label>Enable Images Preview</label>
98 <small>(Supports common image hostings)</small>
102 <input id="mediaPreSelect" type="checkbox" checked="checked" />
103 <label>Enable Videos Preview</label>
104 <small>(Supports Xiami and Tudou)</small><br />
108 <fieldset class="settings">
110 <legend>Auto Refresh Interval</legend>
112 <label>Home Page</label>
113 <select id="homeInterval" name="homeInterval" value="<?php echo getCookie('homeInterval')?>">
114 <option value="0.5">30 sec</option>
115 <option value="1" selected="selected">1 min(Default)</option>
116 <option value="3">3 min</option>
117 <option value="5">5 min</option>
118 <option value="10">10 min</option>
119 <option value="0">Never</option>
121 <label>Updates Page</label>
122 <select id="updatesInterval" name="updatesInterval" value="<?php echo getCookie('updatesInterval')?>">
123 <option value="0.5">30 sec</option>
124 <option value="1">1 min</option>
125 <option value="3" selected="selected">3 min(Default)</option>
126 <option value="5">5 min</option>
127 <option value="10">10 min</option>
128 <option value="0">Never</option>
133 <fieldset class="settings">
135 <legend>UI Preferences</legend>
136 <input id="twitterbg" type="checkbox" />
137 <label>Use twitter account background</label>
141 <label>Custom Themes</label>
142 <select id="styleSelect"></select>
143 <small>(We have awesome themes for you!)</small>
147 <label>Background Color</label>
148 <input class="bg_input" type="text" id="bodyBg" name="bodyBg" value="<?php echo getDefCookie("Bgcolor","") ?>" />
149 <small>(Choose your favorite color here)</small>
153 <label>Font Size</label>
154 <select id="fontsize" name="fontsize" value="<?php echo getCookie('fontsize')?>">
155 <option value="12px">Small</option>
156 <option value="13px" selected="selected">Middle(Default)</option>
157 <option value="14px">Large</option>
158 <option value="15px">Extra Large</option>
160 <small>(Set the font size)</small>
164 <label>Customize CSS</label>
165 <small>(You can put your own CSS hack here, or your Twitter style code)</small>
168 <small>You must use <a href="http://i.zou.lu/csstidy/" target="_blank" title="Powered by Showfom">CSSTidy</a> to compress your stylesheet.</small>
170 <textarea type="text" id="myCSS" name="myCSS" value="" /><?php echo getDefCookie("myCSS","") ?></textarea>
176 <a id="reset_link" href="#" title="You will lose all customized settings!">Reset to default</a>
183 include ('inc/sidebar.php');
184 include ('inc/footer.php');