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)?>" id="avatarimg"></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/uploadImage.php?do=background" method="post" enctype="multipart/form-data">
45 <fieldset class="settings">
46 <legend>Background</legend>
48 <li style="display:inline-block"><img src="<?php echo getAvatar($user->profile_background_image_url)?>" id="backgroundimg" style="max-width: 460px;"></img></li>
49 <li><input type="file" name="image" id="profile_background"/></li>
50 <li><input type="submit" id="BackgroundUpload" class="btn" value="Upload"/><small style="margin-left:10px;vertical-align: middle;">BMP,JPG or PNG accepted, less than 800K.</small></li>
52 <input id="tile" type="checkbox" <?php echo $user->profile_background_tile ? 'checked="checked"' : '' ?> />
53 <label>Tile the profile background</label>
58 <form id="setting_form" action="ajax/updateProfile.php" method="post">
59 <fieldset class="settings">
60 <legend>Literature</legend>
61 <table id="setting_table">
63 <td class="setting_title">Name: </td>
64 <td><input class="setting_input" type="text" name="name" value="<?php echo isset($user->name) ? $user->name : ''?>" /></td>
67 <td class="setting_title">URL: </td>
68 <td><input class="setting_input" type="text" name="url" value="<?php
69 if (!isset($user->url))
73 $newurl = expandRedirect($user->url, $hops);
79 <td class="setting_title">Location: </td>
80 <td><input class="setting_input" type="text" name="location" value="<?php echo isset($user->location) ? $user->location : '' ?>" /></td>
83 <td class="setting_title">Bio: </td><td><small style="margin-left:5px;vertical-align: top;">*Max 160 chars</small></td>
86 <td><textarea id="setting_text" name="description"><?php echo isset($user->description) ? $user->description : '' ?></textarea></td>
89 <input type="submit" id="saveProfile" class="btn" value="Save" />
95 <form id="style_form" action="setting.php" method="post">
97 <fieldset class="settings">
99 <legend>Utility</legend>
101 <input id="proxifyAvatar" type="checkbox" />
102 <label>Proxify the Avatar</label>
105 <input id="autoscroll" type="checkbox" />
106 <label>Timeline Autopaging</label>
109 <input id="sidebarscroll" type="checkbox" />
110 <label>Fixed Sidebar</label>
113 Share to Twitter: <a class="share" title="Drag me to share!" href="javascript:var%20d=document,w=window,f='<?php echo $base_url."/share.php" ?>',l=d.location,e=encodeURIComponent,p='?u='+e(l.href)+'&t='+e(d.title)+'&d='+e(w.getSelection?w.getSelection().toString():d.getSelection?d.getSelection():d.selection.createRange().text)+'&s=bm';a=function(){if(!w.open(f+p,'sharer','toolbar=0,status=0,resizable=0,width=600,height=300,left=175,top=150'))l.href=f+'.new'+p};if(/Firefox/.test(navigator.userAgent))setTimeout(a,0);else{a()}void(0);">Share</a>
114 <small>(Bookmark this link for future use)</small>
118 <fieldset class="settings">
120 <legend>Media Preview</legend>
122 <input id="showpic" type="checkbox" checked="checked" />
123 <label>Enable Images Preview</label>
124 <small>(Supports common image hostings)</small>
128 <input id="mediaPreSelect" type="checkbox" checked="checked" />
129 <label>Enable Videos Preview</label>
130 <small>(Supports Xiami and Tudou)</small><br />
134 <fieldset class="settings">
136 <legend>Auto Refresh Interval</legend>
138 <label>Home Page</label>
139 <select id="homeInterval" name="homeInterval" value="<?php echo getCookie('homeInterval')?>">
140 <option value="1">1 min</option>
141 <option value="2" selected="selected">2 min (Default)</option>
142 <option value="3">3 min</option>
143 <option value="5">5 min</option>
144 <option value="10">10 min</option>
145 <option value="0">Never</option>
147 <label>Updates Page</label>
148 <select id="updatesInterval" name="updatesInterval" value="<?php echo getCookie('updatesInterval')?>">
149 <option value="1">1 min</option>
150 <option value="2">2 min</option>
151 <option value="3" selected="selected">3 min (Default)</option>
152 <option value="5">5 min</option>
153 <option value="10">10 min</option>
154 <option value="0">Never</option>
159 <fieldset class="settings">
161 <legend>UI Preferences</legend>
162 <input id="twitterbg" type="checkbox" />
163 <label>Use twitter account background</label>
167 <input id="shownick" type="checkbox" />
168 <label>Use nickname instead of username</label>
172 <label>Background Color</label>
173 <input class="bg_input" type="text" id="bodyBg" name="bodyBg" value="<?php echo getDefCookie("Bgcolor","") ?>" />
174 <small>(Choose your favorite color here)</small>
178 <label>Font Size</label>
179 <select id="fontsize" name="fontsize" value="<?php echo getCookie('fontsize')?>">
180 <option value="12px">Small</option>
181 <option value="13px" selected="selected">Middle(Default)</option>
182 <option value="14px">Large</option>
183 <option value="15px">Extra Large</option>
185 <small>(Set the font size)</small>
189 <label>Customize CSS</label>
190 <small>(You can put your own CSS hack here, or your Twitter style code)</small>
193 <small>You must use <a href="http://i.zou.lu/csstidy/" target="_blank" title="Powered by Showfom">CSSTidy</a> to compress your stylesheet.</small>
195 <textarea type="text" id="myCSS" name="myCSS" value="" /><?php echo getDefCookie("myCSS","") ?></textarea>
201 <a id="reset_link" href="#" title="You will lose all customized settings!">Reset to default</a>
208 include ('inc/sidebar.php');
209 include ('inc/footer.php');