Commit Graph

45 Commits

Author SHA1 Message Date
Sarjuuk
0e98270827 removing smarty - part XV (aaaand done!)
- unified lv handling
 * data should always be in the same structure now
 * use of tabs is determined by the template, unless forced)
- Currency: fixed path on detail page
- Profiler: fixed use of dataKey
- Util::alphaMapCheck() 'images/' was removed long ago..; alphaMaps are now in 'cache/'
- Item: REALLY fixed markdown in tooltips
2014-07-19 12:30:47 +02:00
Sarjuuk
0af712a8ff removing smarty - part XIV (only one more..)
- added some forgotten account-srings
- fixed an error handling ItemFilter /w upgradeItems + markdown appearing in tooltips
- relaxed session-regeneration (only regenerates on status changes (signin/-out)), fixes losing the session, when opening multiple tabs at once
- striped smarty from profiler (only cleanups remaining)
- moved profiler-ajax to AjaxHandler
- created a (dummy, for now) ProfileClass to handle Chars and Profiles
2014-07-17 16:48:05 +02:00
Sarjuuk
a82aa2b6ae removing smarty - part XIII (almost there)
- reimplemented Utilities-Page and Account-Page
- moved account-ajax to ajaxHandler
- AjaxHandler::handle() can no longer call itself, if the parameter is empty
- cache is now compressed (has a negligible delay)
- revisited User-Class / Accounts:
 * implemented mail-confirmation (be sure to configure your server appropriately)
 * implemented recovery of password or username
 * there are now 3 options to auth against: 1) aowow-DB (default); 2)
   wow-auth-DB; 3) user-defined script (SOAP or similar exotic methods)
 * dropped the aowow-cookie, it relies on php-sessions now
 * reworked how bans are handled (can now also ban from upload, rate, comment)
- fixed enhancements on itemTooltips

account related localization for FR, ES and RU is lacking (help is appreciated)
_account and _account_banned have changed and are incompatible with the prvious version
2014-07-13 12:10:20 +02:00
Sarjuuk
727d450923 removing smarty - part XII
- readded quest/quests, zones
- delayed filter-evaluation, also linked filterObj to page to be applied to cacheKey
- added check for modulo calculation with floats (fixes "0 years" - duarions)
Quests:
 * added category-locales
 * creating objectives shouldn't be quite as intensive anymore
2014-07-06 16:19:43 +02:00
Sarjuuk
e0f4e9403a removing smarty - part XI
- readded npc/npcs, itemset/itemsets, skill/skills
- reduced size of conditions-column
2014-07-03 21:20:46 +02:00
Sarjuuk
ec5589f323 removing smarty - part X
readded spell/spells
- changes to Lang, since it can no longer access the template
- set required php-version to 5.5.0 (generators were added and are essential to aowow)
- display stats in footer to staff only
2014-07-02 20:19:57 +02:00
Sarjuuk
775b12d64c cache two versions of page
- regular for normal users
- extended info for employees
search: format opensearch with json_encode instead of string concatenation
2014-07-01 20:38:46 +02:00
Sarjuuk
663597a7a0 removing smarty - part IX
- readded search
- moved custom displayers (tooltip, xml) to subclasses
- added more info to footer
2014-06-29 19:10:08 +02:00
Sarjuuk
f6b68a4092 removing smarty - part VIII
- rewrote Title/Titles, Pet/Pets
- added CUSTOM_EXCLUDE_FOR_LISTVIEW to infobox for staff
2014-06-28 15:49:51 +02:00
Sarjuuk
4919e1ef57 removing smarty - part VII
- rewrote Item/Items
- BaseType: fixed querey generation wizh null-values in extraOpts
- ItemList:
  * reworked extendJsonStats() to use ?_itemstats istead of parsing on the fly
  * moved onUse-components used by xml from extendJsonStats() to separate function
  * the enhance-string passed with tooltips is now checked first
- Loot: class is no longer static
- Util::parseItemEnchantment() will now accept and return arrays and does only one single lookup
- cuFlags are explained in the infobox, when available
- JS:
  * do NOT strip iconStrings. It rightly can contain whitespaces >.<
  * removed a redundant $WH.ct in Conditions
2014-06-28 14:29:39 +02:00
Sarjuuk
caa7a7e39f removing smarty - part VI
- rewrote currencies, achievements, events, factions
- GenericPage:
   * moved more checks from Util
   * structured and commented GenericPage to be easier to comprehend
   * added GenericPage::postCache() to modify cached data before display (e.g. update time for events)
- fixed:
   * parsing events from markdown (e.g. articles)
   * huge padding of minibox headings (css)
   * Loot passing jsGlobals to template
   * ItemList::getExtendedCost passing jsGlobals to template
   * categories for factions
   * conflicting GenericPage::$subject when displaying 'notFound'
   * load of typos
