$rules = array( "The widget should be in flatfile format. The uploaded file must be 18KB (18,432 bytes) or less. You must use the standard Widget Converter to pack your widget.", "The widget must be compatible with Yahoo! Widget Engine 4.0.[[BR]]Your ~~ tag must have a ~minimumVersion~ attribute (set to 4.0). And as such, this means no Flash or Web objects", "It must be cross-platform. UNIX utils shouldn't be used.", "A user may submit more than one entry, as long as they are unique (not trivial variations of the same widget).", "You may not bundle executable files in the Widget file. Using ~runCommand~ is forbidden.", 'Removing whitespace and using short variable names to lower the size of the widget is allowed, even though it would make the code unreadable.', "All resources must be contained within the package. Downloading code or images from Internet is a sure way to get your widget disqualified. That doesn't mean you can't download anything; you can make a widget that uses an Internet resource (like one that shows weather).", "Participants are not allowed to release their Widget to the public (like on the official Yahoo! Widgets gallery) until the contest is over." ); function printRules() { global $rules; //globals are ugly, I know I know! foreach ($rules as $rule) { $rule = htmlspecialchars($rule); $rule = preg_replace('/~(.+?)~/','\1',$rule); $rule = str_replace('[[BR]]','
',$rule); echo "
  • $rule
  • "; } }