View Single Post
Old 12-27-2004, 05:21 PM   #1 (permalink)
RelaX
Follower of Ner'Zhul
 
RelaX's Avatar
 
Location: Netherlands
[PHP] Ideas for new TB post generator

As some of you may be aware of, the TFP TB post generator is gone for reasons unknown (to me at least).
Instead most posts are now manually crafted or generated with Kreskin's Post Generator (found here).
Which is a kewl thing, but limited in functionality.

So I was thinking... how hard would it be to kill 2 birds with one stone and copy some functionality from the EZpics and the TFP TB generator, add some more functionality and make it into a super-duper PHP script?

So I made some notes and I now submit these for review, maybe if I find some time I may make it and have my own server run the script. Fortunately, the counter shows 'only' 545 people have used Kreskins generator, so I believe my server could handle the load, although I have limited bandwith so people may have to wait for the result a bit.
I AM however concerned with the potential legal consequences, could I be sued over it?
I'm too young to go to jail .

Doesn't sound too difficult to make though... and pretty kewl. Upside would also be that, with logging, I could have access to all the ezcodes and everybody that does the zip2go action would be downloading pics for me.

Anyway, here are my notes:
EZcode format:
$url/$num1.$ext?$num2.$ext?$rename
example: http://www.tekno.com/01.jpg?99.jpg?tekno

EZCode generator:
$url (www.tekno.com/test{1}/test{2}.jpg)
the url of the pic
$nums ({1} 00/99-06/60+140/160, {2} 2220/310, {3} a/Z)
the nums, 00 till 99 minus 06 till 60 with 140 till 160 for {1} and counting back from 2220 till 310 for {2} and from a till Z (abc...xyzABCD...XYZ) for {3}
$rename (teknopics)
rename the pics to teknopics.extension

GUI:
([] = input field
{} = action button
() = auto-generated text
ASCII box = textbox input field)

Generator
[url]
{getnumfields/changeURL}

[num1-0] [num1-1]
[num2-0] [num2-1]

[rename]

{generate}

Grabber

---------
|ezcodes|
---------

{generateAndOrShow} {zip2Go} {generateAndMakeBBCode} {test}

(log)

Features:
- Multiple EZcodes
Using the textbox, you can enter multiple EZCodes (seperated by : | : )
and the script will execute them all, also, if you generate your own EZCode
it will simply be added to the bottom of the EZCodes that are already in place

- Generate & Show
Generates the ezcode and html equivalent
and shows them in a new window with the ezcode up top.

- Zip2Go
Generates HTML code, wgets all the pics, zips the result and sends it back

- Generate and make BBcode
Makes it into:
- Test
Test ezCode by wgetting pics
- Log
Logs all generated queries and shows the 5 last generated

Trouble areas:
- Security, input has to be scrutinized, what if someone desides to do .sh (linux system, comparable to .exe for windows)?
- No more than 10 nums, to prevent the server load from getting to high
- Legality?
- Can the server handle the load of several people executing the Zip2Go action with multiple EZcodes? Should the number of users be restricted?
__________________
The most likely way for the world to be destroyed, most experts agree, is by accident. That's where we come in; we're computer professionals. We cause accidents.
- Nathaniel Borenstein

Last edited by RelaX; 12-28-2004 at 07:01 AM..
RelaX is offline  
 

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360