2014-06-22 19:56:42 +02:00
Sarjuuk
a5ae244216 removing smarty - part III
- convert first pages to extend GenericPage (Race/s; Class/es; Main)
- added new stack-rule from TC to spells
2014-06-15 23:16:10 +02:00
Sarjuuk
3347778e4c removing smarty - part II
- adapting classes to change
- adding new class GenericPage
2014-06-15 21:56:48 +02:00
Sarjuuk
5db461d151 TC dropped faction_H from creature_template and so do i
made opensearch auto-discoverable
2014-04-28 22:30:17 +02:00
Sarjuuk
48cec63e1d - BaseType: skip empty arrays in condition
- BaseFilter: defined selectAll / selectNone magic numbers
- Item:
   * fixed formating error for required arena rating
   * filters for purchasablewith -item; -currency; -honor; -arena; reqarenarating
- Zone:
   * removed extra escape for globals
   * token changes to ZoneList... still not really usable
- Events: prevent selecting arbitrary related events on empty list
- Factions:
   * added filter-links to relTabs
   * added relTab for factionspecific GameObjects
- Spell:
   * parse information for aura:forceReaction
   * added relTab Zones to display info from spell_area
- JS:
   * added display of subzones to listview-template: zone
   * reworked condition to display multiple conditions
   * added race and gender conditions

typos.. they are never entirely gone
2014-04-20 11:59:47 +02:00
Sarjuuk
23e831be25 - removed fixed fields in lv-bricks; title sources and achievement rewards thus are working again
- moved search to /pages
- moved g_dataKey to header.tpl and apply it on nessecary pages (restores TalentCalc)
- Events: fixed relTabs with arbitrary data, when holidayId was 0
- CharClass: get heroClass-status through flags; dropped related DB-field
- Achievements: fixed some criteria not being displayed in tooltips
- Community: applied long forgotten changes to tplVars and use of uppercase ids
- Titles:
 * exclude unused titles from listview
 * restored 'links'-button on detail-page
- Quests:
 * added 'slain' fro proxy-npcs
 * use more wflags (&1 needs more research)
- Factions:
 * fixed order of categories
 * fixed params to QuestList for relTabs
- Profiler:
 * enabled 'profiles that have this char as source' in Profiler
 * removed the exampelChar from project
 * further documented more expected variables; includes/excludes-handling still not entirely clear
 * created datasets for reference data (create with ?build=profiler)
- Localzation:
 * localized profiler for loc3
 * corrected some single words
 * localized custom reward rate - table in factions
- AjaxHandler:
 * new handler for ajax-requests *duh*
 * dropped data.php (index.php now calls to AjaxHandler for these cases)
- moved reading of static files to own function Util::loadStaticFile()
2014-04-13 23:39:34 +02:00
Sarjuuk
0e351b215b Items
- restored upgrade-search and implemented search for multiple items
 - restored custom weightscale handling
2014-04-06 17:29:33 +02:00
Sarjuuk
a7a0c5a946 events:
- added relTabs to detail page

achievements:
 - implemented event-filter
 - filter will now always apply

 - years are now one day shorter (and time formating will no longer bug out)
2014-04-05 23:21:46 +02:00
Sarjuuk
7af4931b58 implemented details, lists and filters on quests
- some filter are still missing
 - didn't bother with the mapper yet
 - zoneOrSort is still inconsistent for instances

 - merged all queststarter/-ender into one single table
 - removed $template-parameter from addGlobalsToJscript and access it through Util
 - dropped error.tpl and 404.tpl and moved the error-text to aowow_articles
 - misc improvements here and there
2014-04-05 22:04:27 +02:00
Sarjuuk
fe42156825 revisited sql escaping
in general, its not nessecary to manually apply escapes
- if passed as param to DB::DBType()->queryFunc() its escaped by DBsimple
- if passed as condition its escaped by BaseType
- if you do your own query use DB::DBType()->escape() on strings and intVal() respectively

- fixed use of HAVING in CreatureListFilter
- allow for exclude-only searches in Filter
- BaseType no longer adds %-wildcards to strings. Do this manually if ever nessecary.
2014-03-28 20:38:51 +01:00
Sarjuuk
41180e514c work against profiler
- implemented some session-token to limit access to profile data
 - researched structure to send onDemand data (still some minor bugs to iron out)
 - rewrote spells' access to model data and killed a redundant instance of ItemList
2014-03-28 10:37:19 +01:00
Sarjuuk
05f8be3c79 item: implemented xml-feed (guess, i do see the point now)
started comparing DBSiples escapes with own
2014-03-23 13:58:43 +01:00
Sarjuuk
e8c512a5e8 search:
- search input is now handled as whitespace separated list of search terms (was direct input)
- substrings prefixed with '-' must not be matched
- substrings with a content length of less than 3 are ignored
2014-03-23 00:02:18 +01:00
Sarjuuk
93cc42407c menu more and tools
- items: allow 'upg' to be an array
- filter: fixed logic error in checks
- Markup: prevent handling of [menu], as PageTemplate is nyi
- Power: advanced features (hide reagents or sellprice; recoloring,
  renaming, iconizing of links)
- search: side-icon for titles
- smarty: added template-vars to cache (has to be fixed sooner or later)

- identify as HTML5 (fixed a strange bug with displaced list-pegs)
- removed several typos
2014-03-22 20:39:16 +01:00
Sarjuuk
f236d7ae93 implemented grouping by itemlevel and slot for items
group by source won't require much additional work besides adding source to
items in the first place

search for multiple itemUpgrades are also yet to come
2014-03-20 17:12:15 +01:00
Sarjuuk
1ced59c113 - decoupled filter from type-classes, this is required for items.php to be
groupable
- force profile.lastupdated to new Date; trial and aerror on
  raid-progress; remove 'profile=summary' from generated pages (is generated by
  jscript)
- fixed some misc errors
2014-03-19 23:13:55 +01:00
Sarjuuk
9faec365b9 fixing double escape on achievement tooltips 2014-03-19 00:25:02 +01:00
Sarjuuk
3718ca6b86 moved config to databse (except databse credentials of course)
added overlooked changes to template or typos
2014-03-19 00:15:58 +01:00
Sarjuuk
fec0daac9a moving template around
(is now a lot closer to the original, shouldn't require updating new
scripts as the structure should fit)
also some minor bugfixes
2014-03-16 01:29:29 +01:00
Sarjuuk
c865a3a9a4 Profiler - draft
basic stuff is working with examplary static data
need to sit down and collect mods from talents and class-spells
<bla bla>                         from profession perks
loadOnDemandData not implemented as the structure needs more research

some visual bugs

remember to generate your realm-file. i used these example realms
[
    ["us","US & Oceanic",null,[["pure-pwnage","Pure Pwnage",null,[["trinity","Trinity"]]]]],
    ["eu","Europe",null,[["pure-pwnage","Pure Pwnage",null,[["dafuque","da'Fuqú]]]
]
2014-03-14 17:34:12 +01:00
Sarjuuk
ffd4c8e034 fixups for npc 2014-02-19 22:36:01 +01:00
Sarjuuk
0c4c7ea9ae * Factions: set titles for ListPage
* GameObjects: initial implementation (some filter missing; positions not
yet availabe; some custom data to be set; required table will be added
later)
* MiscTools: fixed random page; 'implemented' missing Screenshots; fixed
access to template file
* Search: implemented check for CUSTOM_EXCLUDE_FOR_LISTVIEW if user is not
 in U_GROUP_STAFF; searches should now be cachable
* NPCs: three more tabs on detailPage

* some work against Quests
* fighting the template-system :<
2014-02-19 16:39:15 +01:00
Sarjuuk
819a46ae15 detail page for events (with not much in it)
detail and listview for NPCs (without spawns, spells and some filters)
forcing the template to be more generic

- noticed, that the loot display is off. It happens with different modes
  on a creature, that has the same loot but different chances or quantities
  ... analyzing
2014-02-08 12:22:08 +01:00
Sarjuuk
99642e4ea4 - detail page for currencies
- moved additional code from item.php to Util::getLootSource() as it will be
  reused for currency.php
2014-01-25 19:23:50 +01:00
Sarjuuk
91ecc21e8c - implemented factions basics (search, listview and details)
- added forgotten shared brick for tooltips
2014-01-25 18:14:12 +01:00
Sarjuuk
c7c6028adf - allow for search by Id if json-searching
- changed, how achievement chains are saved (more obvious and probably faster)
- misc preparations for setup overhaul
2014-01-05 16:34:46 +01:00
Sarjuuk
60533ff27a - source:discovery in infobox for spells
- implemented search for crafted items (requires sql)
2013-12-15 22:19:41 +01:00
Sarjuuk
e7429d53d7 expanded reagents for spells 2013-12-15 21:09:22 +01:00
Sarjuuk
954352e17a - moved redButtons to separate brick-file (no more "here its translated, and not there" or mixed up button order and better management on top)
- implemented subTabs for spells (used on class-page)
- load sqlLimits from config into constants
2013-12-13 16:33:36 +01:00
Sarjuuk
07ee8213da - implemented use of itemExtendedCost and fueled some more item-tabs with it
- tinkering with learned spells and added teach-tabs to item.php
- required arenaRating in item tooltips
- updated js-functions handling currencies
- updated Markup with correct links
- i probably forgot to add sql
2013-12-08 17:57:02 +01:00
Sarjuuk
6c7006eeb2 * questrelated tabs for items
* display required quest for loot with questchance
* implemented genericmodel-Tab for item- and object-models
* tabs2spaces in gloabl.js (why were they still there in the first place?)
2013-12-03 21:56:17 +01:00
Sarjuuk
69cd14b753 - fixed variable names and ; in config.php.in
- moved effect- and aura-ids used to determine the type of a spell to static prop in spell.class.php
- directly get achievements by criteria (automatic join) in spell.php
- reverted back points needed for 1% arPen to 335 values (whyever i changed them in the first place)
2013-12-02 14:40:25 +01:00
Sarjuuk
2830fe97fc error-announces
rough draft for gameobjects (searchable, tooltips)
more tabs for item.php
2013-11-29 10:52:19 +01:00
Sarjuuk
5e785d6c78 omgishouldntbedoingthis 2013-11-24 23:15:15 +01:00
Sarjuuk
2d736fc785 item another one >.< 2013-10-09 21:30:28 +02:00